TrueCombat http://truecombatelite.com/forums/ |
|
MWTC linux server HOWTO http://truecombatelite.com/forums/viewtopic.php?f=51&t=2443 |
Page 1 of 1 |
Author: | merlin1991 [ Thu Feb 14, 2013 1:48 am ] |
Post subject: | MWTC linux server HOWTO |
This should be helpfull to serveradmins to get a server up on linux. If you're running a x64 server you first need 32bit compatability libs, on debian stable that would be the package "ia32-libs" on ubuntu / debian-testing "libc6-i386" should be enough. 1. Cod4 We will install the server in a public directory in oder to use different users for different servers. Since we need all files owned by root I run as root from now on Start of with creating a a directory "cod4-linux-server" in /usr/local/games Code: mkdir /usr/local/games/cod4-linux-server Now you need to upload all the cod4 media files, you need the main, miles and zone folder from your installation. Copy them into the newly created folder on the server, this will take some time 6.3GB don't upload in a second. Now we need the actual linux binaries Code: curl -OL http://treefort.icculus.org/cod/cod4-linux-server-06282008.tar.bz2 curl -OL http://treefort.icculus.org/cod/cod4-lnxsrv-query-limit-test.tar.bz2 The first is the linux stuff, whilst the 2nd is a fix for the getuserinfo exploit. Time to extract the archives: Code: cd /usr/local/games/cod4-linux-server tar -xf PATHTOcod4-linux-server-06282008.tar.bz2 tar -xf PATHTOcod4-lnxsrv-query-limit-test.tar.bz2 Do not extract the fix first! We also need a handcrafted startscript because otherwise the cod4 binary will not find the libraries that came with it Open a new file "cod4-ded" (inside the cod4-linux-server directory) in your favourite text editor and write Code: #!/bin/sh cd /usr/local/games/cod4/ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. ./cod4_lnxded $@ also make it executable Code: chmod +x cod4-ded now we just need to make this script findable by the average user Code: cd /usr/local/bin ln -s /usr/local/games/cod4-linux-server/cod4-ded At this point you could try to start a regular cod 4 server as a user NOT as root. If it works we're halfway there. 2. Punkbuster Get the latest PbSetup for linux from evenbalance http://websec.evenbalance.com/downloade ... php?file=5 (you need todo this locally and upload it because it has a captcha) Upload it to the server and run Code: cd whereveryouuploadedthezipto unzip pbsetup.zip chmod +x pbsetup.run ./pbsetup.run -ag cod4 -ap /usr/local/games/cod4-linux-server ./pbsetup.run -u If the last step fails try it again, and again. If it still doesn't work you'll have to make a local install under linux, run it there and then upload the "pb" folder to the server. 3. MWTC Load the MWTC zip to the server and unpack it like this: Code: cd /usr/local/gamerrs/cod4-linux-server unzip PATHTOMWTC_alpha022.zip You should be able to start a mwtc server like this now (again NOT as root): Code: cod4-ded +set fs_game mods/truecombat +map mp_tc_hangar When you've started the server once you'll have a folder .callofduty4 in your home directory, put all your server configs into mods/truecombat there to seperate them per user. And here is a sample server config: Code: sets _Admin YOURNAME sets _Location SERVERCOUNTRY set sv_hostname SERVERNAME set sv_mapRotation "map mp_tc_backlot map mp_tc_hangar" // TC BASE STUFF taken from truecombat.cfg // warmup/ready countdown set scr_game_playerwaittime "3" set scr_game_playerstarttime "3" set scr_game_matchstarttime "3" set scr_player_forcerespawn "0" set scr_player_maxhealth "100" set scr_team_fftype "3" // [0-3] (Disabled, Enabled, Reflect, Shared) set ui_hud_obituaries "0" set ui_hud_showobjicons "1" // player limits set sv_maxclients 14 set sv_privateClients 0 set sv_minPing 0 set sv_maxPing 250 set scr_teambalance 1 set sv_voice 0 //voting set g_allowvote 0 Also a little thing about ctf, starting a server with +set g_gametype ctf doesn't work, you have to put "gametype ctf" at the beginning of the maprotation like this: Code: set sv_mapRotation "gametype ctf map mp_tc_backlot map mp_tc_hangar" And start the server like this: Code: cod4-ded +set fs_game mods/truecombat +map_rotate
|
Author: | d31m0 [ Thu Mar 28, 2013 1:30 am ] |
Post subject: | Re: MWTC linux server HOWTO |
After fighting a whole day with 2 servers i have some additional infos. 1) The files from a CoD4 CD or a installed CoD have to be copied to the server. (The files from main folder and zones) 2) The gametype can be set by +set g_gametype sd or war (demolition/bodycount) as start parameter. 3) For setting server passwords the following needs to be in server.cfg (Im not sure if server is unprotected without that options) Code: set rcon_password "password" // for admin console set sv_privatePassword "password" // for private slots set g_password "" // server password 4) for starting 2 servers from one host the port can be changed as start parameter. eg. Code: /usr/local/bin/screen -A -m -d -S wmtcsd cod4-ded +set fs_game mods/truecombat +set net_port 28961 +exec server2.cfg +set g_gametype sd +map mp_tc_backlot +set dedicated 2 & 5) MWTC runs perfect in a FreeBSD host with linux emulation enabled (linux_base-f10) Greets Dirk |
Author: | merlin1991 [ Fri Mar 29, 2013 8:16 pm ] |
Post subject: | Re: MWTC linux server HOWTO |
d31m0 wrote: 1) The files from a CoD4 CD or a installed CoD have to be copied to the server. (The files from main folder and zones) merlin1991 wrote: Now you need to upload all the cod4 media files, you need the main, miles and zone folder from your installation. Just saying Copy them into the newly created folder on the server, this will take some time 6.3GB don't upload in a second. ![]() As for #3, the server is protected in a sense already, that if you set no rcon password rcon is disabled. |
Author: | d31m0 [ Sat Mar 30, 2013 12:15 am ] |
Post subject: | Re: MWTC linux server HOWTO |
oops it seems that i can“t read at 03:00 h anymore. o.0 ![]() |
Author: | luka [ Mon Apr 01, 2013 1:00 pm ] |
Post subject: | Re: MWTC linux server HOWTO |
merlin1991 wrote: Now you need to upload all the cod4 media files, you need the main, miles and zone folder from your installation. Just saying Copy them into the newly created folder on the server, this will take some time 6.3GB don't upload in a second. ![]() As for #3, the server is protected in a sense already, that if you set no rcon password rcon is disabled.[/quote] I think there are COD4 file in .zip or tar.gz so u only download it with SSH command and extract it. |
Author: | karenbruce [ Thu Apr 04, 2013 1:24 am ] |
Post subject: | Re: MWTC linux server HOWTO |
Is there any option if ever the server is protected? |
Author: | cqbdrug [ Thu Apr 04, 2013 7:12 pm ] |
Post subject: | Re: MWTC linux server HOWTO |
BIG THANKS MERLIN FOR YOUR GREAT WORK ![]() ![]() ![]() ![]() |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |