Electric Locomotives


Adds multiple tiers of electric locomotives

Content
2 days ago
2.0 - 2.1
713
Trains

g Nulius

6 days ago

Hi, the Nulius mod doesn't recognize electric locomotives. Maybe something needs to be fixed?

2 days ago

Most likely, nullius changes the tech tree and either some precondition is missing. I opened that pandora's box once to try to follow all the different mods (nullius, space exploration, bob to just name a few) and I don't plan to do it again.

2 days ago

BTW, this is the assessment needed for Nullius support. The "Does only support 2.0 is a dealbreaker as I have no plans to do any work on 2.0 compatible mods besides crash bugfixes

Nullius compatibility changes

## Summary

This is primarily a data-stage compatibility problem, not a runtime problem. Nullius replaces vanilla recipes and technologies and deliberately hides content that has not opted into Nullius compatibility. Its official guidance confirms that compatible mods must supply Nullius recipes, research, categories,
prerequisites, and nullius- ordering markers. Nullius compatibility FAQ (https://mods.factorio.com/mod/nullius/faq)

## Required changes

  • Resolve the version mismatch first: this mod declares Factorio 2.1 in info.json:8, while currently published Nullius targets Factorio 2.0. They cannot load together until one has a build for the other’s Factorio version.
  • Add (?) nullius as an optional dependency. This guarantees Nullius prototypes exist before Electric Locomotives creates its prototypes.
  • Add a conditional mods["nullius"] data-stage path.
  • Base the three electric locomotive tiers on nullius-locomotive-1, nullius-locomotive-2, and nullius-locomotive-3, rather than cloning and scaling vanilla locomotive. Derive each tier’s power consumption from its corresponding Nullius locomotive instead of the vanilla 600 kW constant.
  • Replace every vanilla ingredient in prototypes/recipe.lua:10 with reachable Nullius components. Suitable families include Nullius locomotives, motors, transformers, batteries, capacitors, sensors, steel products, and insulated wire.
  • Give recipes appropriate Nullius machine categories such as large-crafting or huge-crafting; recipes currently have no category and therefore assume vanilla crafting.
  • Rebuild the technologies in prototypes/technology.lua:9 around Nullius prerequisites such as nullius-freight-transportation-*, energy distribution, and battery storage.
  • Replace vanilla science packs with Nullius packs: climatology/mechanical for early tiers, electrical and chemical for intermediate tiers, and physics for the late tiers.
  • Give every exposed Electric Locomotives item, recipe, technology, and rolling-stock entity an order beginning with nullius-. Otherwise Nullius’s compatibility filter hides and disables it.
  • Put locomotives in Nullius’s train-wagon subgroup and the control stations/current collector in an appropriate Nullius railway or electrical subgroup.
  • Explicitly suppress this mod’s upgraded cargo/fluid wagons under Nullius. Nullius already supplies three balanced wagon tiers, and its required Bob’s Logistics configuration currently suppresses them only as an accidental side effect.
  • Disable or redesign “Unlock max speed for all wagons” under Nullius. The current logic compares everything with the hidden vanilla locomotive and would flatten parts of Nullius’s carefully tiered train progression.

New response