.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Metamod and metamod plugins (http://forums.bots-united.com/forumdisplay.php?f=15)
-   -   BotAim 2 crashes my server! (http://forums.bots-united.com/showthread.php?t=3628)

The Goomba Mattress 21-02-2005 17:21

BotAim 2 crashes my server!
 
Hello,

I've been using the BotAim 1.5 MetaMod plugin for a while now, and it's just about the best thing since, well, sliced bread. However, after I upgraded to BotAim 2, my server crashes after each map change. Not only that, but random bots turn invisible through the course of each round o_O

I really hate to point fingers and blame it on the plugin, as it is most likely my own fault that this is happening. I just can't seem to find out what the problem is. I initially just replaced the BotAim 1.5 dll with the BotAim 2 one, and ran the server as usual. After experiencing the problem, I commented all plugins out of MetaMod's plugins.ini except for PODBot 2.6 mm and BotAim 2. I thought the problem might have been caused by one of my AMX Mod X plugins, or even a conflict of some sort with RealBot, which I was also running on my server at the time. Even after doing this, however, the problem persists.

I can't figure it out. A few rounds into the game, random bots on each team suddenly turn completely invisible. Also, as I said before, the server crashes shortly after a map changes. For now, I'm just sticking with BotAim 1.5, which still seems to work flawlessly for me. It's a shame, since BotAim 2 seems like such a great improvement.

If anyone can help, I'd really appreciate it.
Thanks

Pierre-Marie Baty 21-02-2005 18:13

Re: BotAim 2 crashes my server!
 
Windows or Linux ?

Does it crash with the default aiming settings ?

There is no safety check for the settings, and the aiming equation can happen to enter in "resonance" and produce vector overflows...

The Goomba Mattress 21-02-2005 18:22

Re: BotAim 2 crashes my server!
 
Windows.

And all setting are currently on the defaults.

sPlOrYgOn 21-02-2005 18:27

Re: BotAim 2 crashes my server!
 
yea I was crashing with pbmm and botaim2 but it only happens when both plugins are loaded in the plugins.ini..
I commented out botaim2 then did "meta load addons/botaim/dlls/botaim_mm.dll" and there was no crash..

The Goomba Mattress 21-02-2005 19:07

Re: BotAim 2 crashes my server!
 
Just finished trying the meta load method, and still no luck. Bots still disappear and the server still crashes :(

As much as I hate to put the blame on it, I'm convinced there is something wrong with the plugin itself. That, or my machine is screwy. Any ideas, PMB?

I apreciate the help.
Thanks

Pierre-Marie Baty 21-02-2005 19:53

Re: BotAim 2 crashes my server!
 
There's nothing wrong in putting the blame on me :)

I must have forgotten to check something. I'll have to dig into that again. Thanks for your patience :)

The Goomba Mattress 21-02-2005 21:45

Re: BotAim 2 crashes my server!
 
Just make sure you keep us updated. :)

With all the work you've already put into this plugin, it would be a shame if it turned out less than perfect. :D

UPDATE: Upon further investigation, I discovered that the problem with the bots turning invisible was not caused by the BotAim 2 plugin. I had a mixup and had my MetaMod plugins.ini opened in two different Notepad windows. In other words, AMX actually was running when I thought it wasn't. :o A rogue AMX plugin was apparently causing the problem, and I have since fixed it. Nothing gets by this hard-boiled detective. 8)

However, BotAim 2 is indeed what is still causing the server to crash, so we're not a-ok just yet. I'm relying on you PMB! :P

Pierre-Marie Baty 22-02-2005 16:17

Re: BotAim 2 crashes my server!
 
1 Attachment(s)
Would you mind trying this plugin DLL ?

The Goomba Mattress 22-02-2005 19:33

Re: BotAim 2 crashes my server!
 
Works like a charm!

I've been running it for a few hours now without a single problem. You're a genius. :D

May I ask what the problem was?

Pierre-Marie Baty 23-02-2005 15:02

Re: BotAim 2 crashes my server!
 
Probably an angle overflow :)

I added angle wrapping checks everywhere, all the angles in a row before modifying them, and all the angles in a row again after botaim2 changed them.

Can you confirm it still works okay after a few more hours testing ? If you tell me it's working well enough for you I'll make a new release :)

The Goomba Mattress 23-02-2005 20:20

Re: BotAim 2 crashes my server!
 
Everything seems to be working just fine.

I went ahead and loaded up all of the Metamod plugins I had disabled in order to test BotAim 2 with PODBot 2.6 (namely RealBot, AMX, and JabaTV) to see if they were causing the problem. I'm happy to say the server is still going strong after a number of hours of playing. I've tried just about everything I can to replicate the problem, but the plugin sems to be working perfectly.

I'll continue trying different things with the bots to see if the problem happens again, but I'm almost 100% sure we're good to go for a new release.

Nice work! :D

robbob4 24-02-2005 02:18

Re: BotAim 2 crashes my server!
 
fixed my server! it was causing my bots to crash on bot plant or defuse. I resolved it by isntalling the updated verison of this and deleted the pvp and pxp files of podbot mm.

KWo 24-02-2005 08:48

Re: BotAim 2 crashes my server!
 
These invisible bots (and also players) are made by gore plugin. Execatly - the problem is , when someone does a headshot or knifekill on the bot/player. Since next round he stays invisible. It's because of this line in Your gore plugin.
Code:

static fx_trans(player,amount)
{
  set_user_rendering(player,kRenderFxNone,0,0,0,kRenderTransAlpha,amount)
  return PLUGIN_CONTINUE
}

Becasuse of some reason the rendering isn't reseted at the player respawn.
The solution is change a bit the function event_respawn in gore plugin in this way (add the line with 'set_user_rendering'):
Code:

public event_respawn(id)
{
  gHealthIndex[id] = get_user_health(id)
  set_user_rendering(id,kRenderFxNone,255,255,255,kRenderNormal,16)
  return PLUGIN_CONTINUE
}

After this You need to recompile the plugin, copy its recompiled version (gore.amx) to amx\plugins and start the server again.

[EDIT] Pierre, how many times I need to say this CODE function still doesn't work correctly? 'kRenderTransAlpha" and 'kRenderNormal' - they should be one words (not divided). And bolding in 'code' and in 'php' doesn't work. :(
[/EDIT]

Pierre-Marie Baty 24-02-2005 11:33

Re: BotAim 2 crashes my server!
 
I hear you, KWo... but...
  • The PHP tags are the ones from vBulletin, I did not change them at all
  • The CODE tags were made by me based on the code for the PHP tags, with some improvements for C/C++ syntax (the original CODE tags from vBulletin were roughly equivalent to QUOTE).
  • Both of these rely on the PHP function highlight_string(), which does all the job of putting colors on a code string. This is an intrinsic function of PHP, I cannot change it :(
What happens in your case was that the line
Code:

set_user_rendering(player,kRenderFxNone,0,0,0,kRenderTransAlpha,amount)
has no space in it and is thus considered as one single word ; but, since it exceeds the maximum line width PHP attempts to cut it by the 73th character.
If you had put spaces
Code:

set_user_rendering (player, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, amount)
it would have worked :)

Pierre-Marie Baty 24-02-2005 11:50

Re: BotAim 2 crashes my server!
 
I have made a new release of botaim2. Same URL :)

The Goomba Mattress 24-02-2005 16:18

Re: BotAim 2 crashes my server!
 
Thanks for the info KWo. I've fixed the problem with the bots disappearing since my last post. Since I'm no coder, though, I just got myself a new gore plugin. :P

I'll keep that in mind if anyone ever has any questions about it on the AMX Mod X board.


All times are GMT +2. The time now is 04:05.

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