Results 1 to 3 of 3

Thread: How to use libcod with Open Game Panel (OGP)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by kung foo man View Post
    Another way might be to replace the original lnxded-binary with a shell script and name the cod2lnxded-bin (just like in CoD4). Then forwarding the arguments to the script to the real lnxded.

    http://stackoverflow.com/questions/4...h-shell-script
    Thanks, this works even better. But you have to make sure that the line endings are unix. Otherwise you will get the 'bad interpreter' error:
    http://stackoverflow.com/questions/2...ad-interpreter

    cod2_lnxded (without extension)
    PHP Code:
    #!/bin/bash
    export LD_LIBRARY_PATH="/path/to/cod2/libs/:/path/to/cod2/libs/mysql"
    export LD_PRELOAD="/path/to/cod2/libs/libcod2_1_3.so"
    ./cod2_lnxded_1_3_nodelay_va_loc $@ 

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

    kung foo man (20th March 2016)

Posting Permissions

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