Game server admin's helping the community setup and maintain great dedicated game servers.
----Home----Submit News ----Forum--------Guides----


Go Back   FPSadmin.com > Call of Duty > Call of Duty World at War > CoD:WW General server support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2008, 05:47 AM
rudedog's Avatar
rudedog rudedog is offline
Site Owner
 
Join Date: Oct 2002
Location: Florida, USA
Age: 49
Posts: 9,954
Rep Power: 31
rudedog is a splendid one to beholdrudedog is a splendid one to beholdrudedog is a splendid one to beholdrudedog is a splendid one to beholdrudedog is a splendid one to beholdrudedog is a splendid one to behold
Send a message via Skype™ to rudedog
CoDWW server using wine on debian-based systems

This guide was put together by Terje from the Linux mailing list (cod@icculus.org). We are mirroring it while we wait for Treyarch and Activision to release proper Linux files for World at War.


Guide for running Call of Duty: World at War server using wine on debian-based systems
by Terje Tjeldnes.
You may freely distribute and modify this guide without restrictions, but I won't mind being credited
The latest version can always be found at http://www.multikill.no/guides/cod5-...bian-guide.txt

######################
Disclaimer: This guide was written two or three weeks after I actually performed these steps myself, so if you run into
any problems with this guide, please drop me an email at terje@multikill.no, and I'll try to update the guide to fix the problem.

This guide assumes that you know how to install a basic ubuntu/debian system (or that you already have a server with a
debian-based system installed), if you do not, there are plenty of helpful and easy to follow guides to be found on the web
(just Google "install debian" or "install ubuntu").

I'm assuming that you have remote shell access to your intended server (either via SSH or some other form of management console)
with root access (either via su or sudo), and general knowledge of how to use the Command Line Interface (CLI) and basic tools
such as basic navigation in the filesystem, a text editor, tar and unzip.

NOTICE: My guide uses "screen" to run the game server in wine instead of an X environment.
This means you lose the option to input commands directly to the game console, but this is not normally needed since
you can issue most (if not all) of these commands through RCon.
#####################

Prerequisites:

You need the following:

*). Call of Duty: World at War game files _already patched_ to the latest patch level (at the time of writing this is 1.1).
You need basically everything except the video files found in <gamedir>/main/video/. Some have had success installing and
patching the game in wine, but I have not tested this and as such will not try to document it. I installed and patched my
game on my Windows machine.

*). The latest version of wine, follow the instructions at http://www.winehq.org/download/deb (see later on in the guide).
You need AT LEAST version 1.1.8 or later! (type wine --version if you are unsure of what version you are running).

*). A server config file. You can find an example config stolen shamelessly from some other site here:
http://www.multikill.no/configs/server.cfg

*). Root access to your server (or atleast the contact info of your server admin, willing to install these packages for you).

Thats about it. Lets get to it!

1). Install screen

apt-get install screen

2). Install wine using the instructions at http://www.winehq.org/download/deb

3). Unzip/untar/ungzip/unbzip your gamefiles to a desired directory if you archived them.

I'll use /games/cod5/:

root@gaming01:~# mkdir /games
root@gaming01:~# cd /games

For ZIP files:
root@gaming01:/games# unzip /path/to/cod5.zip

For .tar.gz:
root@gaming01:/games# tar zxvf /path/to/cod5.tar.gz

For .tar.bz2:
root@gaming01:/games# tar jxvf /path/to/cod5.tar.bz2

If you archived the directory from your windows install, you'll normally now have a directory named /games/Call of Duty... etc
Rename that directory to "cod5" or whatever you desire.

Put your server.cfg in the main directory (i.e. /games/cod5/main/).

5). Start your server

To start your server, change directory to where you copied your game files:

terjetj@gaming01:~$ cd /games/cod5

Then start your server:

terjetj@gaming01:/games/cod5$ screen -S server1 wine CoDWaWmp.exe +set dedicated 2 +set net_ip YOUR_IP +set net_port YOUR_PORT +set sv_punkbuster 1 +exec server.cfg +map_rotate

Your server should launch! Press CTRL+A+D to detach from your screen session, this will keep the server running.

If you need to stop your server, you can either to /rcon login <your-rcon-pass> and then /rcon killserver from a game client,
or you can ssh into your server, type screen -r server1 and press CTRL+C.

If you want to start several gameservers, simply launch screen with a different screen tag (such as "screen -S server2"),
different net_port and different config file (server2.cfg, for example).
__________________
Not so Rude -RudeDog via Twitter or Friend feed

Microsoft MVP 2009-2016 Games for Windows
Reply With Quote
  #2  
Old 12-12-2008, 06:22 PM
MrBrown's Avatar
MrBrown MrBrown is offline
Senior Member
 
Join Date: Dec 2008
Posts: 148
Rep Power: 9
MrBrown is on a distinguished road
Didn't work for me... guess I'll have to wait for the linux binaries
Code:
wine: Unhandled illegal instruction at address 0x41e7fa (thread 0009), starting debugger...
Unhandled exception: illegal instruction in 32-bit code (0x0041e7fa).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:0041e7fa ESP:0032fe60 EBP:0032ff08 EFLAGS:00010202(   - 00      - -RI1)
 EAX:008c93d0 EBX:00000001 ECX:008ad020 EDX:00000000
 ESI:007d84d4 EDI:007d8998
Stack dump:
0x0032fe60:  007d705e 008ad020 008ad030 008ad040
0x0032fe70:  008c93c0 00798f35 00000a28 00000002
0x0032fe80:  0079a210 00000001 8354b47e 0079a2a6
0x0032fe90:  7ffdf000 7b8b18a0 00000044 00000000
0x0032fea0:  00000000 00000000 00000000 00000000
0x0032feb0:  00000000 00000000 00000000 00000000
Backtrace:
=>1 0x0041e7fa in codwawmp (+0x1e7fa) (0x0032ff08)
  2 0x7b872bca in kernel32 (+0x52bca) (0x0032ffe8)
  3 0xb7dc6817 wine_switch_to_stack+0x17() in libwine.so.1 (0x00000000)
0x0041e7fa: (bad)
Reply With Quote
  #3  
Old 12-12-2008, 06:44 PM
bacon bacon is offline
Senior Member
 
Join Date: Mar 2008
Age: 42
Posts: 684
Rep Power: 10
bacon is on a distinguished road
Its shameful that we would have to resort to using an emulator on linux to run a server. Ugh I am so disappointed they haven't been released this long after launch.
Reply With Quote
  #4  
Old 12-12-2008, 07:08 PM
SamCro's Avatar
SamCro SamCro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 18
Rep Power: 0
SamCro is on a distinguished road
Bacon, are your server set up so players Rank up fast?
Reply With Quote
  #5  
Old 12-12-2008, 09:45 PM
bacon bacon is offline
Senior Member
 
Join Date: Mar 2008
Age: 42
Posts: 684
Rep Power: 10
bacon is on a distinguished road
Quote:
Originally Posted by SamCro View Post
Bacon, are your server set up so players Rank up fast?
Yes, and I have been waiting patiently for the linux bins, and redirect to be able to set up something else like a TR and a match server.

Its kinda sad but I did it to keep the traffic from going elsewhere.
Reply With Quote
  #6  
Old 12-12-2008, 10:01 PM
SamCro's Avatar
SamCro SamCro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 18
Rep Power: 0
SamCro is on a distinguished road
Quote:
Originally Posted by bacon View Post
Yes, and I have been waiting patiently for the linux bins, and redirect to be able to set up something else like a TR and a match server.

Its kinda sad but I did it to keep the traffic from going elsewhere.

So for the sake of keeping your server full your letting everybody rank up to prestige level 10 in a day. Pretty lame excuse dude. Like I said in another post here, it's like one level below cheating.
Reply With Quote
  #7  
Old 12-13-2008, 08:53 AM
MrBrown's Avatar
MrBrown MrBrown is offline
Senior Member
 
Join Date: Dec 2008
Posts: 148
Rep Power: 9
MrBrown is on a distinguished road
Seems Wine 1.1.10 is needed for CoD5, but only Wine 1.1.1 is available as a binary package for Debian Etch. I guess that's where my error message posted above comes from.

P.S.: Just compiling Wine 1.1.10 myself... wish me good luck ^^

P.P.S.: I hate "Fast Ranking" servers, just like I hate those Inf.Only Karkand BF2 Servers...

Last edited by MrBrown; 12-13-2008 at 09:10 AM.
Reply With Quote
  #8  
Old 12-13-2008, 11:23 AM
MrBrown's Avatar
MrBrown MrBrown is offline
Senior Member
 
Join Date: Dec 2008
Posts: 148
Rep Power: 9
MrBrown is on a distinguished road
Fail again...

Code:
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied
wine: Unhandled illegal instruction at address 0x41e7fa (thread 0009), starting debugger...
Unhandled exception: illegal instruction in 32-bit code (0x0041e7fa).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:0041e7fa ESP:0032fe60 EBP:0032ff08 EFLAGS:00010202(   - 00      - -RI1)
 EAX:008c93d0 EBX:00000001 ECX:008ad020 EDX:00000000
 ESI:007d84d4 EDI:007d8998
Stack dump:
0x0032fe60:  007d705e 008ad020 008ad030 008ad040
0x0032fe70:  008c93c0 00798f35 00000a28 00000002
0x0032fe80:  0079a210 00000001 84f87bc8 0079a2a6
0x0032fe90:  7ffdf000 7b8afa1c 00000044 00000000
0x0032fea0:  00000000 00000000 00000000 00000000
0x0032feb0:  00000000 00000000 00000000 00000000
Backtrace:
=>1 0x0041e7fa in codwawmp (+0x1e7fa) (0x0032ff08)
  2 0x7b873987 start_process+0xc7(arg=(nil)) [/home/mrbrown/wine_install/wine-1.1.10/dlls/kernel32/process.c:904] in kernel32 (0x0032ffe8)
  3 0xb7e38977 wine_switch_to_stack+0x17() in libwine.so.1 (0x00000000)
0x0041e7fa: (bad)
Still kudos to everyone out there working on these tutorials.
I just hope developers won't use such efforts as an argument for not developing linux server binaries in the future.
Reply With Quote
  #9  
Old 12-13-2008, 12:19 PM
bacon bacon is offline
Senior Member
 
Join Date: Mar 2008
Age: 42
Posts: 684
Rep Power: 10
bacon is on a distinguished road
Quote:
Originally Posted by SamCro View Post
So for the sake of keeping your server full your letting everybody rank up to prestige level 10 in a day. Pretty lame excuse dude. Like I said in another post here, it's like one level below cheating.
I didn't leave the dvars unlocked, Treyarch did, and the players will go elsewhere if I don't. They need to do away with the ranked system anyways.

I will be running at least two modded servers when they fix the redirect that will unlock all the weapons anyways. Is that one level above cheating as well?

Sorry for being off topic.
Reply With Quote
  #10  
Old 12-13-2008, 01:21 PM
SamCro's Avatar
SamCro SamCro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 18
Rep Power: 0
SamCro is on a distinguished road
I guess you can say the same thing when they released COD 2 "Oh no punkbuster, it's ok to cheat till they fix it, I'm not doing nothing wrong" As Admin you should not be condoning it. specially coming into this a highly respected forum, asking how to set up your servers or advertise it! it's like when all game comes out they all have bugs and players exploit to get a advantage. you don't pat then on they back and say nice job, your going to warn them then kick them. What your doing is exploiting the game the same as players do. And please all the admin that are saying they doing it to keep they servers full or they waiting for for the Linux files, or I didn't leave the dvars unlocked, Treyarch did.There's a lot of servers that are full with out running a exploited server, your no better then the players that use exploits it's as simple as that!
Reply With Quote
  #11  
Old 12-25-2008, 09:01 AM
wcg707 wcg707 is offline
Junior Member
 
Join Date: Nov 2008
Posts: 4
Rep Power: 0
wcg707 is on a distinguished road
Well the non-availability of Linux bin is indeed very sad and upsetting to most providers. Those running MS will not complained and those running Linux will be very creative to overcome this.

For example, I'm running COD4 in an openSuSE box without any problem and then WaW came along and after waiting like a month and still no news, this what I did, upgrade and install openSuSE-xen kernel in the same box, downloaded Windows 2008 trial and then create a new xen virtual machine running Windows 2008 Trial (heck this trial can last 240 days from the date of installation), which if Linux version didn't come out by then, you know that you might as well forget about hosting WaW in Linux.

Once your new Windows VM is running, then just install WaW as you would normally do. Now you have both Linux COD4 and Xen VM MS 2008 running WaW.

MY W2008 is made up of 1 X vcpu (2.4Ghz Xeon - One Core out of 4 core dedicated to this vm), 1 X 40GB virtualdisk, and suprisingly 1GB RAM and dedicated IP.

If anyone need guide, I don't mind doing it but mostly you can get the setup guide easily for xen or even vmware and virtualbox if you just google them.
Reply With Quote
  #12  
Old 01-22-2009, 03:06 AM
merlyn_cgoty merlyn_cgoty is offline
Junior Member
 
Join Date: Nov 2008
Posts: 18
Rep Power: 0
merlyn_cgoty is on a distinguished road
Hello guys,
I'm going to start using ubuntu and i think this guide above is very useful.
I could run my codwaw servers on ubuntu using this, but i have one more problem to solve.
I'm digging into wine documentation but i thought may be you could save me some time figuring out my problem.
I wonder how i can run modded server using wine on linux.
What i basically need is that i have to configure wine so it finds mod files somewhere in linux filesystem. I guess i have to find a way for wine to find a virtual path for c:\documents and settings\administrator\Local Settings\Application Data\Activision\CoDWaW\Mods.
Is there someone who knows how to configure wine for that?

[EDIT]
Problem Solved...
Here is the location you have to copy your mod files under linux file system:

"users hoem directory"/.wine/drive_c/windows/profile/"your username"/Local Settings/Application Data/Activision/CoDWaW

When you run codwawmp with wine, it creates Activision/CoDWaW on its own... you can just run a find to find the right location for you...

Last edited by merlyn_cgoty; 01-22-2009 at 11:19 AM.
Reply With Quote
  #13  
Old 02-12-2009, 09:28 PM
Kioti's Avatar
Kioti Kioti is offline
Member
 
Join Date: Oct 2007
Location: Kentucky USA
Posts: 35
Rep Power: 0
Kioti is on a distinguished road
Thanks for the help guys!

Power Ranking is part of the Game, just like the Grenade Launchers, Butt Bombs and Sniper Pistils.

There are 2,986 people playing this game right now, 9:30 PM on a Thursday night.
Its a little too late to be crying about Power Ranking.

How about some instructions to the Modding and Mapping tools. We Payed for it time and time again.
Reply With Quote
  #14  
Old 04-14-2009, 10:18 AM
1tansu1 1tansu1 is offline
Junior Member
 
Join Date: Nov 2008
Posts: 29
Rep Power: 0
1tansu1 is on a distinguished road
Sick of Treyarch

Hello Guys.

Its time for me to say I am sick of Treyarch......and I should also say * WE * in that..... Why cant a bloody patch come out sametime as linux??? If they are ready to release normal patch they should wait even 1 - 2 week more release everything in once so there is no arguements or unfairness. Its been over a week now i think from 1.4 where is the bloody patch??? Do they work 1 year to make up linux patchs aye? This is nothing but ridiclious.

I hope someone will support this point enough to pass this to * TREYARCH *. :P
Reply With Quote
  #15  
Old 04-14-2009, 12:23 PM
Neil Neil is offline
Senior Member
 
Join Date: Jul 2007
Location: Stansted, UK
Posts: 1,652
Rep Power: 12
Neil is on a distinguished road
Quote:
Originally Posted by 1tansu1 View Post
Hello Guys.

Its time for me to say I am sick of Treyarch......and I should also say * WE * in that..... Why cant a bloody patch come out sametime as linux??? If they are ready to release normal patch they should wait even 1 - 2 week more release everything in once so there is no arguements or unfairness. Its been over a week now i think from 1.4 where is the bloody patch??? Do they work 1 year to make up linux patchs aye? This is nothing but ridiclious.

I hope someone will support this point enough to pass this to * TREYARCH *. :P
http://www.fpsadmin.com/forum/showthread.php?t=17440
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:23 PM.


Powered by: vBulletin Copyright ©2000, Jelsoft Enterprises Ltd.