.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Releases, Installers, Docs & Coding (http://forums.bots-united.com/forumdisplay.php?f=48)
-   -   POD-bot back into shape. (http://forums.bots-united.com/showthread.php?t=833)

Austin 26-02-2004 01:55

Re: POD-bot back into shape.
 
Quote:

Originally Posted by Pierre-Marie Baty
It can work even better if you plug BotAim :)

Pm, how much work would it be to roll the botaim code into this version of POD?

V or 'Tex 26-02-2004 03:59

Re: POD-bot back into shape.
 
A couple questions:

As metamod, and all plugins, directly interface with the half life and/or counterstrike engines, what is the need for buy code at all? Wouldnt simply making the bots drop the old and acquire a new weapon by entity management be less laggy than forcing it to work through the counterstrike buy system? Just wondering.

Pierre-Marie Baty 26-02-2004 04:25

Re: POD-bot back into shape.
 
@Vor'Tex: that would be cheating, bad boy :)

@Austin: I'd say... according to the expertise my nose gives me, a few hours of work (to do something clean, I mean. It's the entire aiming code that needs to be changed, I don't want to "patch" it). But have you tried the bot yet ?

Terran 26-02-2004 09:47

Re: POD-bot back into shape.
 
Nobody else tried podbot with linux?

Onno Kreuzinger 26-02-2004 10:54

Re: POD-bot back into shape.
 
no, sorry this install marathons get to time consuming, i failed for joebot and IvPBot, i just don tget all the file in the needed places, and time is an issue, i cant shutdown the server for too long, ppl. get pissed ...

Terran 26-02-2004 11:07

Re: POD-bot back into shape.
 
Joebot was easy:
- install joebot 1.6.1
- copy the MM version of joebot into the $hlserver/joebot directory
- add "linux ../joebot/joebot_mm_i586.so JoeBot" to plugins.ini
- restart server =)

But I'm totaly glueless what's causing my problems with this new version of podbot - I even deactivated all other MM plugins...

eAnic 26-02-2004 19:34

Re: POD-bot back into shape.
 
I think the problem is in the pathfinding code of realbot because hlds crashes when a realbot joins.

DreamLord34 26-02-2004 20:25

Re: POD-bot back into shape.
 
eAnic, that's gotta be it. Every time I tried to run podbot with RB, as soon as RB joins it crashes. Now if Stefan can come up with a fix. Or anyone for that matter.

stefanhendriks 26-02-2004 20:42

Re: POD-bot back into shape.
 
it seems RB does not like other bots yet... gonna hunt tha bugs for that.

DreamLord34 26-02-2004 21:01

Re: POD-bot back into shape.
 
Stefan, RB seems to like IVP since that's what I'm using atm to train RB. Now & then the IVP.dll will crash but it's random & never the realbot_mm.dll as of yet.

Austin 26-02-2004 21:49

Re: POD-bot back into shape.
 
Quote:

Originally Posted by Pierre-Marie Baty
Austin: I'd say... according to the expertise my nose gives me, a few hours of work (to do something clean, I mean. It's the entire aiming code that needs to be changed, I don't want to "patch" it). But have you tried the bot yet ?

No I havn't, but I can't wait to try it. This week has been terrible work wise but I get some relief starting tomorrow and promise I will try the bot on friday and this weekend and give some feedback. I will grab and complie the latest version from your site as of late tonight around 10pm my time. I like to run new plugins under th debugger!

I will send some feedback soon and thanks agian!

Dethpod 27-02-2004 00:04

Re: POD-bot back into shape.
 
Hey all,

I'm really glad to see that podbot for Linux has not died.
However, I'm trying to run the metamod version on my 1.5 server and when I try to add a bot, here's the crash I get:

status
hostname: Test Server
version : 46/3.1.1.1 2615 insecure
tcp/ip : 172.21.10.175:27015
map : de_dust at: 0 x, 0 y, 0 z
players : 0 active (32 max)

# name userid uniqueid frag time ping loss adr
0 users
pb addbot
Adding new bot...
hlds_i686: bot.cpp:430: void BotCreate(edict_t *, const char *, const char *, const char *, const char *): Assertion `pBotNames != __null' failed.
./hlds_run: line 339: 17523 Aborted $HL_CMD


I'm using metamod ver 1.17 from the metamod.org site
Anything I can do to fix this?

-Dethpod
cstrike.rusin-central.com:27015
cstrike.rusin-central.com:27016

Pierre-Marie Baty 27-02-2004 01:21

Re: POD-bot back into shape.
 
Quote:

Originally Posted by stefanhendriks
it seems RB does not like other bots yet... gonna hunt tha bugs for that.

Like I tell you, RealBot will work fine with all the other bots which use the FL_THIRDPARTYBOT flag and NOT the FL_FAKECLIENT one, for the reason I told you one page or two before. But since TurtleRocker told us to put the FL_FAKECLIENT flag back (for engine consistency reasons) your bot is confused about which edict is a RealBot and which other is a third-party one. If I was to put the FL_THIRDPARTYBOT flag in POD-bot these two bots would get along together quite nicely, but since it is RECOMMENDED to put the FL_FAKECLIENT flag back, you have to check your code and fix it the way I told you.

If you don't know what I'm talking about, email me your latest RealBot source code and I'll do the changes for you. It's a matter of 5 minutes.

Pierre-Marie Baty 27-02-2004 01:23

Re: POD-bot back into shape.
 
@Dethpod: the bot is probably not installed correctly, and it couldn't find the files called "BotNames.txt". Ensure you have the "podbot" folder in your "cstrike" folder and ensure that all your config files are present and look okay.

DreamLord34 27-02-2004 01:23

Re: POD-bot back into shape.
 
That other podbot dll file that was fixed by someone here is able to work with realbot.

Dethpod 27-02-2004 01:52

Re: POD-bot back into shape.
 
Pierre-Marie Baty,

Thanks for the help. It was a case issue. My file was botnames.txt.
I changed it to BotNames.txt and that did the trick.
And it runs with RB WIP#9!!!!!!!!!!!!!!!!!!!!!!

Thank you very much,

-Dethpod
cstrike.rusin-central.com:27015
cstrike.rusin-central.com:27016

Austin 27-02-2004 09:08

Re: POD-bot back into shape.
 
PM, the bot seems to run fine.
The main problem was that all bots always took the exact same route. I was playing dust and started with no pxp files.

All 4 bots on my team would run around the perimeter of the t's spawn and then head for the long hallway overpass / tunnel and then go up and around and then through the short tunnel to the bomb site.

I was on a LAN with 1.5 and I did several rounds.
Is there something I am missing with their navigation?

Nice job.
They seem to run great!

Pierre-Marie Baty 27-02-2004 10:00

Re: POD-bot back into shape.
 
If they always took the same route that's precisely because they have no experience yet, so the pathfinder can't "weighten" the returned paths. As a consequence, as long as the bots didn't notice that this path was dangerous for them, they will keep using the shortest path. Just wait for them with a grenade or two at hand to temperate their pretentions in this area and they should start to think again :)

Or perhaps what could be done is to lower the heuristic of the A* algorithm according to the age of the .pxp files...

stefanhendriks 27-02-2004 12:02

Re: POD-bot back into shape.
 
i see, i have to eliminate the checks based upon FL_Fakeclient but run then om UTIL_BotPointer() so i am sure it is a realbot and not an other bot ;)

Dethpod 28-02-2004 03:28

Re: POD-bot back into shape.
 
Pierre-Marie Baty,

podbot works pretty good but it's crashing after a map change.

Especially after a map vote.

Here's what my log says:

L 02/27/2004 - 17:22:20: Server cvar "sv_voiceenable" = "0"
L 02/27/2004 - 17:22:20: Server cvar "sv_wateraccelerate" = "10"
L 02/27/2004 - 17:22:20: Server cvar "sv_waterfriction" = "1"
L 02/27/2004 - 17:22:20: Server cvars end
No Experience Data File or old one - starting new !

And then the server reloads.

Has anyone else experienced this?


-Dethpod
cstrike.rusin-central.com:27015
cstrike.rusin-central.com:27016

Dethpod 28-02-2004 20:51

Re: POD-bot back into shape.
 
Hello,

Here's another strange thing that started to happen on two of my servers. When a podbot dies my cpu goes to 100%. So they are pretty much useless now. That is really weird becasue it was working great on my 1.5 servers.

anyways, just to clarify things, how exactly do I install podbot-metamod? I think I may be using the wrong metamod.

Which version of metamod do I use?

Any advice would be much appreciated,

-Dethpod
cstrike.rusin-central.com:27015
cstrike.rusin-central.com:27016

[+Duracell-] 29-02-2004 17:24

Re: POD-bot back into shape.
 
I just created a post in the NukeBox forums linking to this thread. You have done some amazing work, Pierre! Keep it up and I hope your new bot will pwn the rest :D

Pierre-Marie Baty 01-03-2004 00:48

Re: POD-bot back into shape.
 
@Dethpod: I got your email but I'll reply here if you don't mind...

The bot should work with any metamod version equal or above 1.17. The official metamod DLL is fine. I have personally tested this bot on CS 1.5 (Windows) and CS 1.6 (Windows), but not in Linux.

Does it happen if you try to run the bot without any config files ?

Are there other Linux users to experience the same bugs ?

Dethpod 01-03-2004 20:00

Re: POD-bot back into shape.
 
Pierre,

"Does it happen if you try to run the bot without any config files ?"

Yes, it does. I renamed podbot.cfg to podbot.cfg.orig.

I didn't load any other plugins other than podbot and as soon as
a bot is killed, the cpu spikes to 100%.

The really weird thing is this is happening only on my Intel platform.

I have a test cs-server that is an Intel machine and two production cs-servers that run on an AMD machine.

I have had podbot-mm running on my private AMD cs-server and it seems stable. But the public cs-server running on the same AMD machine experiences 'hang-ups' at map changes and then crash.

Also, the cpu spiking doesn't happen on my AMD machine.

very very strange.

If you need a linux test server just let me know and I'll build one for you. This could be my way of contributing to keeping podbot for linux alive.

Thanks for your help,
-Dethpod
cstrike.rusin-central.com:27015 (Public)
cstrike.rusin-central.com:27016 (Private)

Pierre-Marie Baty 02-03-2004 02:06

Re: POD-bot back into shape.
 
Strange, indeed.

Does it happen when you disable bot chat ? There might be something messed up there.

Does it happen when you force bots to kill themselves ? (using the podbot menu or the kill command)

At wild guess I'd bet it's a bot chat problem, when the bot wants to whine at its killer. I need your confirmation though.

Dethpod 02-03-2004 02:43

Re: POD-bot back into shape.
 
Pierre,

You are right, it was a bot chat problem. I turned it off and now it's running great. As in the cpu does not spike anymore.

Any ideas about the server crashing during a map change?

And did you need a linux server for testing?

Let me know how I can help,

-Dethpod
cstrike.rusin-central.com:27015 (Public)
cstrike.rusin-central.com:27016 (Private)

Pierre-Marie Baty 02-03-2004 05:51

Re: POD-bot back into shape.
 
Really no idea about the server crashing during a map change. I've switched this and am currently coding other stuff, but since you're telling me there is at least a bug in the bot chat I'll probably get my hands back in this mud again soon.

It would be great to have a linux server for testing, indeed. Ensure I can also compile the bot on it if you put one together :)

Dethpod 02-03-2004 20:13

Re: POD-bot back into shape.
 
Pierre,

I'll email you directly for security reasons concerning your login & access to my linux box.

As for the crashes during map changes I have an intersting scenario.

My private cs server does not crash on map changes. But my public server does crash on map changes.

I deleted all pxp files in the waypoint directory.

Here's what the log says for different crashes:

Crash type#1
No Experience Data File or old one - starting new !

Crash type#2
Old POD Bot waypoint file version (V6)!
Trying to convert...
Loading & decompressing Experience Data
Experience Data loaded from File...

Crash type#3
Loading & decompressing Experience Data
Experience Data loaded from File...


And then it crashes.
Maybe this will help.

Has anyone else experienced this?

-Dethpod
cstrike.rusin-central.com:27015 (Public)
cstrike.rusin-central.com:27016 (Private)

DreamLord34 05-03-2004 21:19

Re: POD-bot back into shape.
 
Does anyone have podbot & RB working ok together?

The Goomba Mattress 06-03-2004 18:52

Re: POD-bot back into shape.
 
Not that I know of.

Cooley 09-03-2004 23:56

Re: POD-bot back into shape.
 
I just got this error with PODbot on a linux server.


hlds_i686: bot.cpp:8084: void BotThink(bot_t *): Assertion `(pEdict->v.v_angle.x > -181.0) && (pEdict->v
.v_angle.x < 181.0) && (pEdict->v.v_angle.y > -181.0) && (pEdict->v.v_angle.y < 181.0) && (pEdict->v.ang
les.x > -181.0) && (pEdict->v.angles.x < 181.0) && (pEdict->v.angles.y > -181.0) && (pEdict->v.angles.y
< 181.0) && (pEdict->v.ideal_yaw > -181.0) && (pEdict->v.ideal_yaw < 181.0) && (pEdict->v.idealpitch > -181.0) && (pEdict->v.idealpitch < 181.0)' failed.


Any idea on a solution to this. Any help would be appreciated and nice work on the new version Pierre-Marie Baty.

Cooley

Pierre-Marie Baty 10-03-2004 11:09

Re: POD-bot back into shape.
 
Dethpod is trying to put together a Linux bot to help debugging the bot. Once this will be done I'll have a quick look and fix all the Linux issues that have been mentioned. I can't devote much time to this bot as I already have mine to grow, hope you understand. :)

Terran 10-03-2004 11:33

Re: POD-bot back into shape.
 
Try YaPB, you can find it in the Off-Topic forum. It's a modified podbot and works very well at my linux server 8)

Pierre-Marie Baty 10-03-2004 11:52

Re: POD-bot back into shape.
 
Actually I redid the ClampAngle() functions in a nicer way
Code:

void UTIL_ClampAngle (float *fAngle)
{
  if (*fAngle >= 180)
          *fAngle -= 360 * ((int) (*fAngle / 360) + 1);
  if (*fAngle < -180)
          *fAngle += 360 * ((int) (-*fAngle / 360) + 1);
}

void UTIL_ClampVector (Vector *vecAngles)
{
  if (vecAngles->x >= 180)
          vecAngles->x -= 360 * ((int) (vecAngles->x / 360) + 1);
  if (vecAngles->x < -180)
          vecAngles->x += 360 * ((int) (-vecAngles->x / 360) + 1);
  if (vecAngles->y >= 180)
          vecAngles->y -= 360 * ((int) (vecAngles->y / 360) + 1);
  if (vecAngles->y < -180)
          vecAngles->y += 360 * ((int) (-vecAngles->y / 360) + 1);
  vecAngles->z = 0.0;
}

And I added two ClampAngle() calls on idealpitch and ideal_yaw at the bottom of BotThink(), this way the assertion can't fail anymore.

I updated the podbot DLL

http://racc.bots-united.com/releases/podbot.zip
uploading now

Cooley 10-03-2004 17:40

Re: POD-bot back into shape.
 
Unfortunately I am still getting the same error, but thanks for working on it.

Pierre-Marie Baty 10-03-2004 19:10

Re: POD-bot back into shape.
 
Pisses me off. I've added this barbarian fix.
Code:

void UTIL_ClampAngle (float *fAngle)
{
  if (*fAngle >= 180)
          *fAngle -= 360 * ((int) (*fAngle / 360) + 1);
  if (*fAngle < -180)
          *fAngle += 360 * ((int) (-*fAngle / 360) + 1);
 
  // if we're still above the limit then something's REALLY fuckedup!!!
  if ((*fAngle >= 180) || (*fAngle < -180))
          *fAngle = 0; // no mercy.
}

try this one now.
http://racc.bots-united.com/releases/podbot.zip
still uploading as I write this.

*edit* upload finished, go for it.

Cooley 10-03-2004 20:31

Re: POD-bot back into shape.
 
Sorry still getting


hlds_i686: bot.cpp:8089: void BotThink(bot_t *): Assertion `(pEdict->v.v_angle.x
> -181.0) && (pEdict->v.v_angle.x < 181.0) && (pEdict->v.v_angle.y > -181.0) &&
(pEdict->v.v_angle.y < 181.0) && (pEdict->v.angles.x > -181.0) && (pEdict->v.an
gles.x < 181.0) && (pEdict->v.angles.y > -181.0) && (pEdict->v.angles.y < 181.0)
&& (pEdict->v.ideal_yaw > -181.0) && (pEdict->v.ideal_yaw < 181.0) && (pEdict->v.idealpitch > -181.0) && (pEdict->v.idealpitch < 181.0)' failed.

Now when I try to kill the server with the exit command I get the following error:

L 03/10/2004 - 12:17:56: "Make me Laugh<-1><><CT>" disconnected
Dropped Make me Laugh from server
Reason: Server shutting down
L 03/10/2004 - 12:17:56: "Hemp Invader<-1><><TERRORIST>" triggered "Dropped_The_Bomb"
./hlds_run: line 423: 17448 Segmentation fault $HL_CMD
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem



Thanks for the continued work.

Cooley

Pierre-Marie Baty 10-03-2004 22:29

Re: POD-bot back into shape.
 
heck, it's IMPOSSIBLE!!! ???:(
can you try this one ?
http://racc.bots-united.com/podbot_mm_i386.so
it won't work any better but it will help me locate the bug.

Cooley 11-03-2004 02:48

Re: POD-bot back into shape.
 
Here is the new error


hlds_i686: bot.cpp:8088: void BotThink(bot_t *): Assertion `(pEdict->v.ideal_yaw > -181.0) && (pEdict->v.ideal_yaw < 181.0)' failed.
./hlds_run: line 423: 17605 Aborted $HL_CMD
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem

Could these error be related to other metamod plugins (just checking, no programing background). I am running adminmod 2.50.58-beta and StatsMe 2.8.0.

Cooley

walten 11-03-2004 08:49

Re: POD-bot back into shape.
 
I am running linux and i have no problem getting it up and running. The plugin that is.

[ 1] AMX, v0.9.7, Nov 28 2003, by OLO, see http://www.amxmod.net
[ 2] FUN, v0.9.8, Nov 28 2003, by OLO, see http://www.amxmod.net
[ 3] CS STATS, v0.9.7, Nov 28 2003, by OLO, see http://www.amxmod.net
[ 4] WebMod, v0.47, 2003/05/19, by dJeyL, see http://djeyl.net/w
[ 5] Vexd Util. Module, v0.2.0.7, Nov 28 2003, by Vexd, see No Website
[ 6] POD-Bot, v2.5, 20/02/2004, by Count Floyd, Austin, Wei Mingzhi, Pierre-Marie Baty, see http://www.bots-unite

That is my meta list.

When i hit my podbotmenu key it says that it is an unknown command.

any ideas

-walten


All times are GMT +2. The time now is 11:52.

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