PDA

View Full Version : bot support


Blackhawk722
06-30-2004, 06:06 PM
I am working on my first map and have encountered a problem that I cant fix. Every thing looks great on the map, but whenever I play on it with bots the game quits and the following message appears:

General protection fault!

History: APawn::breadthPathFrom <-APawn::find PathToward <-AActor::ProcessState <-Object e209Bot
DM-test2.e209Bot0, Old State State Botpack.Bot.Roaming, New State State Botpack.Bot.Roaming <-AActor::Tick <-
TickAllActors <-ULevel::Tick <- (NetMode=0) <- TickLevel <- UGameEngine::Tick <-UpdateWorld <-MainLoop


I have tried many things to fix the problem but to no avail. I haven't worked for five days to be stoped now. The only thangs I recognize in that error message is e209(The player modle for the blue team) and DM-Test2( The temporary file name for my map). Any help in fixing the problem would be most appreciated because I really want to put this map on-line, but most people probably would want bot support.

Btw i have attached some pictures of the map. It is a starship with a big cargo bay, cool cockpit, flyable fighters, and more! Once this problem is fixed I will make a space station and make it a ctf map.

Cobra
06-30-2004, 07:28 PM
Good pics! I like the U4e weapons. For the bots try deleting all players starts, and put new one and them rebuilt, it should fix your problem. And don't forget to put in your level info what cand of game type.

Blackhawk722
07-01-2004, 09:01 AM
Well I did what you said to do and I was able to play a whole game with bots on my map. There is just one more thing I need to know though, how do u make it so the bots will move around? I have placed some pathnodes but that didnt help much, and will bots only jump to get something if there is a jump piont there? Anyway, Cobra, Thanks so much for the advice.

Cobra
07-01-2004, 01:10 PM
Well for that. It is only bad pathing, erase all your pathnode and start over again. And place your pathnode so that they are connected together. And if you can't do it. PM me and I will path it for you.

BullDozer
07-01-2004, 02:18 PM
Well for that. It is only bad pathing, erase all your pathnode and start over again. And place your pathnode so that they are connected together. And if you can't do it. PM me and I will path it for you.

Absolutely right, another good thing is, respect and make use of the grid when placing pathnodes, i make the pathnodes bEdShouldSnap as i do with all placeable elements, and i confirm that this way i never had any probs with pathing. Be sure to place'm only in 3D view, you can copy and paste'm in top view, but be sure that the copies are on the same level.
Another trick, very interesting is the use of groups.
Group all you brushes for a given project in the map, do the same for paths and items >

Group > Paths1evel > contain all pathnodes and playerstarts on level1
Group > Items > contain all weapons and powerups
and so on ......

For stairs and doorways, place a pathnode at each side of it.
Height of the pathnode is automatique in 3D view, so no worries.
Lenght between each pathnode is average good at 4 sqaures when grid is at 16. 7 sqaures seam to be limit.
hope this helps. :)

BullDozer
07-01-2004, 02:21 PM
.... whenever I play on it with bots the game quits and the following message appears ..........

Once i had the same prob, and i discovered that this happened only when you
look at a bot going somewhere he is not allowed, meaning where no botpath has been made, but on a previous botpath not existing anymore.
So it's obviously something with botpath refresh, rebuild.

Blackhawk722
07-01-2004, 07:27 PM
Since you guys have been helpful here are some more questions. How do u make doors? What type of mover do u use? Is there a way to make it so u have to go where a trigger is to open the door? Also I imported a wav file to the music browser and saved it, then i brought up the level properties and selected to use that music for the map. However when i play the map it plays the UT menu music and not the music i chose. Any advise there? Thanks again

Cobra
07-01-2004, 07:49 PM
Sorry for that but my english is not that good to explaine that. Sorry, but ask anyone here they will respond whit pleasure. :)

Ironblayde
07-01-2004, 08:18 PM
You can find all the information you need on movers for UT here:

http://wiki.beyondunreal.com/wiki/Create_A_Mover_(UT)

The short of it is that you need to create a regular mover, set its Object->InitialState property to TriggerControl, then place a trigger that will control the door, and match the mover's Events->Tag property to the trigger's Events->Event property. You'll also need to tweak the triggers Collision settings according to your needs. If you don't understand that, see the above link for a much more thorough explanation.

Ironblayde
07-01-2004, 08:22 PM
Also, for pathing, you may be interested in the program PathLogic, which allows you to place nodes as you're playing the game, instead of doing it in the editor. You can either set the nodes manually, or set the program to drop a node automatically every so many UUs as you run through the map. You'll probably want to tweak your node setup in UnrealEd even if you do use PathLogic, but it can still be a significant time-saver for big maps.

http://wiki.beyondunreal.com/wiki/PathLogic

Blackhawk722
07-01-2004, 08:58 PM
I have yet another problem, I recently used the brush tool to remove an unwanted part of the map. However when i played the map peices of the back drop where inside the ship, Rebuilding geometry fixed this but it made parts of the walls and cieling dissapear. I tried replacing the surfaces but they dont show up. Please help me, Again.

Cobra
07-01-2004, 09:07 PM
I'll try to explaine in my poor english. Ok select the disaper brush in the perspective view ,right click on it and it will apperd 4 option and then go to polygone go to brush, click on it, then press deleted, and if it is a brush out click add, or if it is a space or hole, click on subtract. then rebuilt.

BullDozer
07-01-2004, 10:44 PM
I have yet another problem, I recently used the brush tool to remove an unwanted part of the map. However when i played the map peices of the back drop where inside the ship, Rebuilding geometry fixed this but it made parts of the walls and cieling dissapear. I tried replacing the surfaces but they dont show up. Please help me, Again.

Very obviously you played with brushes no matter what time nor order.
the selected and deleted brushes are gone, but a simple geometry rebuild
is only good enough for structural brushes, not for reconstruction of
zones nor the appending backdrops, so do a complete rebuild and it should be oki doki.

In case your got a wide and big botpathing, and you don't want wasting
time for that, just open the optione for the rebuild tool and uncheck rebuild paths, all will be rebuild except paths.
It's absolutely nescessary to perform a complete rebuild if you removed some zones or brushes building a given zone, else some weird behaviour can appear
even HAL could come up (Hall Of Mirrors, or seeing into nothingness).

Blackhawk722
07-02-2004, 10:43 AM
like i said before a geometry rebuild makes parts of my walls, floors, and cieling disapear, and when i try to put them back they dont show up.

Blackhawk722
07-02-2004, 11:50 AM
On second thought nevermind i finally understood what cobra was trying to say.