Old versions of libocd does not registering custom cvars, use my version or use +set sv_cracked 1.
Printable View
Old versions of libocd does not registering custom cvars, use my version or use +set sv_cracked 1.
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.
Great stuff! Keep up the good work
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, so I highly recommend to use it instead.
P.S. And we talked about localized two years ago here.
Got some follow-up questions about localized strings. Sorry for the necrobump.
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.
I tried this, too. Can confirm that the server starts. I saw the following error in the console:
From a previous thread, it seems that I should also be seeing this error:Quote:
ERROR: No languages available because no localized assets were found
However, I'm not seeing that error, and everything seems to run just fine. I'm running COD2 1.3; confirmed working without libcod.Quote:
Couldn't load default_localize_mp.cfg
Does anyone know definitively if we need the localized IWDs on the server at all?
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.
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:
Note how the `localized_english` files are recognized as "localized assets iwd files" even though they are marked as impure.Code: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
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:
Additionally, when you connect, most of the strings you see in the UI won't be localized:Code: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
Attachment 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:
It looks like the game only loads `localizedstrings` files from IWD archives named after the current language.Code:E:\COD2\main\zzz_foo.iwd (98 files)
not on the pure list
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:
To me, this suggests that the game does not do pure checks for files that follow the `localized_[language]_iwd#.iwd` naming convention.Code:ERROR: Impure client detected. Invalid .IWD files referenced!
E:\COD2\main\zzz_bar.iwd
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.