My plugin does not load in linux
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) Code:
Currently loaded plugins: What could I be doing wrong? Can someone please guide me in this regards? Thanks!!! |
Re: My plugin does not load in linux
I'd like to add some more details:
plugins.ini is as follows: Code:
linux addons/metamod/dlls/t1.so t1 Guidance anyone, please? |
Re: My plugin does not load in linux
Hi
After looking more into this matter, I found it was because i am using Ubuntu 64 bit, with Code::blocks also 64 bit. while my dll was compiling fine because no linkage with other dlls (valve) was there for goldsrc, it was not being loaded by HL sever, simply because 64 bit architecture is not supported. After a lot of hassle i am able to compile my dll as 32 bit. now, hlds recognizes it, but my plugin somehow crashes, and i can only see this message when i type meta info: Code:
Uploading dump (in-process) [proxy ''] No my code compiles and is recogized by hlds, but fails to load, and crashes the server... i guess it means back to the drawing board... if i can get more guidance, i'll really appreciate it... |
Re: My plugin does not load in linux
I don't know about MetaMod C++ plugins, but MetaMod: Source comes with a Makefile for compiling C++ plugins against it properly. Doesn't MetaMod have that?
|
Re: My plugin does not load in linux
@Powerlord
Thanks for the tip. Apologies for the delayed response - you are correct samples do come with a MakeFile, but I didn't base my building via console - I initially decided to use some IDE that might mean lesser work on my side (because I'm comnig from Windows background so dont have detailed information in linux). After somewhat hassle, in start I used Code::blocks, but failure there. Now i've moved to Netbeans. Experience with Netbeans, as far as compilation and user friendliness is concerned, is much better as compared to Code::blocks in a view (just made the switch and hour or two ago). ^^ saying this just for the record, so it might help someone as newbee as myself... edit: also saying above since Netbeans took care of the -m32, and fPIC flags automatically that I had to specify specifically in Code::blocks after bit of reading on net. Coming back to the topic, I tried to compile the stub_mm plugin that comes as a metamod sample plugin. Same error is there. I tried building this plugin under netbeans, and as result either i get the above segmentation fault, or BADF after launching server. So I'm thinking there might be some problem elsewhere, maybe I should just trash my 64bit linux and build on a 32bit linux OS...? Do you have any suggestions, please? |
Re: My plugin does not load in linux
Hey!
Wait a minute. If its just 'my' configuration, other linux based plugins should be loading on server easily, right? For a test I took 'antiaim' and AntiFake plugins (32 bit) and tried to run them separately (from http://metamod.org/plugins.html). Same error!!! Either its BADF, and sometimes segmentation failure (so with this error I know MM:S does try to load my plugin, and its not that I've specified wrong path some or something). Now I'm really puzzled... |
Re: My plugin does not load in linux
Quote:
Make sure the ia32-libs package is installed. It's a meta-package that installs common 32-bit libraries for you. Edit: It looks like you may need ia32-libs-multiarch in newer versions, too. |
Re: My plugin does not load in linux
I see!
Thanks for the prompt reply - I'll try this and get back here! Many thanks once again... (I was just about to dump 64 bit and move to 32 bits from tomorrow onwards...) |
Re: My plugin does not load in linux
Ok, I'm back with a feedback <sigh>
I tried getting both the things you mentioned, and I'm already up to date... Code:
taha@MetaMod-Server:~$ sudo apt-get install ia32-libs If I can get more guidance, I'll appreciate it... thanks... |
Re: My plugin does not load in linux
Further update:
I installed Ubuntu 32 bit 11.10 version. After installation etc., I get the same problem. I was thinking maybe it has to do with latest version, so installed another VM machine, this time of Ubuntu 32 bit 10.04 LTS version. Same problem there.... so there must be something with the configuration, setup environment something... I tried getting the latest cstrike (maybe installation was unsuccessful), via this command: sudo ./steam -command update -game cstrike -dir cstrike -verify_all nothing. I have read on srcds forum, also elsewhere IIRC people have faced similar issues with Linux server. Sadly, they too never got to the right answer. Now what on earth does Linux has to do anything with this? There must be some answer somewhere.... anyone knows, please? Things are getting way too bad. While I am really enjoying the Linux environment, I had reason to believe it's pretty good and stable. But whats wrong with metamod plugins...? |
All times are GMT -4. The time now is 06:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.