project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding > Modding Tutorials
20 Sep 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
Modding Tutorials Information and tutorials related to modding BF2.

Reply
 
Thread Tools Display Modes
Old 2018-04-28, 12:26   #1
Outlawz7
Retired PR Developer

Outlawz7's Avatar
Default Converting a map's overgrowth to static objects

Rhino's 3ds Max lightmapping tutorial 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.


Place a combat zone counter-clockwise with Used by Pathfinding enabled.


Switch to Singleplayer Editor and click Generate Pathfinding.


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.

Outlawz7 is offline
Last edited by Outlawz7; 2019-03-31 at 10:35..
Reply With Quote
Old 2021-09-25, 16:49   #2
Gatto
Default Re: Converting a map's overgrowth to static objects

That's incredibly helpful, thanks.

I was having trouble lightmapping my overgrowth. The statics lightmapped perfectly.
I had no combat zone on my map (don't use them because it's a sp only mod).
Using your method I've converted overgrowth to statics and am re-lightmapping.
Gatto is offline Reply With Quote
Reply


Tags
converting, map, objects, overgrowth, static

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 08:48.