I try run the MMO Unity Example.
All works fine but I cannot see the other players/npc.
In Zones (SFS) these GameObjects are present.
What can I do to fix it?
SOLVED: Don't show NPC in MMO Unity Example
SOLVED: Don't show NPC in MMO Unity Example
Last edited by HTCraft on 03 Jul 2018, 15:40, edited 1 time in total.
Re: Don't show NPC in MMO Unity Example
Source code didn't changed by me.
Except parameters to connection of course.
Except parameters to connection of course.
Re: Don't show NPC in MMO Unity Example
Have found this post
Will try fix it by myself.
Will try fix it by myself.
Re: Don't show NPC in MMO Unity Example
Unfortunately it has no effect.
All parameters like that topic but other objects still hidden.
All parameters like that topic but other objects still hidden.
Re: Don't show NPC in MMO Unity Example
Hi,
you have posted under the SFSPRO section but you seem to refer to SmartFoxServer 2X (in which case this would be the wrong section)
If this:
http://docs2x.smartfoxserver.com/ExamplesUnity/mmo-demo
is the MMO Example you're talking about, are you sure you've followed the steps in the tutorial?
In particular step 2 tells you to copy the required Extension in the server so that NPCs will be shown.
Let us know
you have posted under the SFSPRO section but you seem to refer to SmartFoxServer 2X (in which case this would be the wrong section)
If this:
http://docs2x.smartfoxserver.com/ExamplesUnity/mmo-demo
is the MMO Example you're talking about, are you sure you've followed the steps in the tutorial?
In particular step 2 tells you to copy the required Extension in the server so that NPCs will be shown.
Let us know
Re: Don't show NPC in MMO Unity Example
Of course I'm working with SmartFoxServer 2X.
All points of MMO Tutorial have done exactly but without effect
P.S. Surprisingly - some months ago I had run this example (not is the same) and had seen NPC & other Player (connected from different application)
SmartFoxServer is the same installation.
All points of MMO Tutorial have done exactly but without effect
P.S. Surprisingly - some months ago I had run this example (not is the same) and had seen NPC & other Player (connected from different application)
SmartFoxServer is the same installation.
Re: Don't show NPC in MMO Unity Example
In server log I see folowwing error:
Message: Room is not an MMORoom! null, ( User Name: FirstUser, Id: 7, Priv: 0, Sess: 127.0.0.1:4263 )
Description: Error during event handling: com.smartfoxserver.v2.exceptions.SFSRuntimeException: Room is not an MMORoom! null, ( User Name: FirstUser, Id: 7, Priv: 0, Sess: 127.0.0.1:4263 ) , Listener: { Ext: MMORoomDemo, Type: JAVA, Lev: ZONE, { Zone: BasicExamples }, {} }
Why room is not an MMORoom?
Message: Room is not an MMORoom! null, ( User Name: FirstUser, Id: 7, Priv: 0, Sess: 127.0.0.1:4263 )
Description: Error during event handling: com.smartfoxserver.v2.exceptions.SFSRuntimeException: Room is not an MMORoom! null, ( User Name: FirstUser, Id: 7, Priv: 0, Sess: 127.0.0.1:4263 ) , Listener: { Ext: MMORoomDemo, Type: JAVA, Lev: ZONE, { Zone: BasicExamples }, {} }
Why room is not an MMORoom?
Re: Don't show NPC in MMO Unity Example
Lol
It was a very foollish mistake!
This room is not exist in the SFS... I added it to Zone / Rooms and all objects became visibled.
This topic may be closed.
It was a very foollish mistake!
This room is not exist in the SFS... I added it to Zone / Rooms and all objects became visibled.
This topic may be closed.
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 35 guests