Hi!
I've made a plugin that I ran and tested on Windows (HLDS - GoldSrc version). Now I also want to port it to Linux. So I got a new linux machine, got ubuntu, GCC installed on it, and decided to use Code::blocks for compilation.
After somewhat efforts I am now able to compile my plugin under linux hood. After installing metamod 1.18 binaries at required places etc., I updated plugins.ini file, as well as copied my plugin's .so file to the correct place.
Now when i run hlds using
sudo ./hlds_run -game cstrike -dev -autoupdate +maxplayers 20 -port 27017
command, my plugin does not load.
Running 'meta info 1' gives me:
Code:
name: (nil)
desc: t1
status: badfile
action: load
filename: addons/metamod/dlls/t1.so
file: ctp_tracker.so
pathname: /home/...../VALVe/HLServer/cstrike/cstrike/addons/metamod/dlls/t1.so
index: 1
source: ini file
loadable: -
unloadable: -
version: (nil)
date: (nil)
author: (nil)
url: (nil)
logtag: (nil)
ifvers: (nil)
last loaded: Thu Jan 1 05:00:00 1970
No DLLAPI functions.
No DLLAPI-Post functions.
No NEWAPI functions.
No NEWAPI-Post functions.
No Engine functions.
No Engine-Post functions.
Registered commands:
0 commands
Registered cvars: float value string value
0 cvars
No child plugins.
and running 'meta list' gives me:
Code:
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] t1 badf load t1.so v - ini - -
Now I'm very stumped. Compiler does not complain. I've mentioned the right path otherwise it wouldnt be detected by metamod in first place....
What could I be doing wrong? Can someone please guide me in this regards?
Thanks!!!