dfhack/dfhack/shm
Petr Mrázek 51a1ec5c1e Very basic creature reading 2010-04-04 12:29:56 +02:00
..
CMakeLists.txt Move shm 2010-04-02 16:53:09 +02:00
mod-core.cpp Move shm 2010-04-02 16:53:09 +02:00
mod-core.h Move shm 2010-04-02 16:53:09 +02:00
mod-creature40d.cpp Move shm 2010-04-02 16:53:09 +02:00
mod-creature40d.h Move shm 2010-04-02 16:53:09 +02:00
mod-creature2010.h Very basic creature reading 2010-04-04 12:29:56 +02:00
mod-maps.cpp Move shm 2010-04-02 16:53:09 +02:00
mod-maps.h More moving of things 2010-04-02 17:27:35 +02:00
readme.txt Move shm 2010-04-02 16:53:09 +02:00
shms-linux.cpp Move shm 2010-04-02 16:53:09 +02:00
shms-windows.cpp Move shm 2010-04-02 16:53:09 +02:00
shms.h Move shm 2010-04-02 16:53:09 +02:00

readme.txt

Using the shm server:
copy files to DF/libs folder
g++ -fPIC -c dfconnect.c -o dfconnect.o
g++ -shared -o dfconnect.so dfconnect.o -ldl

edit DF/df script and add this line just before DF is called:
export LD_PRELOAD="./libs/dfconnect.so" # Hack DF!

save and run the script!

Has to be compiled for 32bit arch, otherwise the library isn't recognised. Client can be any arch.

Precompiled dfconnect library is made available. dfconnect.so goes in DF/libs, df-hacked script goes in DF/
Run ./df-hacked to use the shared memory API