Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

Thread: Libcod for windows

  1. #11
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Question from a PM
    Quote Originally Posted by guiismiti
    So, I'm very interested on using libcod.

    My doubts are:
    Where should I run the InjectDLL.exe? And does it work on windows 7?
    Does it have MySql functions that will allow me to save player data (ranks)?
    If it does have MySql functions, how can I login to the database (I use xampp)?
    Do you have a list of functions?


    Thanks in advance
    InjectDLL.exe works on Windows 8. (place it in the same directory as your cod2 install) + libcod.dll
    The windows version of libcod has mysql support.
    You can use xampp for your database.
    Functions list: http://znation.nl/cod4script/ (not all but most, check https://github.com/M-itch/libcod/blo...master/gsc.cpp)

  2. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    guiismiti (11th September 2014),kung foo man (11th September 2014)

  3. #12
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Quote Originally Posted by Mitch View Post
    InjectDLL.exe works on Windows 8.
    So, no windows 7 support right now?

    Thanks for the quick reply

  4. #13
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by guiismiti View Post
    So, no windows 7 support right now?

    Thanks for the quick reply
    No, i meant if it works on Windows 8 then it should also work on Windows 7. (so far i know it hasn't been tested on Windows 7)

  5. #14
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Should the size of the binary have changed? It still has 1928 kb.

  6. #15
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    I mean, this is all I'm getting

    Click image for larger version. 

Name:	libcod.png 
Views:	146 
Size:	71.4 KB 
ID:	759

    My game is properly registered.

  7. #16
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Are you running it as admin? Or uac off? Or win 8.x + uac off + lua mode off?
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  8. #17
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Running as admin, yes.

    Sorry that I'm not giving many details, I just don't have a clue what might be wrong.
    Last edited by guiismiti; 14th September 2014 at 01:32.

  9. #18
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    I couldn't get libcod to run on win7 x64 when building it from Mitch's repo with tdm64, gcc4.9.2 and the included C::B project files.
    I had to set -fpermissive and disable mysql to compile it, the injector works fine (kung's source).
    Using kung's binaries, everything works as it should, however my builds fail with the unknown function script compile error.
    Did I miss something?

  10. #19
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by serthy View Post
    I couldn't get libcod to run on win7 x64 when building it from Mitch's repo with tdm64, gcc4.9.2 and the included C::B project files.
    I had to set -fpermissive and disable mysql to compile it, the injector works fine (kung's source).
    Using kung's binaries, everything works as it should, however my builds fail with the unknown function script compile error.
    Did I miss something?
    No idea. I just build my source with CodeBlocks 13.12 using GCC 4.7.1 (mingw32-g++.exe) on Windows 8.1.
    Attached Files Attached Files

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

    serthy (13th December 2014)

  12. #20
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Thank you!
    Unfortunately this DLL does not work on my machine either
    (when injecting the dll the CoD2 server console throws this unknown function script compile error for not finding a libcod-function)
    Maybe its something with the binaries file size (kung: 200kb, yours and my builds: < 50kb)?
    Is there something i can do? It rather seems to be beyond my coding-capabilities atm

Posting Permissions

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