Sea Power

Sea Power

Not enough ratings
Strong Battleship Armor
   
Award
Favorite
Favorited
Unfavorite
Object Type: Battleship
Tags: Iowa, Armor
File Size
Posted
2.057 MB
Jan 2 @ 10:55pm
1 Change Note ( view )

Subscribe to download
Strong Battleship Armor

Description
Changes armor penetration table and munition penetration values so that Iowa can now tank dozens of Shipwrecks or other ASMs. In my test, it has survived 34 Shipwrecks and 5 S300F's. It was very close to being destroyed due to fire and secondary damages, but got repaired to 30% hull integrity and 2% flooding eventually. Torpedo effectiveness has not been changed. Integrates the "Pretty Gunnery" mod from rgreat (thank you!).

This mod is not compatible with mods which changes the ammunition folder, but you can make your own changes as described below:

Step 1: change all non-torpedo weapon with `Penetration=Always` to `Penetration=Heavy`. You can use the python script below and replace the <Dir to Sea Power> with your own directory.

```
import os

directory_path = r"<Dir to Sea Power>\Sea Power_Data\StreamingAssets\original\ammunition"

for filename in os.listdir(directory_path):
if filename.endswith(".ini"):
file_path = os.path.join(directory_path, filename)

with open(file_path, "r") as file:
lines = file.readlines()

has_torpedo = any("Type=Torpedo" in line for line in lines)
if not has_torpedo:
modified_lines = [line.replace("Penetration=Always", "Penetration=Heavy") for line in lines]

with open(file_path, "w") as file:
file.writelines(modified_lines)
```

Step 2: Change the armor penetration table, which is located in:

<Dir to Sea Power>\Sea Power_Data\StreamingAssets\original\ammunition\damage.ini

Change the `PenetrationVsArmorMatrix` to:
```
[PenetrationVsArmorMatrix]
#Format: ArmorValue=minMinorPen,MaxMinorPen|minModeratePen,MaxModeratePen|minHeavyPen,MaxHeavyPenn|minAlwaysPen,MaxAlwaysPen
#Armor values:
None=1.0|1.0|1.0|1.0
Minor=0.5,0.75|0.85,1.0|0.9,1.0|0.95,1.0
Moderate=0.1,0.25|0.5,0.75|0.85,1.0|0.9,1.0
Heavy=0.0,0.0|0.0,0.0|0.0,0.03|0.8,1
```
1 Comments
TaterTot1-1 Jan 9 @ 2:27pm 
I have several mods that add things to the ammunition folder so I tried the python script but I can't get it to work. I also have no idea how to get it to work. Any help would be appreciated.