Jump to content
Alonzo

Durability update script

Recommended Posts

Here is a script to update a Mission file to the latest 3.012 durability values provided by @BlackSix. I provide no warranty. BACK UP YOUR MISSION BEFORE USING THIS. I've tested it and the mission loads fine after processing, but again, I make no guarantees. User beware. 

 

This is a Perl script. If you don't have Perl, you can get Strawberry Perl which runs nicely on Windows. Make a command window, change to the directory with the script and your .Mission file then run "perl update-durability.pl MyMission.Mission". BACK UP YOUR MISSION FIRST.

 

This will update EVERY and ALL block to the durability value in the Perl script. If you want to vary your durabilities based on block location, you will need to edit the mission after the script has run. If you don't like the default values, you can edit the script. For example, I think 50,000 is a bit high for industrial objects, so I edit that down to 30,000.

 

NO WARRANTY. USE AT YOUR OWN RISK. MAKE A BACKUP FIRST.

 

 

 

 

update-durability.zip

  • Upvote 1

Share this post


Link to post
Share on other sites

@LLv34_Temuri found an issue with the script not updating models with a name including a hyphen, such as static_sdkfz251-1c.mgm

 

I've fixed the script, here's an updated version. Thanks Temuri!

 

update-durability.zip

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...