Page 1 of 1

EntityPlus bot spawn

Posted: Tue Mar 26, 2013 5:26 pm
by UglyFoot
Hello, I have trouble to move a bot to a waypoint. I have created a map with only a info_player_start, a target_botspawn and a waypoint. The info_player_start is connected to target_botspawn and this is connected to the waypoint. I also changed the angle of botspawn to 270.

The problem is that when I load the map the bot appears with an angle of 270 but immediately after the angle changes to 0 and he does not go to the waypoint, he stands still and if I get in front he attacks and chases me, bad bot.

I'm using the 1.6.3 version of radiant and to create the aasfile I use this parameters:
-optimize -threads 2 -forcesidesvisible -bsp2aas

and to load the map: +set fs_game entityplus +set sv_pure 0 +devmap

Does somebody know why it doesn't work?

Re: EntityPlus bot spawn

Posted: Wed Mar 27, 2013 9:46 am
by Eraser
Make sure the waypoint is reachable for the bot (make sure it's not inside a solid, not even partially).
If you run the map with cheats enabled, you can use the g_debugBotspawns (set it to 1) to have the console output console message when spawning a bot. If you see a message like

"no AAS area for waypoint at (x, y, z)" or
"waypoint at (x, y, z) is unreachable"

then your waypoint cannot be reached by the bot.

Re: EntityPlus bot spawn

Posted: Wed Mar 27, 2013 12:52 pm
by UglyFoot
You're right, the waypoint is unreachable. I've tried everything but still unreachable and I can't understand why. I have attached the map, can you take a look?

Re: EntityPlus bot spawn

Posted: Wed Mar 27, 2013 1:00 pm
by Eraser
I'm not able to check it right at this moment but maybe you can give it a go by compiling it without using the -meta flag for BSP and without using -forcesidesvisible for BSPC.

I realize that if it works that way it's not the wanted situation, but at least it gives us a starting point to start working from. It may also allow you to continue your work for now :)

Re: EntityPlus bot spawn

Posted: Wed Mar 27, 2013 3:41 pm
by UglyFoot
I have changed the shape of the room and now it works, I just added a hole in the ground, maybe there's a problem when the room is very simple (in my case it was a simple squared room). Anyway thanks for replying. I'll play around with the bots and see if I can make a small map.

Re: EntityPlus bot spawn

Posted: Wed Mar 27, 2013 3:50 pm
by Eraser
Cool :up: