Results 1 to 9 of 9

Thread: cod2_lnxded on Windows 10

  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    1,940
    Thanks
    1,826
    Thanked 1,052 Times in 730 Posts

    cod2_lnxded on Windows 10

    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?
    timescale 0.01

  2. #2
    Private First Class voron00's Avatar
    Join Date
    Nov 2014
    Posts
    222
    Thanks
    61
    Thanked 188 Times in 99 Posts
    WSL doesnt work for sure, as 32-bit ELF support isnt provided by WSL (yet).
    sudo apt-get rekt

  3. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    1,940
    Thanks
    1,826
    Thanked 1,052 Times in 730 Posts
    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
    timescale 0.01

  4. #4
    Private First Class
    Join Date
    Oct 2013
    Posts
    214
    Thanks
    56
    Thanked 102 Times in 64 Posts
    Tried to get it working on WSL with Ubuntu 16.04 using these instructions;
    https://github.com/Microsoft/WSL/iss...ment-374904520

    It seems to work but it won't load the .iwds
    Code:
    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

  5. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,557
    Thanks
    17
    Thanked 909 Times in 565 Posts
    It also failed to execute the .cfg file. Does it even have filesystem access?
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

    Sending me a private message makes me want to help you LESS.

  6. #6
    Private First Class
    Join Date
    Oct 2013
    Posts
    214
    Thanks
    56
    Thanked 102 Times in 64 Posts
    Quote Originally Posted by IzNoGoD View Post
    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.
    Last edited by filthy_freak_; 23rd December 2018 at 09:53.

  7. #7
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    1,940
    Thanks
    1,826
    Thanked 1,052 Times in 730 Posts
    Yea, thats the same problem I had too, I developed a simple "spydir.c" for that: https://killtube.org/downloads/cod2/wsl/

    Output:

    Code:
    // ...
    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
    timescale 0.01

  8. #8
    Private First Class
    Join Date
    Oct 2013
    Posts
    214
    Thanks
    56
    Thanked 102 Times in 64 Posts
    Maybe try 1.0 and compare the results against a server that works.

  9. #9
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    1,940
    Thanks
    1,826
    Thanked 1,052 Times in 730 Posts
    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.
    timescale 0.01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •