Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: cod2 libcod problems

  1. #1
    ... connecting
    Join Date
    May 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    cod2 libcod problems

    Hi im totally new to linux but got a cod2 server up and running just wondering how i get libcod going? ive tried placing all libcod files into my server directory and running the commands but receiving no such file or directory error.

    Any help would be great

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    You have tried what the readme file says?

    https://github.com/kungfooman/libcod...ster/README.md

    Also the newest libcod version doesn't require any std GSC files. The function that libcod provided are now real function.
    You can find these functions with documentation at: http://znation.nl/cod4script/

    Edit: you can post the little that your log says and your startup line?
    Last edited by Mitch; 16th May 2014 at 13:58.

  3. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (17th May 2014)

  4. #3
    ... connecting
    Join Date
    May 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for getting back, My startup line is

    Code:
    LD_PRELOAD=libcod2_1_3_nomysql.so ./cod2_lnxded +set dedicated 2 +set g_gametype tdm + exec server.cfg
    Click image for larger version. 

Name:	Screenshot from 2014-05-16 15^%50^%29.png 
Views:	104 
Size:	329.8 KB 
ID:	703Click image for larger version. 

Name:	Screenshot from 2014-05-16 15^%51^%07.png 
Views:	101 
Size:	124.0 KB 
ID:	704
    These 2 images showing what im getting and also what is in my main server folder.

    Code:
    File Handles:
    ----------------------
    81662 files in iwd files
    execing default_mp.cfg
    couldn't exec language.cfg
    couldn't exec config_mp_server.cfg
    dedicated is read only.
    Opening IP socket: localhost:28960
    ERROR: UDP_OpenSocket: bind: Address already in use
    Opening IP socket: localhost:28961
    Hostname: cod2-virtual-machine
    IP: 127.0.1.1
    --- Common Initialization Complete ---
    dedicated is read only.
    couldn't exec server.cfg
    Hitch warning: 2096 msec frame time
    This is at the bottom of that picture sorry it was cut off.
    Last edited by Mitch; 16th May 2014 at 15:17. Reason: code tags

  5. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    For some reason it can't preload the .so.

    Are you using this one?
    http://killtube.org/downloads/libcod...1_3_nomysql.so

    If you are using that version or it also didn't work then you might need to recompile the .so for Linux Mint.
    (edit confg.hpp to disable mysql)

    Edit: to run libcod you don't need the source files (.hpp, .cpp). You only need the .so. Your current startup line requires the .so to be in the same directory as your linux binary.
    Also linux cod2 doesn't need the cod.bmp or any dll.
    Last edited by Mitch; 16th May 2014 at 15:17.

  6. #5
    ... connecting
    Join Date
    May 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have just tried with that .so and no source files in my main with the same error. Sorry to sound stupid but where is the binary located for me to put the .so into?

  7. #6
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    I just recompiled libcod. Try these one:
    http://znation.nl/libcod/libcod2_1_3_nomysql.so

    And if that doesn't work try this as start up line:
    Code:
    LD_LIBRARY_PATH=. LD_PRELOAD=libcod2_1_3_nomysql.so ./cod2_lnxded +set fs_game ...

  8. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (17th May 2014)

  9. #7
    ... connecting
    Join Date
    May 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you so much libcod is now loading great but theres one issue no one can seem to connect to my server just sitting on connection 1,2,3 etc. If i use localhost i can connect but my external ip doesnt allow connections, i have port forward all the ports requires so not sure what is going on. Again thank you so much for getting libcod sorted , Hopefully we can get the server fully online

  10. #8
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Nobody can connect because you are running libcod now or is it an independent problem? You might just need to configure UDP-Port-Forwarding in your router, e.g. at http://192.168.0.1
    timescale 0.01

  11. #9
    ... connecting
    Join Date
    May 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you both for the great advice now got a fully working codlib server . Time to mod and have some fun.

    Edit: Sorry to bug you both but how would i go about using the scripts e.g. Disable collision?
    Last edited by Moolster; 17th May 2014 at 20:35.

  12. #10
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by Moolster View Post
    Thank you both for the great advice now got a fully working codlib server . Time to mod and have some fun.

    Edit: Sorry to bug you both but how would i go about using the scripts e.g. Disable collision?
    http://znation.nl/cod4script/

    You can disable global collision by adding

    Code:
    disableGlobalPlayerCollision();
    right after

    Code:
    Callback_StartGameType()
    {
    in your gametype.gsc file.

Posting Permissions

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