Mitch
29th July 2014, 17:31
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:
$command = ". preload.sh ; ./$server_exe $startup_cmd";
(line 758) change to:
$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:
#!/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"
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:
$command = ". preload.sh ; ./$server_exe $startup_cmd";
(line 758) change to:
$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:
#!/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"