hello there,
the new npc-funktion works nice,
but sometimes when adding the NPC i get the message, that i cannot add
this NPC (for example adding 10 NPCs in a loop, the server cannot add #8 but continues with #9).
My first thought was that this happens when i try to add too many NPCs at once, but randomized this happens sometimes when i add only one NPC. Overall the method works fine, e.g. i add 500 NPCs i have at the end 469 NPCs or something like that.
[ com.bumblebee.silentwolves.game.NpcExt ]: Npc Ext called - JSON - createNPC
INFO | jvm 1 | 2008/11/28 10:11:43 | java.lang.Exception: Server connection was not found, can't proceed adding the NPC. Sorry.
INFO | jvm 1 | 2008/11/28 10:11:43 | at it.gotoandplay.smartfoxserver.extensions.ExtensionHelper.createNPC(ExtensionHelper.java:1258)
INFO | jvm 1 | 2008/11/28 10:11:43 | at com.bumblebee.silentwolves.game.NpcExt.lobbyLoginNPC(NpcExt.java:174)
INFO | jvm 1 | 2008/11/28 10:11:43 |
Error: can't proceed adding the NPC
Yes this helps when i am adding 1000 NPCs in a loop no NPC is lost due of the former problem.
Unfortunately i am adding the NPCs not always in some kind of loop. For example the clients can add NPCs at a random time and amout.
How can i avoid here the "java.lang.Exception: Server connection was not found, can't proceed adding the NPC. Sorry." ?
Do you have some kind of clue?
Unfortunately i am adding the NPCs not always in some kind of loop. For example the clients can add NPCs at a random time and amout.
How can i avoid here the "java.lang.Exception: Server connection was not found, can't proceed adding the NPC. Sorry." ?
Do you have some kind of clue?
im having the same issue. Is there a workaround?
When a client asks to start a new botGame a java.lang exception is thrown.
The strange thing is that it does'nt happen all the time.
When a client asks to start a new botGame a java.lang exception is thrown.
java.lang.Exception: Server connection was not found, can't proceed adding the NPC. Sorry.
at it.gotoandplay.smartfoxserver.extensions.ExtensionHelper.createNPC(ExtensionHelper.java:1258)
at se.raketspel.smartbox.core.ExtensionCore.createBot(ExtensionCore.java:519)
The strange thing is that it does'nt happen all the time.
Nisse Bergman
Raketspel
Raketspel
Are you using version 1.6.5?
You shouldn't have that problem anymore.
Also in 1.6.5 we have added an new "serverReady" event that is fired on the server side when SFS is ready to accept connections.
The event can be used to initialize the NPCs
viewtopic.php?t=4386
You shouldn't have that problem anymore.
Also in 1.6.5 we have added an new "serverReady" event that is fired on the server side when SFS is ready to accept connections.
The event can be used to initialize the NPCs
viewtopic.php?t=4386
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 19 guests