PDA

View Full Version : [CoD2] Install CoD2 on your VDS much faster!



Lonsofore
23rd April 2017, 07:29
Attention!
I don't support this repo and torrent anymore because of
my Docker version (https://killtube.org/showthread.php?3167-CoD2-Setup-CoD2-with-Docker)
so I highly recommend to use it instead.


Hello, Killtube!
I think, everyone know this thread (https://killtube.org/showthread.php?2454-Work-in-progress-Setup-CoD2-on-your-ubuntu-14-04-server) from IzNoGoD. It's a great tutorial and whole Killtube can agree with me, I think (because everyone give link on this thread to beginners). I like it, but... few days ago I changed my hosting and not only once (thank you, good russian hosters). And after another installation I already had a file with commands from that thread (and some else). So, it was a story, now I wanna show you the main subject of this thread :)


About:
I created .sh file, which can install ALL what you need for CoD2 (if it's not all - let's modify it together).
I measured the time from VDS purchase to full CoD2 installation with this .sh and it's less than 10 minutes (with uploading all cod2 files!).
So, any beginner, even he doesn't know anything about Linux can install CoD2 server on Linux now!


So, what does this do:
All what you need to start cod2 server(s):

Updating and upgrading packets
Install all libs for cod2
Install some tools, which you will need (git ssh scp nano make screen zip unzip perl aria2 geoip-bin man-db sqlite sshpass)
Ask you to install no-ip client (for dynamic dns. you will need this for gametracker.com)
Ask you to install web-server (lighttpd or apache2 - on your own)
Ask you to install phpmyadmin (only if you installed web-server)
Creates new user for cod2 (will ask you about name)
Creates all cod2 folders for all versions (it will use links, so you don't have to have main files for all versions)
Ask you to upload main files by yourself or download it from my link or download it from torrent!
Install the latest version of libcod (from VoroN's repo)
Install cod2_lnxded for all versions
Install YOUR servers for each version (ask you about your sh name, fs_game, config name, cracked and port)
Make .sh files to launch your servers (for all CoD2 versions, what you need)



cod2_lnxded versions:
This is the latest patched versions of CoD2 servers (from this thread (https://killtube.org/showthread.php?1719-CoD2-Latest-cod2-linux-binaries-(1-0-1-2-1-3))):

1.0: cod2_lnxded_1_0a
1.2: cod2_lnxded_1_2c_patch_va_loc
1.3: cod2_lnxded_1_3_patch_va_loc



And what do you need to start it:
0. Get VDS with Ubuntu 14.04 or 16.04 and log in as root there.
1. On command line, type in the following commands:

apt-get update
apt-get install git -y
git clone https://github.com/lonsofore/cod2install
cd cod2install
./start.sh
2. Enter your info, when it will ask!


Few tips:

All server files you should upload in ~/cod2/servers/
All your maps you should upload in ~/cod2/Library/fs_game/ (fs_game of your server)
To start your servers open a folder cod2_1_0 or cod2_1_2 or cod2_1_3 and launch it with ./name.sh (there name is the name of your server sh file)
You can update libcod very fast - just launch parts/libcod.sh (from cod2install folder)
You also can manage your servers faster. To add a new server - use parts/servers.sh (from cod2install folder also)



Some screenshots:
1342
1343


Github link (https://github.com/lonsofore/cod2install)
Let me know about mistakes and tell me please if download link is broken.

YuriJurek
23rd April 2017, 15:13
Love this idea, will have to check it out later, but it's a great asset for people that are just starting with cod2.

IzNoGoD
23rd April 2017, 17:12
Please add an apt-get update to your list of commands. Most templated vps installs come with such outdated crappy stuff that even the apt list is outdated, which makes the apt-get install git fail.

Lonsofore
23rd April 2017, 17:41
Please add an apt-get update to your list of commands. Most templated vps installs come with such outdated crappy stuff that even the apt list is outdated, which makes the apt-get install git fail.
You're right. Done, thank you :)

And I have a question to Killtube. I need a file hosting with direct download (to place main files there). Any ideas?
Or maybe somebody can place a miror on his server? Already did it on my server, but one link isn't good enough, I think.

kung foo man
23rd April 2017, 23:09
I just wonder if there are legal troubles to distribute the .iwd's

What I would like is a torrent system, that every VPS admin can leech them and - via question - decide to seed it aswell. That would more or less distribute the load evenly

For the end user, that would be an option less to choose from ("Which server you wanna download from?") and faster (multiple downloads same time). And since all package managers got some torrent clients, it wouldn't even be so hard to set up probably via .sh script... just the legal question tho

Ni3ls
23rd April 2017, 23:37
http://sv02.bitlimit.com/cod2/main/

Here are all the iwds located

Lonsofore
24th April 2017, 02:34
I just wonder if there are legal troubles to distribute the .iwd's

What I would like is a torrent system, that every VPS admin can leech them and - via question - decide to seed it aswell. That would more or less distribute the load evenly

For the end user, that would be an option less to choose from ("Which server you wanna download from?") and faster (multiple downloads same time). And since all package managers got some torrent clients, it wouldn't even be so hard to set up probably via .sh script... just the legal question tho
I very like this idea. I'll try to do it soon :)



http://sv02.bitlimit.com/cod2/main/

Here are all the iwds located
There is a problem with iw_15. It's different in 1.2 and 1.3, as I know.

Maybe I should ask about CoD2 versions before install...

IzNoGoD
2nd May 2017, 07:28
Time to pick apart a git repo. Note that I like the idea of this stuff, but there's a lot of stuff that could be done better script-wise:


First off, I wouldn't chmod files to 777 unless they need to be executeable by everyone. Chmod 500 works fine for almost all intents and purposes.

You seem to not apt-get update after adding the i386 architecture. This will (probably) cause subsequent apt-gets to fail.

The gcc-multilib is no longer required by voron's libcod if I recall correctly

What are you using zram-config for?

You're using a hard-coded path for the noip folder. If they update (and increase the version number) your script will no longer work. Try cd noip*

You're not cleaning up the downloaded .tar file for the noip install

Why do you need mysql-server and php5-cgi just for installing a web server, which is most likely going to be used for redirect stuff?

You don't seem to be setting the owner or file permissions on the php.ini file when overwriting the old one

The linking of the phpmyadmin can fail in case such a directory and/or link already exists. Use -f for ln to force the link to be created regardless (might cause dataloss if there's a phpmyadmin folder with files in it already though)

You're completely removing the apache2 program during the installation, without informing the user about it. Worse, you remove it and its config files, which are most likely custom (apt-get purge)

Why is the new cod2 user granted sudo privileges? I'd put my cod2-specific accounts without sudo privileges for obvious reasons

There's probably no need to specify the base dir (-b /home) in your useradd command

If all you want to do is add a user with a password, use adduser instead of useradd. It will prompt the user to input a password as well, so you don't have to manually call passwd afterwards

You're assuming that the user has the cod2install folder in his home dir (like /root/cod2install). This will not always be the case. Better to just copy all contents of current dir to the new folder

No need to chmod those files to 777 again. 500 would suffice for read+execute privileges. (when cloning git repos the correct chmod settings are already applied. These are determined at git-commit time, so whatever permissions you upload get downloaded anyway)

You're trying to execute the cod2_servers.sh from the original location. This might fail if this original user is root, and the user has no read-rights on the root dir (default situation). Better to use the /home/$user/ stuff for that. (I am not 100% sure this will happen, but better safe than sorry)

Your description for last localized file only seems off for 1.2. I recall 1.2 missing the last localized file, causing the server to message PC_PATCH_CLIENTDOWNLOADDISCONNECTED on a few occasions. 1.2 should only differ in iw_15.iwd compared to 1.0

The link included in the git project seems already dead. Reporting it per comments.

For linking all contents of a directory, you can more easily just do ln -s /source/*.iwd /dest/ No need to use a for loop there.

Please keep in mind that copying the pb folder will automatically enable your punkbuster. The sv_pb cvar does not influence this for some strange reason. You might want to add a separate question for it.

You're limiting users to one server per fs_game. Users cannot run multiple servers from the same (named) fs_game folder due to the .sh file being named after the fs_game.

There's no input checking on port or cracked cvars

There's no need to set sv_version afaik

You might want to add a wait/sleep in the while loop that's restarting the server. Otherwise, a bug in the mod might completely trash all server resources

You probably want to chmod the resulting fs_game.sh files to 500 so they can actually be executed.

IzNoGoD
2nd May 2017, 07:32
Thread sticky-d.

Lonsofore
3rd May 2017, 06:05
Thank you, IzNoGoD :)
I'm a bit confused now, so much bugs here. But I expected it.
I'll try to fix the most of them soon in few next commits.
In next update I wanna add a menu, where you can check, what do you want to install.



What are you using zram-config for?
So, I'll make a question about it there.



Why do you need mysql-server and php5-cgi just for installing a web server, which is most likely going to be used for redirect stuff?
Already made a question about mysql and phpmyadmin (what required php5-cgi)



You don't seem to be setting the owner or file permissions on the php.ini file when overwriting the old one
Well... it's root's file, so do we need to change it? Or do you mean, that after sed file permissions can change?



The linking of the phpmyadmin can fail in case such a directory and/or link already exists. Use -f for ln to force the link to be created regardless (might cause dataloss if there's a phpmyadmin folder with files in it already though)
In this case, I think, better to fail with link then lose data.



You're completely removing the apache2 program during the installation, without informing the user about it. Worse, you remove it and its config files, which are most likely custom (apt-get purge)
Will fix it in update - there are no this shit. And I ask about prefer web server.



You're trying to execute the cod2_servers.sh from the original location. This might fail if this original user is root, and the user has no read-rights on the root dir (default situation). Better to use the /home/$user/ stuff for that. (I am not 100% sure this will happen, but better safe than sorry)
Can you tell more about it, please? I'm not sure that I understood it correct.



Your description for last localized file only seems off for 1.2. I recall 1.2 missing the last localized file, causing the server to message PC_PATCH_CLIENTDOWNLOADDISCONNECTED on a few occasions. 1.2 should only differ in iw_15.iwd compared to 1.0
So, iw_15 only for 1.2 and iw_15 and localized files for 1.3, right?



The link included in the git project seems already dead. Reporting it per comments.
That's why I wanna add torrent there (already did, in fact, but didn't upload it yet).



Please keep in mind that copying the pb folder will automatically enable your punkbuster. The sv_pb cvar does not influence this for some strange reason. You might want to add a separate question for it.
Didn't know about that...



You're limiting users to one server per fs_game. Users cannot run multiple servers from the same (named) fs_game folder due to the .sh file being named after the fs_game.
Didn't think about that, you're right.



There's no input checking on port or cracked cvars
Will ask :)



There's no need to set sv_version afaik
Well, can we identify server version somehow?
found getCvarFloat("shortversion")


P.S. I missed some remarks, where I can answer only "You're right, IzNoGoD"

Ni3ls
3rd May 2017, 09:21
Well, can we identify server version somehow? (yea, 1.3 we can identify by gamestate, but what about 1.2?)


The server version depends on the iwd's you upload + binary

Lonsofore
3rd May 2017, 09:31
The server version depends on the iwd's you upload + binary
I use my fs_game for 1.0 and 1.3. If I will use it for 1.2 too - how can I detect current game version?

Ni3ls
3rd May 2017, 09:51
I don't get you.
1.0 is the basic version
1.2 adds iw_15
1.3 adds a different iw_15 + localized file

So you can't use the same dir for 1.2 and 1.3

Lonsofore
3rd May 2017, 10:13
That's what I actually do. One directory - 2 (or more) servers.
You can read more here: https://en.wikipedia.org/wiki/Ln_(Unix)

Ni3ls
3rd May 2017, 11:49
So you are saying that in the folder "main" you have all iwd's + all localized files from 1.3?
And then in the fs_game you have the same mod for all 3 versions?

If you also use that "main" both for 1.2 and 1.3 servers, the players from 1.2 have to download a big-ass iw_15.iwd because it's not the same on the client

Lonsofore
3rd May 2017, 13:40
So you are saying that in the folder "main" you have all iwd's + all localized files from 1.3?
And then in the fs_game you have the same mod for all 3 versions?

If you also use that "main" both for 1.2 and 1.3 servers, the players from 1.2 have to download a big-ass iw_15.iwd because it's not the same on the client

Let me show you my directories:
cod2/main/1.0/ - all files from 1.0
cod2/main/1.2/ - iw_15 from 1.2 and localized (I'm not sure about localized - IzNoGoD said something about it here)
cod2/main/1.3/ - iw_15 from 1.3 (yea, it's different with 1.2) and localized
cod2_1_0/main/ - here I linked cod2/main/1.0/
cod2_1_2/main/ - here I linked cod2/main/1.0/ and cod2/main/1.2/
cod2_1_3/main/ - here I linked cod2/main/1.0/ and cod2/main/1.3/

So, now about fs_game. Let's imagine, that I have a server with fs_game = "killtube". So, what I have here:
cod2/killtube/ - original fs_game with all files
cod2_1_0/killtube - link to the first one
cod2_1_2/killtube - link to the first one
cod2_1_3/killtube - link to the first one
So, if I wanna change all my servers, I just replace files once.

And here I found getCvarFloat("shortversion"). Just forgot about it. So, IzNoGoD is right again and I'll delete my own cvar in next commit.


And question to Killtube now: as I know, we use this (https://killtube.org/showthread.php?1719-CoD2-Latest-cod2-linux-binaries-(1-0-1-2-1-3)) to make our servers cracked. So, the question is: can we just turn it off with sv_cracked=0?

Ni3ls
3rd May 2017, 14:53
Let me show you my directories:
cod2/main/1.0/ - all files from 1.0
cod2/main/1.2/ - iw_15 from 1.2 and localized (I'm not sure about localized - IzNoGoD said something about it here)
cod2/main/1.3/ - iw_15 from 1.3 (yea, it's different with 1.2) and localized
cod2_1_0/main/ - here I linked cod2/main/1.0/
cod2_1_2/main/ - here I linked cod2/main/1.0/ and cod2/main/1.2/
cod2_1_3/main/ - here I linked cod2/main/1.0/ and cod2/main/1.3/

So, now about fs_game. Let's imagine, that I have a server with fs_game = "killtube". So, what I have here:
cod2/killtube/ - original fs_game with all files
cod2_1_0/killtube - link to the first one
cod2_1_2/killtube - link to the first one
cod2_1_3/killtube - link to the first one
So, if I wanna change all my servers, I just replace files once.

And here I found getCvarFloat("shortversion"). Just forgot about it. So, IzNoGoD is right again and I'll delete my own cvar in next commit.


And question to Killtube now: as I know, we use this (https://killtube.org/showthread.php?1719-CoD2-Latest-cod2-linux-binaries-(1-0-1-2-1-3)) to make our servers cracked. So, the question is: can we just turn it off with sv_cracked=0?

Ah see I knew it wasn't just 1 folder. But as Izno said, no need for version checker. The binary will decide since it loads specific files.

sv_cracked = 0 will turn it into a normal cracked server

Lonsofore
6th May 2017, 21:15
Update! :)

Fixed almost all from this message (https://killtube.org/showthread.php?2873-CoD2-Install-CoD2-on-your-VDS-much-faster!&p=16240&viewfull=1#post16240).
And also:
+ added dialog boxes
+ setup menu
+ now you can choose between lighttpd and apache2, when installing web server
+ torrent (now we can share main files each other! support it, please)
+ updated cod2_lnxded (https://killtube.org/showthread.php?1719-CoD2-Latest-cod2-linux-binaries-(1-0-1-2-1-3)) (thank you, Mitch)

cod2_lnxded now:
1.0: cod2_lnxded_1_0a
1.2: cod2_lnxded_1_2c_patch_va_loc
1.3: cod2_lnxded_1_3_patch_va_loc

And some screenshots:
1341
1340

IzNoGoD
6th May 2017, 22:33
Save over 1.5gig of disk space by replacing the localized_english 0-10 with this one file:1344

You still gotto keep localized 11 though, but that's originally not part of 1.2 afaik. Doesn't hurt to include it though, fixes a tiny issue with the downloading message.

Lonsofore
7th May 2017, 00:43
Save over 1.5gig of disk space by replacing the localized_english 0-10 with this one file:1344

You still gotto keep localized 11 though, but that's originally not part of 1.2 afaik. Doesn't hurt to include it though, fixes a tiny issue with the downloading message.

Wow, that's cool! Updated torrent and link with this file, thank you :)

IzNoGoD
7th May 2017, 14:50
Wow, that's cool! Updated torrent and link with this file, thank you :)


Due to legal issues I will tell you that I might "know a guy" who "might" be seeding that torrent from 4 seedboxes.

Lonsofore
7th May 2017, 22:27
Hmm... I just thought about file structure. If you want to start 2 identical servers on the same versions, with custom maps, you will have a problem - fs_homepath (.callofduty2 folder). With the same fs_game and the same fs_homepath you will have problems with Library (2 maps in server folder - users will download both, even they don't need one of them).

So, let's think about it - how to avoid it, any opinions?

Yes, we can create new fs_homepath for each server, but it isn't correct, I think... We can also ask about count of servers with the same fs_game... yeah, maybe it's the best way here, but I also want to hear some killtube opinions.

IzNoGoD
7th May 2017, 22:39
Create homepath with net_port in it, will avoid any collision ever.

Just soft-link it, doesn't take up more space.

Lonsofore
19th May 2017, 19:40
Update! What's new:
- Updated paths for fs_homepath - now each server has it's own
- Added startup.sh file, where you can add something, what you wanna start with the system (using cron). And there you can automatically add torrent seeding and cod2 servers (after question, of course).

Lonsofore
30th June 2017, 17:04
Little fix. Change your sh servers files in cod2_1_0, cod2_1_2, cod2_1_3. Replace there this line:

"./cod2_lnxded" "$PARAMS"
to this (use your version here instead cod2_1_0):

"$HOME/cod2_1_0/cod2_lnxded" "$PARAMS"

You have to change it if you want to start this sh from another folder (not from cod2_1_0 or your version) or if you use autostart script.

Added few tips to the head message also.

sezing
16th October 2017, 21:47
PARAMS="+set fs_homepath $HOME/.callofduty2_$ver Created but -bash: cd: /home/userme/.callofduty2_1_2: No such file or directory

+set fs_game $srv_fs

my $srv_fs : fs_game_dosya2 -> /home/userme/cod2/servers/fs_game_dosya2

-bash: cd: /home/userme/cod2/servers/fs_game_dosya2: No such file or directory


what is for fs_homepath and +set fs_game ?

Lonsofore
17th October 2017, 18:09
PARAMS="+set fs_homepath $HOME/.callofduty2_$ver Created but -bash: cd: /home/userme/.callofduty2_1_2: No such file or directory

+set fs_game $srv_fs

my $srv_fs : fs_game_dosya2 -> /home/userme/cod2/servers/fs_game_dosya2

-bash: cd: /home/userme/cod2/servers/fs_game_dosya2: No such file or directory


what is for fs_homepath and +set fs_game ?

Well... fs_homepath is a home path of your server. You can find there console log and you can create there some files. Useless place, if you're beginner (or just don't use files lol).
fs_game is a path of your mod, where you should have your server cfg and your mod folders (like maps/mp/gametypes).

In this case you had to upload your mod to the server, and as I see, you did it. So, this path (/home/userme/cod2/servers/fs_game_dosya2) should be in your .sh file (instead $srv_fs).

sezing
19th October 2017, 14:19
Well... fs_homepath is a home path of your server. You can find there console log and you can create there some files. Useless place, if you're beginner (or just don't use files lol).
fs_game is a path of your mod, where you should have your server cfg and your mod folders (like maps/mp/gametypes).

In this case you had to upload your mod to the server, and as I see, you did it. So, this path (/home/userme/cod2/servers/fs_game_dosya2) should be in your .sh file (instead $srv_fs).

is this script for only ubuntu 14.04 ?

i tried on 14.04 everything is working. However on my 16.06 server is not working. i had to download Latest cod2 linux binaries from Mitch then it worked.

i liked the idea enable cracked 1-0.

can original user join my server if i use Mitch cod2 linux binaries?

voron00
19th October 2017, 14:25
You don't need to use any custom binaries, just use libcod +sv_cracked 1 or sv_noauthorize 1.

sezing
19th October 2017, 19:17
You don't need to use any custom binaries, just use libcod +sv_cracked 1 or sv_noauthorize 1.

i was using libcod +sv_cracked 1 but couldnt join the server.

voron00
20th October 2017, 08:14
Old versions of libocd does not registering custom cvars, use my version or use +set sv_cracked 1.

Lonsofore
20th October 2017, 09:42
is this script for only ubuntu 14.04 ?

i tried on 14.04 everything is working. However on my 16.06 server is not working. i had to download Latest cod2 linux binaries from Mitch then it worked.


I haven't tried it with other versions, so I wrote 14.04 only. I wanna try it on 16.04 soon, so I'll write about it after.

Lonsofore
26th February 2018, 04:09
A big update.

- Now you can use Ubuntu 16.04 aswell
- Edited .torrent file - removed iw_01, iw_02 (it's just for SP). Now it's just 1.8G for all versions.
- Now you can migrate from your old host (you can move your all fs_game, maps from Library, mysql, libcod files). Only if your last server was also installed with this cod2install!
- chmod +x is now default for start.sh, so you don't have to write it after clone
- A lot of small fixes

One time I should make a tutorial - how to use it. Because as I think, a lot of users don't even know, what is fs_game, Libruary, etc.

CaptainSlow
21st April 2018, 20:01
Great stuff! Keep up the good work

teufel
17th March 2019, 17:20
Lonsofore*

You removed iw_01.iwd & iw_02.iwd.

Remove localized files too and the servers will still start. :cool:

Lonsofore
17th March 2019, 18:25
Lonsofore*

You removed iw_01.iwd & iw_02.iwd.

Remove localized files too and the servers will still start. :cool:

Too late answer. I don't support this torrent and repo anymore because of my Docker version (https://killtube.org/showthread.php?3167-CoD2-Setup-CoD2-with-Docker), so I highly recommend to use it instead.

P.S. And we talked about localized two years ago here (https://killtube.org/showthread.php?2873-CoD2-Install-CoD2-on-your-VDS-much-faster!&p=16261&viewfull=1#post16261).

vesicant
11th April 2022, 03:45
Got some follow-up questions about localized strings. Sorry for the necrobump.


Save over 1.5gig of disk space by replacing the localized_english 0-10 with this one file:1344

Thanks for sharing this. I have a few questions:


Is it safe to rename this IWD? (Looking to shorten it.)
If it is safe to rename, does it matter where it goes in the load order?
Is it safe to make this IWD be server-side only?


I think the answers are "yes", "not really", "yes", but I just want to check with someone who'd know better than me.

If anyone stumbles on this thread while searching for info, for my server, I did the following:


Removed localized_english 0-10 from `main`
Kept `localized_english_iw11.iwd` in `main`
Put this file into a directory sibling to `main` that corresponds to my server's `fs_game`
Renamed this file to `zzz_svr_str.iwd` (`_svr_` keeps this file from being downloaded to the client)


...and everything seems to be working fine.


Remove localized files too and the servers will still start. :cool:

I tried this, too. Can confirm that the server starts. I saw the following error in the console:


ERROR: No languages available because no localized assets were found

From a previous thread (https://killtube.org/showthread.php?2163-CoD2-quot-No-languages-available-quot-Error), it seems that I should also be seeing this error:


Couldn't load default_localize_mp.cfg

However, I'm not seeing that error, and everything seems to run just fine. I'm running COD2 1.3; confirmed working without libcod.

Does anyone know definitively if we need the localized IWDs on the server at all?

Paho
12th April 2022, 11:35
Will result in an error: Unauthenticated client detected - invalid IWD files! path - All files on the server and on the client are compared. If some file is not in the mods or maps on the server to which you are connected, and which are cached somewhere (from somewhere a non-existent file is accessed), then the presence of it in the client in any other downloaded file from other servers will lead to conflict.

vesicant
15th April 2022, 08:02
Thanks for the response. I was expecting that error too! But I think that the localization files might be treated differently clientside.

Intuitively, this makes sense. If the game didn't have special handling in place for localization files, then players with e.g. `localized_german` IWDs wouldn't be able to connect to servers running with `localized_english`.

Try it. Host a remote server with the `localized_english` IWDs removed and try to connect to it. In my experience, everything works just fine.

On the client, your console will show something like this:


Current language: english
Current search path:
E:\COD2\main\iw_15.iwd (85 files)
on the pure list
E:\COD2\main\iw_14.iwd (4038 files)
on the pure list
E:\COD2\main\iw_13.iwd (22624 files)
on the pure list
E:\COD2\main\iw_12.iwd (1016 files)
on the pure list
E:\COD2\main\iw_11.iwd (1462 files)
on the pure list
E:\COD2\main\iw_10.iwd (1936 files)
on the pure list
E:\COD2\main\iw_09.iwd (2142 files)
on the pure list
E:\COD2\main\iw_08.iwd (2723 files)
on the pure list
E:\COD2\main\iw_07.iwd (3384 files)
on the pure list
E:\COD2\main\iw_06.iwd (990 files)
on the pure list
E:\COD2\main\iw_05.iwd (928 files)
on the pure list
E:\COD2\main\iw_04.iwd (698 files)
on the pure list
E:\COD2\main\iw_03.iwd (26 files)
on the pure list
E:\COD2\main\iw_02.iwd (40 files)
not on the pure list
E:\COD2\main\iw_01.iwd (16 files)
not on the pure list
E:\COD2\main\iw_00.iwd (102 files)
on the pure list
E:\COD2/main
E:\COD2/raw
E:\COD2/raw_shared
E:\COD2/devraw
E:\COD2/devraw_shared
E:\COD2\main\localized_english_iw11.iwd (1 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw10.iwd (414 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw09.iwd (98 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw08.iwd (8 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw07.iwd (1014 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw06.iwd (3110 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw05.iwd (5310 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw04.iwd (6240 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw03.iwd (6580 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw02.iwd (6404 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw01.iwd (5510 files)
localized assets iwd file for english
not on the pure list
E:\COD2\main\localized_english_iw00.iwd (4764 files)
localized assets iwd file for english
not on the pure list

Note how the `localized_english` files are recognized as "localized assets iwd files" even though they are marked as impure.

Let's do a few experiments to better understand this behavior.

First, let's try renaming `localized_english_iw09.iwd` to something else. This is a good file to experiment with because it contains localized strings for multiplayer.

If you rename that file to `localized_blah_iw09.iwd`, you'll still be able to connect to your server (which is missing `localized_english` files), but you'll see the following error in the console:


WARNING: Localized assets iwd file E:\COD2/main/localized_blah_iw09.iwd has invalid name (bad language name specified). Proper naming convention is: localized_[language]_iwd#.iwd
Current language: english

Additionally, when you connect, most of the strings you see in the UI won't be localized:

1689

Now, let's try renaming `localized_english_iw09.iwd` to `zzz_foo.iwd`.

Interestingly, you'll still be able to connect! Your UI text will still be broken. You'll see this error in the console:


E:\COD2\main\zzz_foo.iwd (98 files)
not on the pure list

It looks like the game only loads `localizedstrings` files from IWD archives named after the current language.

Next, let's rename `localized_english_iw10.iwd` to `zzz_bar.iwd`. I want to test this because this IWD contains `images` and `materials`, including `loadscreen_toujane.iwi`, so it should be loaded when we connect to the server.

Now, we get the error you mentioned:


ERROR: Impure client detected. Invalid .IWD files referenced!
E:\COD2\main\zzz_bar.iwd

To me, this suggests that the game does not do pure checks for files that follow the `localized_[language]_iwd#.iwd` naming convention.

I'm guessing that it will only read specific types of files from localized asset IWDs, and ignore any other files in there. I'd have to do more testing to be sure.

Regardless, it seems like leaving out `localized_[language]` IWDs from your server should have no impact on your players. The COD2 client seems to treat these localized IWDs differently.