View Single Post
  #4  
Old 10-11-2007, 11:29 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Do you have a startup script? here's a minilogin example;
./startup:
Code:
#!/bin/sh

wine MiniLogin.exe > logs/MiniLogin.log &
P=`pwd` 
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$P"
#make sure we have a place to log
mkdir -p logs 2>&1 > /dev/null 

#boot up world
if [ ! -e .lock-world ] ; then 
	    touch .lock-world 
	    ./world & 
	    # wait for shared memory to load
	    sleep 20 
fi 
#start up the official launcher
if [ ! -e .lock-launcher ]; then
	    touch .lock-launcher
	    ./eqlaunch zones &
	    sleep 40
	    ./eqlaunch LoY &
	    sleep 40
	    ./shifts & 
	    ./eqlaunch Classic &
	    sleep 40
#	    ./eqlaunch Kunark &
#	    sleep 40
#	    ./eqlaunch Cities &
#	    sleep 120

fi
You need a "stop" script too
./stop;
Code:
#!/bin/sh 

killall world eqlaunch zone shifts
sleep 3

if ps ax|grep -e 'w[o]rld' -e 'z[o]ne' -e 'eq[l]aunch' >/dev/null; then
	            killall -9 world eqlaunch zone
	            sleep 2
fi

./cleanipc 
rm -f .lock-zones .lock-world .lock-login .lock-launcher
(launcher (eqlaunch) starts the zone executable.)


eqemu_config.xml;
Code:
<?xml version="1.0">
<server>
        <world>
		<shortname>classic</shortname>
		<longname>Angelox Classic Challenge</longname>
                
                <!-- Only specify these two if you really think you need to. -->
		<address>blackwater.dynip.com</address>
		<localaddress>192.168.1.105</localaddress>
		
		<!-- Loginserver information.  -->
        <loginserver>
		<host>192.168.1.105</host>
		<port>5999</port>
		<account></account>
		<password></password>
        </loginserver>
	<!-- Server status.  Default is unlocked -->
	<!--<locked/>-->
	<!-- <unlocked/> -->
                
	<!-- Sets the shared key used by zone/launcher to connect to world -->
                <key>*********</key>

                <!-- Enable and set the port for the HTTP service. -->
                <http port="9080" enabled="true" mimefile="mime.types" />
        </world>

                <!-- Database configuration, replaces db.ini. -->
        <database>
                <host>localhost</host>
                <port>3306</port>
                <username>eq</username>
                <password>******</password>
                <db>ax_classic</db>
        </database>
</server>
Reply With Quote