3 CLUSTER_NAME
=DesignGalaxy
4 CENTRAL_SERVER_ADDRESS
=swo-dev7.station.sony.com
5 CENTRAL_GAME_PORT
=44471
6 CENTRAL_PLANET_PORT
=44475
9 LOGIN_SERVER_ADDRESS
=swo-dev6.station.sony.com
10 EXE_DIR
=~
/swg
/current
/exe
/linux
16 AVAIL
=`netstat -aut|grep $PORT`
17 while [ -n "$AVAIL" ];
21 AVAIL
=`netstat -aut|grep $PORT`
31 echo "** Starting GameServer at " $
(date +"%Y%m%d-%k.%M.%S")
32 .
/SwgGameServer_d
-- @servercommon.cfg @combat.cfg \
33 -s GameServer sceneID
=$PLANET_NAME \
34 centralServerAddress
=$CENTRAL_SERVER_ADDRESS \
35 centralServerPort
=$CENTRAL_GAME_PORT \
36 groundScene
=terrain
/${GAME_SCENE} \
37 clusterName
=$CLUSTER_NAME \
39 regenerationRate
=0.00532 \
40 scriptPath
=..
/..
/data
/sku
.0/sys.server
/compiled
/game \
41 useRemoteDebugJava
=0 \
43 javaConsoleDebugMessages
=1\
46 warningCallStackDepth
=0 \
53 GAME_SERVICE_PORT
=(get_free_port
);
55 echo "** Starting PlanetServer at " $
(date +"%Y%m%d-%k.%M.%S") " gameserviceport=${GAME_SERVICE_PORT}"
57 -s PlanetServer sceneID
=$PLANET_NAME \
58 clusterName
=$CLUSTER_NAME \
59 centralServerAddress
=$CENTRAL_SERVER_ADDRESS \
60 centralServerPort
=$CENTRAL_PLANET_PORT \
66 CRASHDIR
="/swo/swg/CRASH-"`date +"%Y%m%d-%k.%M.%S"`
68 echo "**********************************************************************"
69 echo "** !!FATAL WARNING FATAL WARNING FATAL WARNING FATAL WARNING!!"
73 echo "** Server is no longer running. It failed to properly start."
74 echo "** If this is an unknown bug, advise the server development team."
76 echo "** A crash directory called $CRASHDIR"
77 echo "** is being created, logs and the core file will be placed in "
80 echo "**********************************************************************"
82 echo -n "Killing servers ..."
84 cp /swo
/swg
/*.log
$CRASHDIR
85 cp /swo
/swg
/current
/exe
/linux
/core
$CRASHDIR
91 #-----------------------------------------
93 #-----------------------------------------
100 echo " -s <scene> scenefile (default: $GAME_SCENE)"
101 echo " -x <exe dir> executable dir name (default: $EXE_DIR)"
102 echo " -n <nbname> nbname dir (default: $NBNAME)"
103 echo " -p <planetname> planet name (default: $PLANET_NAME)"
106 while getopts "hs:x:n:p:" arg
111 echo "Setting Game Scene to: $GAME_SCENE"
115 echo "Setting Executable Dir to: $EXE_DIR"
119 echo "Setting Planet Name to: $PLANET_NAME"
130 #-----------------------------------------
131 #-----------------------------------------
133 echo "Port selection:"
135 echo -n "Starting planet server planet=${PLANET_NAME}... "
139 echo -n "Starting game server planet=${PLANET_NAME} scene=${GAME_SCENE} ... "
144 echo "**********************************************************************"
145 echo "You may now connect to your game cluster [ $CLUSTER_NAME ]."
146 echo "Your client configuration should have an entry "
147 echo "loginServerAddress=$LOGIN_SERVER_ADDRESS "
149 echo "If you are connecting to a different login server"
150 echo "ensure that servercommon.cfg in your depot reflects the"
151 echo "alternate server address, and that your client config"
154 echo "Contact Justin Randall or Chris Mayer if you are having trouble"
155 echo "**********************************************************************"