• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Leusov

Recruit
13 Badges
May 12, 2016
1
0
  • Cities: Skylines
  • Cities: Skylines - Snowfall
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • BATTLETECH: Flashpoint
  • Stellaris
Last time I tryed mods for change mech salvage in Battletech, but want to make something different.

Why? If you structure damage all parts of the mech, take it outm then you'll salvage only 3 mech parts (more in RogueTech). But you'll get full parts, this is unfair because parts are already damaged and you need to repair it.

I look in json files and I have not found files what I can edit or rewrite to change "salvage parts" to "salvage percentage". I know, I know it will be much harder to debug this feature, but for now I don't know one thing: is it possible or not at all?

For example:
Locust with undamaged head and both legs will drop (8 (all parts) - 5 (destroyed parts))= 3 (full parts). 3 parts is a 37.5% * overall structure coefficient = you can salvage Locust destroyed up to 25-30%. salavage more Locusts same model up to 100 percent and rebuild it with event.
 
If a hypothetical mod changes specific numbers, it might be possible to change those numbers in the JSON files. Depends on whether or not HBS made the numbers configurable.

If a hypothetical mod changes an entire procedure, there's no way it's going to be in the JSON.

What you're talking about would definitely be a change to how salvage is calculated, so to do it you'd need to write the code yourself. Which is possible, but the mods using C# code require a whole level of expertise beyond what's needed for tweaking JSON numbers.

If you know how to program in C# and want to tackle it, search GitHub for "SalvageOperations" (by the BattletechModders group). Once you've figured out how to build that from the source code, you can start modifying it to drop salvage using your algorithm instead.