Planet Castra

by Bartz24

Adds a new militaristic planet to the game. Claim the defended post-apocalyptic planet and use its resources to build a new base. The enemy awakens and starts improving their technologies once they sense your presence.

Content
1 year, 1 month ago
2.0
37.5K
Factorio: Space Age Icon Space Age Mod
Combat Enemies Environment Manufacturing

g Casta causing indefinite freeze

1 year, 25 days ago

I believe the freeze is related to either Casta’s enemy AI researching modded technologies or interactions with jammer radars.

The freeze happens at the exact same game time every time.

I tested disabling only normal radars (since jammer radars are needed to even play Casta), disabling radar scanning, and manually removing visible radars — the freeze still happened.

However, when using a command to delete all radars, including jammer radars, the freezing stopped.

Fully removing the Casta mod also fixes the problem permanently.

This happened hours after finishing Casta and moving to a different planet, which made it pretty frustrating — if it had happened early on, I would have just removed the mod straight away.

Right now, the only fix I can think of is disabling Casta’s enemy AI entirely, removing all jammer radars and modding myself in another way to get battlefield data — but that kind of removes the whole point of the mod.

11 months ago
(updated 11 months ago)

Just experienced the same freeze, after using the trial and error method I figured out that is was Castra causing it sadly

10 months ago

zuluko figured it out, remove all your artillery, the freeze happens when all the enemy bases are destroyed without them being able to build another.

7 months ago

I just wasted multiple hours on this. Disabled /enabled mods 1 by 1 and eventually found out that Castra was the culprit. Thanks to Jimbob's comment, I was able to rescue my 1400h save file from being totally bricked.

7 months ago
(updated 6 months ago)

The issue can be found in on_tick_update_data_collectors, in this loop:

        while not collector or not collector.valid do
            collector = storage.castra.dataCollectors[math.random(1, #storage.castra.dataCollectors)]
        end

If the list of collectors is not empty, but all collectors are not valid this will keep trying forever.

A possible fix is to replace that with this:

        local triesLeft = 5
        local collector = nil
        while not collector or not collector.valid do
            collector = storage.castra.dataCollectors[math.random(1, #storage.castra.dataCollectors)]
            triesLeft = triesLeft - 1
            if triesLeft <= 0 then
                return
            end
        end
7 months ago

I just encountered this too, it would be nice to get a fix for it

New response