EntityPlus bot spawn

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

EntityPlus bot spawn

Post 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?
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: EntityPlus bot spawn

Post 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.
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

Re: EntityPlus bot spawn

Post 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?
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: EntityPlus bot spawn

Post 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 :)
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

Re: EntityPlus bot spawn

Post 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.
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: EntityPlus bot spawn

Post by Eraser »

Cool :up:
Post Reply