SOLVED: Don't show NPC in MMO Unity Example

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

User avatar
HTCraft
Posts: 27
Joined: 28 Jun 2018, 09:51
Location: Moscow, Russia
Contact:

SOLVED: Don't show NPC in MMO Unity Example

Postby HTCraft » 02 Jul 2018, 18:29

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?
Last edited by HTCraft on 03 Jul 2018, 15:40, edited 1 time in total.
User avatar
HTCraft
Posts: 27
Joined: 28 Jun 2018, 09:51
Location: Moscow, Russia
Contact:

Re: Don't show NPC in MMO Unity Example

Postby HTCraft » 02 Jul 2018, 18:31

Source code didn't changed by me.
Except parameters to connection of course.
User avatar
HTCraft
Posts: 27
Joined: 28 Jun 2018, 09:51
Location: Moscow, Russia
Contact:

Re: Don't show NPC in MMO Unity Example

Postby HTCraft » 02 Jul 2018, 19:05

Have found this post
Will try fix it by myself.
User avatar
HTCraft
Posts: 27
Joined: 28 Jun 2018, 09:51
Location: Moscow, Russia
Contact:

Re: Don't show NPC in MMO Unity Example

Postby HTCraft » 02 Jul 2018, 19:32

Unfortunately it has no effect.
All parameters like that topic but other objects still hidden.
User avatar
Lapo
Site Admin
Posts: 21340
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Don't show NPC in MMO Unity Example

Postby Lapo » 03 Jul 2018, 07:49

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
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
HTCraft
Posts: 27
Joined: 28 Jun 2018, 09:51
Location: Moscow, Russia
Contact:

Re: Don't show NPC in MMO Unity Example

Postby HTCraft » 03 Jul 2018, 14:54

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. :roll:
User avatar
HTCraft
Posts: 27
Joined: 28 Jun 2018, 09:51
Location: Moscow, Russia
Contact:

Re: Don't show NPC in MMO Unity Example

Postby HTCraft » 03 Jul 2018, 15:14

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?
User avatar
HTCraft
Posts: 27
Joined: 28 Jun 2018, 09:51
Location: Moscow, Russia
Contact:

Re: Don't show NPC in MMO Unity Example

Postby HTCraft » 03 Jul 2018, 15:39

Lol :D :D :D :D :D
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 13 guests