07-01-2012, 01:37
07-01-2012, 10:26
i did it this way
xvfb-run --server-args='-screen 1 1024x768x24' -n 27024 /usr/bin/wine /home/gameserver/callofduty/mw3/iw5mp_server.exe +set dedicated 2 +set net_ip xx.xx.xx.xx +set net_queryPort 27024 +set net_port 27025 +set net_authPort 8766 +set net_masterServerPort 27026 +set sv_config mw3.cfg +set sv_map_rotation default +start_map_rotate
so the programm xvfb starts a virtual screen where it loads mw3 with wine
the screen is numbered with 0 and named as the port 27024
i can kill the server with
pkill -u gameserver -f ':27024 -screen 1'
where it uses the user gameserver and searches for the string :27024 whats the port and -screen 1 whats the screen number...
so it always kills the right process
if you want more than one mw3 server you have to change the screen number and the name of course
with this startup method i can start and stop it with my webinterface without any problems...
xvfb-run --server-args='-screen 1 1024x768x24' -n 27024 /usr/bin/wine /home/gameserver/callofduty/mw3/iw5mp_server.exe +set dedicated 2 +set net_ip xx.xx.xx.xx +set net_queryPort 27024 +set net_port 27025 +set net_authPort 8766 +set net_masterServerPort 27026 +set sv_config mw3.cfg +set sv_map_rotation default +start_map_rotate
so the programm xvfb starts a virtual screen where it loads mw3 with wine
the screen is numbered with 0 and named as the port 27024
i can kill the server with
pkill -u gameserver -f ':27024 -screen 1'
where it uses the user gameserver and searches for the string :27024 whats the port and -screen 1 whats the screen number...
so it always kills the right process
if you want more than one mw3 server you have to change the screen number and the name of course
with this startup method i can start and stop it with my webinterface without any problems...
07-02-2012, 23:06
(07-01-2012, 10:26)miramar Wrote: [ -> ]i did it this way
xvfb-run --server-args='-screen 1 1024x768x24' -n 27024 /usr/bin/wine /home/gameserver/callofduty/mw3/iw5mp_server.exe +set dedicated 2 +set net_ip xx.xx.xx.xx +set net_queryPort 27024 +set net_port 27025 +set net_authPort 8766 +set net_masterServerPort 27026 +set sv_config mw3.cfg +set sv_map_rotation default +start_map_rotate
so the programm xvfb starts a virtual screen where it loads mw3 with wine
the screen is numbered with 0 and named as the port 27024
i can kill the server with
pkill -u gameserver -f ':27024 -screen 1'
where it uses the user gameserver and searches for the string :27024 whats the port and -screen 1 whats the screen number...
so it always kills the right process
if you want more than one mw3 server you have to change the screen number and the name of course
with this startup method i can start and stop it with my webinterface without any problems...
But you use X server for start game server ?!