Jump to content
Sign in to follow this  
icebreakr

RealDuper - duplicate object removal tool for A3

Recommended Posts

Arma 3 script / tool that removes objects that share the same coordinates (3 decimal precision) no matter the scale or height.

 

Sometimes you have objects randomly scaled on the map and they share the same point which causes all sorts of issues, mainly bad FPS drops.

"Run object diagnostics" from Terrain Builder usually *does the trick*, but does not detect objects that have different size (scale) or height (even couple of centimeters). This is where this tool shines, it ignores height and scale and only looks for exact same x,y location of dupe objects and eliminates all but one instance.

 

Install/Use:

1. Create new folder P:\RealDuper

2. Export problematic layer from the TB to duper.txt and save it in the same folder

3. Run python realduper.py and file output.txt will be created with all the dupes that share the same coordinates x,y (up to 3 decimal precision) while completely ignoring scale and height of the object.

WARNING/NOTE: Be careful not to stack any walls or other objects on top of each other, use different layer name for 2nd, 3rd "floor" of objects as that is recommended anyway when you need to fix something later on.

4. Clear/delete old layer (make backup of course first) and import output.txt in the same empty layer to have cleaned up stuff ready.

5. Enjoy optimised Arma3 project 😉 

 

 

Download: https://github.com/IceBreakr-SBP/realduper

Script was kindly made for Arma3 Community by Origin/Wolk from our SBP Team
/salute IceBreakr

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×