Smartfox version: 1.6.2
We are starting to develop a game using smartfox - I want to keep the development setup as automated as possible and therefore want to use an ant script to startup the smartfox server (after doing the necessary compiles and moves of files -- we are using java extensions)
My plan is to ask all developers to install their own version of smartfox and set an environment variable pointing to that installation.
I'm running into a problem with the jython part.
My ant file contains the following setup:Exception in thread "main" Traceback (innermost last):
File "<string>", line 13, in ?
ImportError: no module named main
(SMARTFOXSERVER_HOME is the environment var that points to the smartfox 'Server' directory)<property name="smartfoxlib" value="${env.SMARTFOXSERVER_HOME}/lib"/>
<property name="smartfoxjavaextensions" value="${env.SMARTFOXSERVER_HOME}/javaExtensions"/>
<property name="smartfoxsfsextensions" value="${env.SMARTFOXSERVER_HOME}/sfsExtensions"/>
<property name="pypath" value="${env.SMARTFOXSERVER_HOME}" />
<path id="smartfox.classpath">
<fileset dir="${smartfoxlib}">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${smartfoxjavaextensions}"/>
<pathelement path="${smartfoxsfsextensions}"/>
<pathelement path="${pypath}"/>
</path>
<target name="run">
<echo message="Smartfox Server Home = ${env.SMARTFOXSERVER_HOME}"/>
<property name="myclasspath" refid="smartfox.classpath"/>
<echo message="classpath = ${myclasspath}"/>
<java
classname="it.gotoandplay.smartfoxserver.SmartFoxServer"
classpathref="smartfox.classpath"
fork="true"
>
<jvmarg value="-Dfile.encoding=UTF-8"/>
<jvmarg value="-Djava.util.logging.config.file=logging.properties"/>
<arg value="smartfox_config.xml" />
</java>
</target>
From tracing a bit on the kernel level I have the idea that the java part of the server starts running, tries to load python stuff and fails half-way through...
I hope someone has a hint for me, I don't know a lot about Python/Jython
Simon
PS: the server runs just fine when I run it using it's own scripts from withing the server dir.