PDA

View Full Version : Mapping Converting a map's overgrowth to static objects


Outlawz7
2018-04-28, 12:26
Rhino's 3ds Max lightmapping tutorial (https://www.realitymod.com/forum/showthread.php?t=134649) describes a way to convert overgrowth to static by lightmapping an object so editor temporarily converts overgrowth to static and then selecting everything on map via screen selection which is a lengthy, frustrating process that can be undone by accidentally deselecting or a classic editor crash due to performance.

Fortunately there is a faster way to do this.

For this you obviously need editor and a map which has overgrowth set up that you want converted.

1. Backup

Backup the following files in map's folder:

editor/gameplayobjects.con
editor/layer.con
ambientobjects.con
staticobjects.con
Gamemodes folder


These will get changed in the process or are simply in the way.

If your map doesn't have an AI folder with an ai.ai file in it, copy it from a map that does.

2. Run editor

Run editor, load your map.

Go to Tools>Add-in Manager and load Singleplayer Editor plugin if not loaded already.
https://i.imgur.com/oaGjXnm.jpg

Place a combat zone counter-clockwise with Used by Pathfinding enabled.
https://i.imgur.com/7Gxi3Va.jpg

Switch to Singleplayer Editor and click Generate Pathfinding.
https://i.imgur.com/pOeNevw.jpg

This action will create a GTSData folder in your map (this is used for creating AI support for your map, but not doing that here) and more importantly, in the process it'll convert your overgrowth to statics.

Switch to Level editor and save and you should now have a new staticobjects.con with all your overgrowth in it.
Saving in Level editor will write/overwrite GPO and statics, that's why we backed them up.

You can now change or remove your overgrowth.

You can combine this new staticobjects.con with old one or load it separately or rename etc.