.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Metamod Fails to Load Latest HPB_bot Template #4 for LINUX (http://forums.bots-united.com/showthread.php?t=3873)

Etih 20-04-2005 08:22

Metamod Fails to Load Latest HPB_bot Template #4 for LINUX
 
I recently downloaded and compiled the latest version of the HPB_bot template in LINUX using the provided Makefile, 'makefile_linux'. I had to make some minor changes to the source (I added #include <ctype.h> and #include <unistd.h> in some of the modules) and fixed a spelling error in 'makefile_linux'. When running hlds, however, metamod failed to load the compiled .so file. The sever error log reads:

L 04/19/2005 - 23:03:59: [META] ERROR: dll: Failed query plugin '<HPB_bot_i486.so>'; Couldn't find Meta_Query(): /home/ttwang/hlds/tfc/dlls/HPB_bot_i486.so: undefined symbol: Meta_Query

I am pretty certain that my 'plugin.ini' is configured correctly as I was able to successfully load the latest precompiled version of HPB_bot. Thanks in advance for any offered insights.

Pierre-Marie Baty 20-04-2005 16:28

Re: Metamod Fails to Load Latest HPB_bot Template #4 for LINUX
 
Linux binaries for HL MUST be compiled with GCC 2.95.3. If you use another compiler, or another version, it will not work.

This is related to how the linker builds the exports and how the hl engine exchanges its entity function tables.

Whistler 21-04-2005 05:25

Re: Metamod Fails to Load Latest HPB_bot Template #4 for LINUX
 
gcc 2.95.3 isn't the problem, the problem is if you use gcc3 you must use "g++" command to compile

I think he means using HPB bot Template in Metamod. The HPB bot 4.0 is the Metamod version, but the "Template" is NON-METAMOD version

Pierre-Marie Baty 21-04-2005 06:20

Re: Metamod Fails to Load Latest HPB_bot Template #4 for LINUX
 
Are you sure of that Whistler ? I've never seen a working GCC 3 compiled Linux binary yet, and I did try several times.

Cpl. Shrike 21-04-2005 10:52

Re: Metamod Fails to Load Latest HPB_bot Template #4 for LINUX
 
Im compiling hpb bots with gcc 3.3.3
And ShrikeBot ofcoarse.

But im not using the BU-2.3-SDK that don't work for me.
Im using the default 2.3-SDK.

Etih 22-04-2005 08:03

Re: Metamod Fails to Load Latest HPB_bot Template #4 for LINUX
 
Thanks for the feedback, everyone.

Whistler is right; I had falsely assumed that the bot template was also a metamod plugin.

One issue I did notice, however, is that hlds doesn't seem to like the name, "HPB_bot_i486.so". Even though I have "liblist.gam" configured to load "HPB_bot_i486.so", hlds looks for "HPB_i386.so". Renaming the shared object to "HPB_i386.so" fixed the problem. Hlds also loaded the binary with the name "dbot.so" successfully after I configured "liblist.gam" to load "dbot.so". I'm not sure what exactly is causing the problem here, but at least there seems to be a workaround.

Anyways, with some minor changes to the source and the makefile, HPB template 4 should run after compiling with GCC3.


All times are GMT +2. The time now is 15:12.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.