HPB_BOT badf load, (not loading)
With trying to add this bot to our servers this morning, we get the following messages
Code:
meta list Code:
L 12/16/2008 - 05:09:47: [META] ERROR: ini: Plugin '<HPB_bot_i386.so>' has newer file, but unexpected status (badfile) We do not want to know what the problem is or what the solution is. We are tired of the dead and abandoned bots-united now bots-divided. Nothing here works. Trust us, we've tried!!! :censored: Good luck, Krillin |
Re: HPB_BOT badf load, (not loading)
Damn that sux! I'm trying to do the same thing right now, and having the same issues. I had planned to convert all my Windows-based HLDS servers to Linux. But, that would normally include a small compliment of bots on Half-Life and TFC servers. Now I guess I'm stuck with Windows! :no:
Here's my HLDS output ... Code:
meta list |
Re: HPB_BOT badf load, (not loading)
I once got HPBots to work, but that was long ago.
Now I just use RCBots. |
Re: HPB_BOT badf load, (not loading)
Try to install these packages for your distribution and retry. Please advise if this helped as it fixed mine.
compat-libstdc++-33 compat-libstdc++-296 also these if that dont work compat-gcc-34 compat-gcc-34-c++ That should get things moving. if using fedora the Yum command is yum -y install compat-libstdc++-33 compat-libstdc++-296 yum -y install compat-gcc-34 compat-gcc-34-c++ |
Re: HPB_BOT badf load, (not loading)
Quote:
I did switch to JK_Botti on my Half-Life server. Now I'm looking for a (working) bot for DMC (on Linux). No luck so far (on the "working" part). |
Re: HPB_BOT badf load, (not loading)
I did some digging around the Internet(s), and it seems like the "undefined symbol: sqrt" error (seen at run-time) is the result of a missing command-line option - that should have been used during the most recent compile.
From that I've been able to gather, this issue is seen quite often - when people are trying to compile their own copies of Apache or other open-source software. Apparently, the missing command-line option is "-ml", which instructs the compiler to link to the required math library (which contains the "sqrt" function, among other things). I have a Linux machine up, but have no experience with compiling anything on it under GCC, etc. - much less Valve-related stuff. Not sure if I even have all the right components installed to do a successful compile (for example, do I need the Valve SDK installed on the Linux box?). Here's a couple of examples citing the missing "-ml" option: Why is it alway said that "fabs" and "sqrt" are undefined symbol? math.h not working? o.0 From what I gather, no source-code changes should be required, just a re-compile (and/or possibly an updated "make" file that controls the compile). If anybody can re-compile this bot (with the required command-line option), or show me how to do it, it would be greatly appreciated! |
Re: HPB_BOT badf load, (not loading)
it should be -lm rather than -ml :)
or maybe try adding this before the command which launches the server: LD_PRELOAD=/usr/lib/libm.so.6 |
Re: HPB_BOT badf load, (not loading)
Very strange, I though that when you compile shared library all the dependencies must be provided to the linker else you will get an error...
|
Re: HPB_BOT badf load, (not loading)
Quote:
It should be "-lm". :sailor: I'll give that PRELOAD command a try. |
Re: HPB_BOT badf load, (not loading)
Quote:
Still getting the same errors. Quote:
|
Re: HPB_BOT badf load, (not loading)
! RESOLVED !
Based on what Whistler posted, I tried the LD_PRELOAD environment variable again, but this time "exported" it. I put that option in my script that launches HLServer, right before the "hlds_run" command, like this: Quote:
Code:
meta list :punk: |
Re: HPB_BOT badf load, (not loading)
Quote:
|
Re: HPB_BOT badf load, (not loading)
Yeah for static library is clear why, there is no even a linker operation there, but for shared I don't see a reason for not doing it... However these questions perhaps are for the creators of GCC. :)
|
Re: HPB_BOT badf load, (not loading)
that way it's easier to reference symbols from the main executable which linked the library or other shared libraries.
|
Re: HPB_BOT badf load, (not loading)
is it possible to recompile the .so that it will work without having to mess with anything else? If so, can someone post a link for that new compiled hpb bot .so file?
|
All times are GMT +2. The time now is 09:31. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.