project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding > Modding Tutorials
30 Oct 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 2020-04-04, 17:57   #1
Outlawz7
Retired PR Developer

Outlawz7's Avatar
Default Turn off OG lods without separate file

As more experienced mappers may know, in order for some vegitation like static fields to show up correctly ingame, the _lod model needs to be "turned off" by editing or removing the line "Object.isOvergrowth 1" that editor creates for each object.

The editor will readd that line every time you save, meaning the best course is to separate the objects into a separate file which editor will leave alone.
However, if you need to edit the placement of these objects, you'll need to add them back in or load them as staticobjects.con but have no reference to where other objects on the map are and so on.

There is another way which also has its ups and downs but I believe is more practical.

Requirements
First, load your map in editor, create a new layer (that doesn't save into any gamemodes or sizes) and place all objects that you want to turn off _lods for into that layer and save.

Next, run Notepad++, go Plugins>Plugins Admin and install ToolBucket plugin.





Open your map's staticobjects.con file in Notepad++, go Plugins>ToolBucket>Multiline find and replace.



Find an object in your new layer, copy the layer and isOvergrowth line, change 1 to 0, Replace All.



All objects in that layer are now isOvergrowth 0 and will not switch to _lod while any other overgrowth object in static objects that should switch, will remain so.

The downside is that editor will undo this when you again save static objects, so repeat this after each save or when you're done with editing static objects.

The upside is that you do not need to store those objects in a separate file and can work with those objects much easier as everything is in one file.

Outlawz7 is offline Reply With Quote
Reply


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 11:39.