PDA

View Full Version : cod2_lnxded on Windows 10



kung foo man
22nd December 2018, 14:27
Ok guys, its 2018, anybody figured out yet how to run linux cod2 server on Windows for local development? There are all of these projects like Wine, WSL, flinux[1], something HAS to work

[1] https://github.com/wishstudio/flinux

Ninja from CoD4x took the hard way and even patched the complete lnxded_cod4 binary, I tried that myself once but it's an incredible amount of work and I gave up on that

Anybody figured out a stable and easy solution yet?

voron00
22nd December 2018, 14:33
WSL doesnt work for sure, as 32-bit ELF support isnt provided by WSL (yet).

kung foo man
22nd December 2018, 14:40
Yea, I spend some hours once trying to get that to work, I even had a bit success, because 32bit does work with a trick, but it crashed on loading the .iwd's iirc

filthy_freak_
23rd December 2018, 06:02
Tried to get it working on WSL with Ubuntu 16.04 using these instructions;
https://github.com/Microsoft/WSL/issues/2468#issuecomment-374904520

It seems to work but it won't load the .iwds


mark@BLACKBOX:~/CoD2$ /home/mark/CoD2/cod2_lnxded +set fs_basepath /home/mark/CoD2 +set fs_homepath /home/mark/CoD2 +set
dedicated 1 +exec serv1.cfg
CoD2 MP 1.0 build linux-i386 Oct 24 2005
----- FS_Startup -----
Current search path:
/home/mark/CoD2/main
/home/mark/CoD2/raw
/home/mark/CoD2/raw_shared
/home/mark/CoD2/devraw
/home/mark/CoD2/devraw_shared

File Handles:
----------------------
0 files in iwd files
execing default_mp.cfg
couldn't exec language.cfg
couldn't exec config_mp_server.cfg
fs_basepath is write protected.
fs_homepath is write protected.
dedicated is read only.
Opening IP socket: localhost:28960
Hostname: BLACKBOX.localdomain
Alias: BLACKBOX
IP: 127.0.1.1
--- Common Initialization Complete ---
fs_basepath is write protected.
fs_homepath is write protected.
dedicated is read only.
couldn't exec serv1.cfg
Hitch warning: 3622 msec frame time
map_rotate
map_rotate...

"sv_mapRotation" is:""

"sv_mapRotationCurrent" is:""

No map specified in sv_mapRotation - forcing map_restart.
Server is not running.
map mp_toujane
Can't find map maps/mp/mp_toujane.d3dbsp

IzNoGoD
23rd December 2018, 08:47
It also failed to execute the .cfg file. Does it even have filesystem access?

filthy_freak_
23rd December 2018, 09:48
It also failed to execute the .cfg file. Does it even have filesystem access?

Nah serv1.cfg doesn't exist just a placeholder.

It is executing the default_mp.cfg file i put in the main folder so it has access.

kung foo man
23rd December 2018, 11:31
Yea, thats the same problem I had too, I developed a simple "spydir.c" for that: https://killtube.org/downloads/cod2/wsl/

Output:



// ...
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.callofduty2/pb/pbsvnew.so", "rb")> ret=0
fopen("/root/.cal



This might be a clue, trying to fopen pbsvnew.so all the time

filthy_freak_
24th December 2018, 03:05
Maybe try 1.0 and compare the results against a server that works.

kung foo man
24th December 2018, 15:18
Nah, I don't have WSL installed anymore. WSL itself sucked too, e.g. you can't even use Explorer to move files to WSL.

The perfect solution would be something like CoD4x, integrating the Linux executable into the Windows executable... or make the Linux executable run natively on Windows.