Pathing

Moderators: GSH, Commando, Red Devil, VSMIT

Post Reply
User avatar
Clavin12
Bull Dog
Posts: 676
Joined: Fri Feb 25, 2011 4:50 pm
Location: The Deep(ish) South

Pathing

Post by Clavin12 »

There seems to be no good information about pathing. How does it work? What is required to do it?
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: Pathing

Post by Red Devil »

User avatar
labmice00
Thunderbolt
Posts: 102
Joined: Fri Feb 25, 2011 5:22 am
Contact:

Re: Pathing

Post by labmice00 »

Here is some good information about how to do it.
http://www.bzcommand.com/forum/index.php?topic=98.0

Pathing is used for SP missions and IA/MPI.
User avatar
Red Spot
Attila
Posts: 1629
Joined: Mon Feb 21, 2011 6:14 pm
Location: The Netherlands

Re: Pathing

Post by Red Spot »

labmice00 wrote:Here is some good information about how to do it.
http://www.bzcommand.com/forum/index.php?topic=98.0

Pathing is used for SP missions and IA/MPI.
I'm somewhat afraid that is not what the OP was refering to.

Anyway, if it is, there is the link with an answer. If not, than here is the answer [.....................].
Simple, you do nothing :)
In effect the game tries to find a sort of level path from point A to point B, the shift-F9 editor gives a good indication where ships will feel ok to move to (colored in blue, iirc, the rest is yellow). For the rest it is mostly what I like to call commen sence. When you raise a wall center-map with no clear "sides" the AI will try to ride it dead-on, believing that if they trottle up they magicly will fly over the wall .... so shape the wall a bit so it become more of a part of an oval and ships will again find a path around it.

You can also hide objects underground to steer AI-controlled units to and/or away from certain areas, you can use water to achieve the same though the AI ignores it easier and in some cases they may even choose to blatantly cross the water.
Pathing is fun, its works anyway, with a bit of commen sence, but with a bit of imagination you can pull of all sorts of stunts with it :)
User avatar
MrTwosheds
Recycler
Posts: 3059
Joined: Sat Feb 19, 2011 8:37 am
Location: Outer Space
Contact:

Re: Pathing

Post by MrTwosheds »

Yes, for map making pathing is something you should test, not something you add as such. The shift f9 screens in the editor can be quite useful for this as they should give some indication of what the AI will and will not try to use. If you make narrow canyons pathing will be more difficult, as the ai has to path round other units and may often decide that canyon is blocked because their are other units in it. So a good map will offer alternate routes.
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: Pathing

Post by Nielk1 »

Generally good map design implies good pathing. I have run into issues were I had to replace entire bridges on maps converted from 1.2 because the AI refuses to path them at all. The hardest part with pathing when map making IMO is tunnels and bridges. Especially new ones.
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: Pathing

Post by Red Devil »

Sorry, can't resist a pun.

Open up a G66v2 map using BZ2edit.exe and use Shift-F9 to see good examples of pathing. FE maps, too.

Make a shortcut to BZ2Edit.exe and put something like this in the target field:

Target:

C:\BZ2\BZ2Edit.exe /config FE13_EDITOR.cfg /nointro /novista /odfwarnings /uniquelogfile /win /resolution 1680 1050 cpmmmnt.bzn

run it
Post Reply