Castra Prime


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

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

b [Resolved] Broken Compatibility Mod

9 days ago
(updated 9 days ago)

v0.9.3 broke the Castra Krastorio Compatibility+ mod, i have the Razi Protocol downloaded and my save was unable to be loaded after updating a bunch of mods with error,

The mod Castra Krastorio Compatibility+ (1.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event castra-krastorio-compatibility-plus::on_configuration_changed
Error when running interface function castra-prime.set_enemy_ammo_types: __castra-prime__/castra-cache.lua:25: attempt to call global 'containsValue' (a nil value)
stack traceback:
    __castra-prime__/castra-cache.lua:25: in function 'update_item_cache'
    __castra-prime__/castra-cache.lua:182: in function 'update_castra_enemy_data'
    __castra-prime__/control.lua:16: in function <__castra-prime__/control.lua:6>
stack traceback:
    [C]: in function 'call'
    __castra-krastorio-compatibility-plus__/control.lua:4: in function <__castra-krastorio-compatibility-plus__/control.lua:2>

downgrading this mod to v0.9.2 fixes the issue

also responded in the thread on the Compatibility+ mod as well
https://mods.factorio.com/mod/castra-krastorio-compatibility-plus/discussion/6acd28a88377848f793981c1

9 days ago

OK, this is on me for merging a bad PR. Will update and push a fix today.

9 days ago

I believe 0.9.4 should fix this issue - please try it and let me know. If it doesn't fix the problem I will revert the original PR in order to fix this.

9 days ago

Ah yeah it was my bad; I forgot to check that containsValue is actually defined outside of recipe-updates.lua. I think the latest fix should probably do it.

9 days ago

can confirm 0.9.4 fixed it for me, thank you!

New response