Postby aiaustin » 15 Sep 2015, 19:22
I can use the default basicExamples zone and a the default UnityMMODEmno or a customized room name there. but once I try to use a new (pre-established zone) with (apparently) exactly the same settings in all tabs as BasicExamples.. all hell breaks loose and I start on every load to get errors on restarting the server - to ensure the room with NPCs in it is not present. I seem to have to go to a saved copy of the Zone .xml files to be able to restart SFS2X without this stratup error.. and that's before I try to run the Unity app and connect.
19:39:32,777 INFO [main] managers.SFSRoomManager - Room created: { Zone: I-Zone }, [ Room: I-Room, Id: 1, Group: default, isGame: false ]
19:39:33,431 INFO [main] Extensions - {pyTest}: MMO Item Tester: 1.02
19:39:33,443 WARN [main] extensions.PythonExtension - Failed initializing Python Extension: pyTest -> Traceback (innermost last):
File "<string>", line 98, in init
File "<string>", line 119, in simulatePlayers
at com.smartfoxserver.v2.api.SFSApi.createNPC(SFSApi.java:690)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.NullPointerException: java.lang.NullPointerException
------
There are much longer sets of errors when running the Unity app itself, as below. But if we could explain why the zone .xml files seem to get messed up as above that would be a start.
19:36:23,511 INFO [SFSWorker:Sys:3] api.SFSApi - User login: { Zone: I-Zone }, ( User Name: Ai, Id: 1, Priv: 0, Sess: 129.215.219.86:50776 ) , Type: Unity
19:36:23,538 INFO [SFSWorker:Sys:4] api.SFSApi - Room joined: [ Room: I-Room, Id: 1, Group: default, isGame: false ], { Zone: I-Zone }, ( User Name: Ai, Id: 1, Priv: 0, Sess: 129.215.219.86:50776 ) , asSpect: false
19:36:23,820 WARN [SFSWorker:Ext:4] managers.SFSExtensionManager - com.smartfoxserver.v2.exceptions.SFSRuntimeException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: com.smartfoxserver.v2.exceptions.SFSRuntimeException
Message: Room is not an MMORoom! [ Room: I-Room, Id: 1, Group: default, isGame: false ], ( User Name: Ai, Id: 1, Priv: 0, Sess: 129.215.219.86:50776 )
Description: Error during event handling: com.smartfoxserver.v2.exceptions.SFSRuntimeException: Room is not an MMORoom! [ Room: I-Room, Id: 1, Group: default, isGame: false ], ( User Name: Ai, Id: 1, Priv: 0, Sess: 129.215.219.86:50776 ) , Listener: org.python.proxies.main$UserVarsUpdateListener$0@19a20d0
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.api.SFSMMOApi.setUserPosition(SFSMMOApi.java:85)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.python.core.PyReflectedFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyObject.invoke(Unknown Source)
org.python.pycode._pyx0.handleServerEvent$2(<string>:51)
org.python.pycode._pyx0.call_function(<string>)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyObject._jcallexc(Unknown Source)
org.python.proxies.main$UserVarsUpdateListener$0.handleServerEvent(Unknown Source)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.dispatchEvent(SFSExtensionManager.java:769)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.dispatchRoomLevelEvent(SFSExtensionManager.java:711)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.handleServerEvent(SFSExtensionManager.java:969)
com.smartfoxserver.v2.core.SFSEventManager$SFSEventRunner.run(SFSEventManager.java:65)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::