Infinite Braking Force Research

by Cousax

Infinite train Braking Force science research, compatible with mods that also affect locomotive research. - Stronger rails not included lol -

Tweaks
2 months ago
2.0
273
Transportation Trains Cheats
Owner:
Cousax
Source:
N/A
Homepage:
N/A
License:
Mozilla Public License 2.0
Created:
2 months ago
Latest Version:
1.0.0 (2 months ago)
Factorio version:
2.0
Downloaded by:
273 users

Info

This Mod uses code to dynamically build an Infinite Tier based on the last one in your Research Tree, automatically making it compatible with other Train Mods that also affect Train Research. This is to keep your game's balance as intact as possible.

What does get changed?

  • The last tier becomes infinitely researchable by use of the max_level = "infinite" property provided by the Base Game.
  • The Infinite tier's Research Cost formula is linear and based on the prior's level number akin to vanilla. (Due to some Mods implementing wonky ways to determine their cost per tier instead of using the provided count_formula property, it was not feasible to use their costs in a consistent and reliable manner)

Note

I've included a check before everything, so nothing is changed if another Mod also makes the last tier Infinite, to prevent a crash in case another of your Mod's updates adds it. (Some of the error messages are a tad cryptic, so I want to save you the hassle)