Results 1 to 3 of 3

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

Threaded 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

    How to use libcod with Open Game Panel (OGP)

    Edit: see post#3

    The easiest way to use libcod with OGP is to edit the service agent to set the required exports.

    First we need to disable the auto updater in ogp_agent_run:
    (line 186) 'after run() {' change 'update' to '#update'.

    ogp_agent.pl:
    (line 754) change to:
    PHP Code:
    $command ". preload.sh ; ./$server_exe $startup_cmd"
    (line 758) change to:
    PHP Code:
    $command ". preload.sh ; taskset -c $cpu ./$server_exe $startup_cmd"
    Now create your preload.sh in the game directory with your own libcod export settings:
    PHP Code:
    #!/bin/sh
    export LD_LIBRARY_PATH="/path/to/cod2/libs/:/path/to/cod2/libs/mysql"
    export LD_PRELOAD="/path/to/cod2/libs/libcod2_1_3.so" 
    Last edited by Mitch; 30th January 2015 at 11:57.

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

    kung foo man (30th July 2014)

Posting Permissions

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