Krastorio 2 & Maraxsis Compatibility Fix

by Korsys

Fixes a crash when loading Maraxsis with Krastorio 2 by pre-initializing effect_receiver for kr-quantum-computer.

Tweaks
4 hours ago
2.0
0
Planets Manufacturing
Owner:
Korsys
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
7 hours ago
Latest Version:
1.0.1 (4 hours ago)
Factorio version:
2.0
Downloaded by:
0 users

Krastorio 2 & Maraxsis Compatibility Fix

Fixes a startup crash during prototype loading when using Krastorio 2 (or Krastorio 2 Spaced Out) together with Maraxsis.

What this mod fixes

When loading Maraxsis alongside Krastorio 2, Maraxsis attempts to modify kr-quantum-computer's quality base effect in compat/krastorio-2.lua:132. Because Krastorio 2 creates the quantum computer entity without an explicit effect_receiver table, indexing effect_receiver results in a nil value error and crashes the game on startup.

This compatibility fix pre-initializes effect_receiver for kr-quantum-computer during the data stage, allowing Maraxsis to apply its quality changes safely.

Compatibility & Requirements

  • Factorio version: 2.0+
  • Compatible with: Krastorio 2, Krastorio2-spaced-out, Maraxsis