IPB

Welcome Guest ( Log In | Register )

Manually navmeshing from the editor?
Dnamro
post Mar 9 2008, 08:43 AM
Post #1


CinC (for now)
Group Icon

Group: Mr. Admin
Posts: 5,813
Joined: 28-December 03
From: Fort Hood, TX
Member No.: 46



I remember reading a post where someone had mentioned that they generate navmeshes from the editor manually, but they did not explain how. Can someone explain how?


--------------------
No, my Avatar is not my dog.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
clivewil
post Mar 9 2008, 09:16 AM
Post #2


Relic
Group Icon

Group: Mr. Admin
Posts: 2,007,408
Joined: 24-July 07
From: Perth, Western Australia
Member No.: 3,545



i realise this isn't quite what you were asking D, but it might prove helpful info at some point anyway...

i generate mine manually from a cmd window; but first copy an existing ai folder to your map, and then the editor is used for is the command sequence - aiPathfinding > ExportGTSmeshes which will put a Meshes folder inside MapName/GTSdata - this meshes folder needs to be moved to \NavMesh\Work\MapName\GTSdata\ before you can launch the navmesh generator - (and while you're inside the editor still, make sure you have UsedByPathFinding checked for the combat area you want to use as the boundary for your navmesh)

after that's done and IF it was done correctly (if not, check the combat area hasn't become inverted or doubled-up) you can then launch CreateNavmesh.bat in the cmd window, first making sure that /navmesh/ is your current directory

(at this point, the navgen will attempt to open the editor, load the map, export the gts meshes, and copy them over to the work folder. it often CTD's at this point, which is why i learnt to do it manually. if it crashes, the navgen will continue because it has everything it needs already. - my scripts have the editor lines removed, for two advantages: i don't have to wait for the above CTD-prone process to finish, and i can also modify - import - examine, modify - import - examine etc. on changes to my navmesh without having to open and close the ed every time)

the navgen asks for the name of the mod, then the name of the map, and then runs, hopefully to completion. the Output folder is copied to the map's own GTSData folder at the end.

final step is aiPathFinding > LoadGTSData > SaveQuadTrees, and AI > createHeightMap

as far as i know, it's not possible to gen navmeshes 'manually' from the editor - the Generate Pathfinding function is pretty much automatic, when it does work


--------------------
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd May 2013 - 12:03 AM