Castra Prime


Fork of Castra, military planet, to fix balance issues.

Content
9 days ago
2.0
3.29K
Factorio: Space Age Icon Space Age Mod
Planets Logistics Combat Armor Enemies Environment Mining

b Issue with 8.1

10 days ago

1632.453 Error MainLoop.cpp:1468: Exception at tick 25682374: The mod ○🌐Castra Prime (0.8.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event castra-prime::on_tick (ID 0)
castra-prime/control.lua:548: attempt to index local 'robot' (a nil value)
stack traceback:
castra-prime/control.lua:548: in function 'update_combat_roboports'
castra-prime/control.lua:886: in function <castra-prime/control.lua:883>

10 days ago
(updated 10 days ago)

Happened during what looks to be replacing a destroyed Combat Roboport while in heavy combat

10 days ago

Did this happen once and you were able to reload and get around it, or does it happen every time? In either case, I'm on it, investigating.

10 days ago

OK, I'm pretty sure I have a fix for this, but the underlying cause is unclear. The fix (null check) will unfortunately have the effect of creating a "silent failure". In other words, combat robots just won't spawn. This is better than crashing the game obviously, and if this is a "1 in a million" circumstance then that's probably OK.

Can you provide any more info about your save & circumstances? A comprehensive list of mods would be great, but in particular I am curious if you have any mods that either:

  1. Add new quality tiers or mess with quality in some way
  2. Add new types of combat robots
9 days ago

Did this happen once and you were able to reload and get around it, or does it happen every time? In either case, I'm on it, investigating.

Was able to load the nearest autosave and it happens right around the same time it initially did. Had to clear out enemies around the roboports to get past it

9 days ago

Can you provide any more info about your save & circumstances? A comprehensive list of mods would be great, but in particular I am curious if you have any mods that either:
Very large scale modded save with multiple planets and trying to keep to a theme of atleast most of them being some soft of combat oriented planet if not modded combat into them.
1. Add new quality tiers or mess with quality in some way
Ones that affect quality and effects on thos yes.
2. Add new types of combat robots
Tesla Destroyers and a Flame throwerbot(from Apia-Carnova) although i havent even dared try to use those in the Combat roboport

9 days ago

OK. I highly suspect that the mod or mods messing with quality are the indirect cause. The combat roboport has some custom scaling based on quality and if the quality system itself is changed, that could definitely cause unexpected issues. I'm going to go ahead and push 0.8.2 out as a new version. I'd really appreciate if you could load up that same save and confirm the fix, though from a coding perspective the fix is really simple. Again, the behavior may just be "don't spawn anything if this check fails" but that's better than a crash.

New response