problem with #include directive
Posted: 05 Mar 2010, 10:22
There are difference from 1.6.6 version to past version in the use of #include directive? Or from Win release to Mac realease?
I have to modify .as room extensions that are correct in use in a server with installed 1.6.2 version.
Now in my Mac I have a smartfox 1.6.6 for local test but it doesn't works #include directive; this is the error:
If I past in "myExtension.as" the code of the .as files included it's work... but I can't do it for all room extensions.
I have to modify .as room extensions that are correct in use in a server with installed 1.6.2 version.
Now in my Mac I have a smartfox 1.6.6 for local test but it doesn't works #include directive; this is the error:
Code: Select all
09:53:06.327 - [ WARNING ] > Failed loading the specified extension script: myExtension.as -> it.gotoandplay.smartfoxserver.exceptions.MalformedIncludeException: Malformed #include directive
09:53:06.508 - [ WARNING ] > Error in extension [ myExtension.as ]: org.mozilla.javascript.UniqueTag (Line number not available)
java.lang.ClassCastException: org.mozilla.javascript.UniqueTag
at it.gotoandplay.smartfoxserver.extensions.JavascriptExtension.loadScript(JavascriptExtension.java:432)
at it.gotoandplay.smartfoxserver.extensions.JavascriptExtension.setScriptFile(JavascriptExtension.java:137)
at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.loadExtension(ExtensionHandler.java:133)
at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.createExtension(ExtensionHandler.java:207)
at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.createExtension(ExtensionHandler.java:189)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.handleCreateRoom(SystemHandler.java:2386)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.processEvent(SystemHandler.java:281)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.run(SystemHandler.java:146)
at java.lang.Thread.run(Thread.java:613)