#OLD##I#QUERY FIRST SHOULD NOT HAPPEN type=1#I#QUERY FIRST SHOULD NOT HAPPEN type=1#I#QUERY FIRST SHOULD NOT HAPPEN type=1#I#QUERY FIRST SHOULD NOT HAPPEN type=1#I#QUERY FIRST SHOULD NOT HAPPEN type=1#I#QUERY FIRST SHOULD NOT HAPPEN type=1#I##I##I##I#
Hey guys!
I got my cod 2 and cod 4 working :)
But. CoD 2 works only when CoD 4 is off
and CoD4 works only if CoD 2 is off
How can i make two servers working on the same time?
In CoD 4 cfg I've changed the port on 28777 and it did not help :/
any solution?
EDIT:
Ok, +set net_port 28777 did the job :)
10th March 2018, 19:53
Mariusz
I am proud of you. Congratulations! Do you invite us on your servers soon, don't you?
14th March 2018, 12:56
IzNoGoD
Quick update for ubuntu 16.04 and the current libcod version (which doesnt require the gcc-multilib thing anymore):
set sv_pure "1" set net_ip "12.34.56.78" //Replaced with my real IPv4 address set net_port "28960" set sv_maxclients "16" set sv_privateClients "" set sv_maxRate "25000" set sv_minPing "0" set sv_maxPing "250" set g_antilag "0" set scr_friendlyfire "0" set scr_killcam "1" set scr_spectatefree "1" set scr_spectateenemy "1" set logfile "1" set g_logsync "1" set g_log "games_mp.log" set scr_teambalance "1" set sv_cheats "1" set sv_floodprotect "1" set sv_fps "20" set g_deadChat "1" set sv_disableClientConsole "0" set g_allowvote "0" set sv_voice "0" set sv_voiceQuality "" set scr_drawfriend "1"
set scr_allow_springfield "1" set scr_allow_svt40 "1" set scr_allow_kar98ksniper "1" set scr_allow_nagantsniper "1" set scr_allow_enfieldsniper "1" set scr_allow_enfield "1" set scr_allow_kar98k "1" set scr_allow_m1carbine "1" set scr_allow_m1garand "1" set scr_allow_g43 "1" set scr_allow_nagant "1" set scr_allow_bar "1" set scr_allow_bren "1" set scr_allow_mp44 "1" set scr_allow_ppsh "1" set scr_allow_mp40 "1" set scr_allow_sten "1" set scr_allow_thompson "1" set scr_allow_pps42 "" set scr_allow_greasegun "" set scr_allow_shotgun "1" set scr_allow_smokegrenades "0" set scr_allow_fraggrenades "1"
set scr_allow_drop_weapons "0" set scr_allow_drop_grenades "0"
set scr_dm_scorelimit "50" set scr_dm_timelimit "30" set scr_tdm_scorelimit "300" set scr_tdm_timelimit "30.5" set scr_sd_graceperiod "15" set scr_sd_roundlength "4" set scr_sd_roundlimit "7" set scr_sd_scorelimit "" set scr_sd_timelimit "20" set scr_sd_bombtimer "45" set scr_ctf_scorelimit "7" set scr_ctf_timelimit "20" set scr_hq_scorelimit "50" set scr_hq_timelimit "30"
set scr_map_vote 1 set scr_map_vote_time 15 set scr_map_vote_replay 1
set sv_mapRotation "gametype hq map mp_toujane"
set sv_maprotationcurrent ""
map_rotate
Edit: [SOLVED]
net_ip 0.0.0.0 fixed my problem.
6th December 2020, 00:10
kambocian
Code:
ubuntu@ip-xxx-xx-0-202:~/cod2$ ./cod2_lnxded_1_3_cracked +exec dedicated.cfg
CoD2 MP 1.3 build linux-i386 Jun 23 2006
----- FS_Startup -----
Current language: english
Current search path:
/home/ubuntu/.callofduty2/main
/home/ubuntu/cod2/main/zPAM207.iwd (183 files)
/home/ubuntu/cod2/main/T04.iwd (998 files)
/home/ubuntu/cod2/main/P01.iwd (283 files)
/home/ubuntu/cod2/main/iw_15.iwd (85 files)
/home/ubuntu/cod2/main/iw_14.iwd (4038 files)
/home/ubuntu/cod2/main/iw_13.iwd (22624 files)
/home/ubuntu/cod2/main/iw_12.iwd (1016 files)
/home/ubuntu/cod2/main/iw_11.iwd (1462 files)
/home/ubuntu/cod2/main/iw_10.iwd (1936 files)
/home/ubuntu/cod2/main/iw_09.iwd (2142 files)
/home/ubuntu/cod2/main/iw_08.iwd (2723 files)
/home/ubuntu/cod2/main/iw_07.iwd (3384 files)
/home/ubuntu/cod2/main/iw_06.iwd (990 files)
/home/ubuntu/cod2/main/iw_05.iwd (928 files)
/home/ubuntu/cod2/main/iw_04.iwd (698 files)
/home/ubuntu/cod2/main/iw_03.iwd (26 files)
/home/ubuntu/cod2/main/iw_02.iwd (40 files)
/home/ubuntu/cod2/main/iw_01.iwd (16 files)
/home/ubuntu/cod2/main/iw_00.iwd (102 files)
/home/ubuntu/cod2/main/91420.iwd (211 files)
/home/ubuntu/cod2/main/91020c.iwd (413 files)
/home/ubuntu/cod2/main/111120.iwd (483 files)
/home/ubuntu/cod2/main/102520b.iwd (158 files)
/home/ubuntu/cod2/main
/home/ubuntu/.callofduty2/raw
/home/ubuntu/.callofduty2/raw_shared
/home/ubuntu/.callofduty2/devraw
/home/ubuntu/.callofduty2/devraw_shared
/home/ubuntu/cod2/raw
/home/ubuntu/cod2/raw_shared
/home/ubuntu/cod2/devraw
/home/ubuntu/cod2/devraw_shared
/home/ubuntu/cod2/main/localized_english_iw11.iwd (1 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw10.iwd (414 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw09.iwd (98 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw08.iwd (8 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw07.iwd (1014 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw06.iwd (xx10 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw05.iwd (5xx0 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw04.iwd (6240 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw03.iwd (6580 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw02.iwd (6404 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw01.iwd (5510 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw00.iwd (4764 files)
localized assets iwd file for english
File Handles:
----------------------
84392 files in iwd files
execing default_mp.cfg
couldn't exec language.cfg
execing config_mp_server.cfg
Opening IP socket: localhost:28960
Hostname: ip-xxx-xx-0-202.us-east-2.compute.internal
IP: xxx.xx.0.202
--- Common Initialization Complete ---
execing dedicated.cfg
net_ip is write protected.
net_port is write protected.
dedicated is read only.
map_rotate...
"sv_mapRotation" is:"map mp_carentan"
"sv_mapRotationCurrent" is:""
Setting map: mp_carentan.
g_gametype random is not a valid gametype, defaulting to dm
------ Server Initialization ------
Server: mp_carentan
----- FS_Startup -----
Current language: english
Current search path:
/home/ubuntu/.callofduty2/main
/home/ubuntu/cod2/main/zPAM207.iwd (183 files)
/home/ubuntu/cod2/main/T04.iwd (998 files)
/home/ubuntu/cod2/main/P01.iwd (283 files)
/home/ubuntu/cod2/main/iw_15.iwd (85 files)
/home/ubuntu/cod2/main/iw_14.iwd (4038 files)
/home/ubuntu/cod2/main/iw_13.iwd (22624 files)
/home/ubuntu/cod2/main/iw_12.iwd (1016 files)
/home/ubuntu/cod2/main/iw_11.iwd (1462 files)
/home/ubuntu/cod2/main/iw_10.iwd (1936 files)
/home/ubuntu/cod2/main/iw_09.iwd (2142 files)
/home/ubuntu/cod2/main/iw_08.iwd (2723 files)
/home/ubuntu/cod2/main/iw_07.iwd (3384 files)
/home/ubuntu/cod2/main/iw_06.iwd (990 files)
/home/ubuntu/cod2/main/iw_05.iwd (928 files)
/home/ubuntu/cod2/main/iw_04.iwd (698 files)
/home/ubuntu/cod2/main/iw_03.iwd (26 files)
/home/ubuntu/cod2/main/iw_02.iwd (40 files)
/home/ubuntu/cod2/main/iw_01.iwd (16 files)
/home/ubuntu/cod2/main/iw_00.iwd (102 files)
/home/ubuntu/cod2/main/91420.iwd (211 files)
/home/ubuntu/cod2/main/91020c.iwd (413 files)
/home/ubuntu/cod2/main/111120.iwd (483 files)
/home/ubuntu/cod2/main/102520b.iwd (158 files)
/home/ubuntu/cod2/main
/home/ubuntu/.callofduty2/raw
/home/ubuntu/.callofduty2/raw_shared
/home/ubuntu/.callofduty2/devraw
/home/ubuntu/.callofduty2/devraw_shared
/home/ubuntu/cod2/raw
/home/ubuntu/cod2/raw_shared
/home/ubuntu/cod2/devraw
/home/ubuntu/cod2/devraw_shared
/home/ubuntu/cod2/main/localized_english_iw11.iwd (1 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw10.iwd (414 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw09.iwd (98 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw08.iwd (8 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw07.iwd (1014 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw06.iwd (xx10 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw05.iwd (5xx0 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw04.iwd (6240 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw03.iwd (6580 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw02.iwd (6404 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw01.iwd (5510 files)
localized assets iwd file for english
/home/ubuntu/cod2/main/localized_english_iw00.iwd (4764 files)
localized assets iwd file for english
File Handles:
----------------------
84392 files in iwd files
ERROR: Sound alias file mp_commando_sound.csv: Unknown sound channel 'streamed'; should be auto, auto2d, menu, weapon, voice, item, body, local, music, announcer or shellshock
WARNING: sound file 'doors/door_bunker_close.wav' used as streamed in alias 'mp_v2_bunkerdoorclose' and loaded in alias 'fermportebomb'
WARNING: sound file 'fire/Fire_med_loop02.wav' used as streamed in alias 'fire1' and loaded in alias 'medfire'
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: Jun 23 2006
-----------------------------------
logfile opened on Sun Dec 6 01:03:22 2020
I'm trying to make it work for hours. I have no idea and i can't see any error message :/ I can't connect to server with ip and address like : /connect xxx.xx.0.202:28960;password xxxxxx It's keep trying forever.
Edit : I solved it. IP was wrong omg sorry for bother :(
27th January 2021, 14:03
IzNoGoD
Thread editted to reflect that this method works on basically any ubuntu version
- 12.04 untested
- 14.04 thoroughly tested (10+ servers running for multiple years)
- 16.04 tested
- 18.04 thoroughly tested (10+ servers running for multiple years)
- 20.04 tested
Barring any major changes in the architecture (dropping 32 bit support for example), this tutorial should work on future versions as well.
3rd December 2021, 15:27
Rohambili
Hello!
Ill have a problem with dependencies:
apt-get -y install libmysqlclient-dev:i386Package libmysqlclient-dev:i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libmariadb-dev-compat:ppc64el libmariadb-dev:ppc64el libmariadb-dev-compat
libmariadb-dev libmariadb-dev-compat:arm64 libmariadb-dev:arm64
libmariadb-dev:i386 libmariadb-dev-compat:i386
apt install libmariadb-dev-compat:i386
gives this:
The following packages have unmet dependencies:
libmariadb-dev:i386 : Depends: libmariadb3:i386 (= 1:10.5.12-0+deb11u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages. Im on Debian 11 (amd64)
Whatever. I compiled anyway, The real problem is with running the script.