Castra Prime


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

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

b Forge Recipe Categories Issue

12 days ago

Hello. While testing compatibility between Planet DPS and Castra Prime, I found an issue where all recipes available in Planet DPS’s Armory building disappear.

I believe this happens because Castra Prime overwrites the entire categories field while modifying recipe categories for the Forge. To avoid compatibility issues with other mods, it should first check whether categories is nil, then insert the new category with table.insert. Planet DPS modifies recipe categories as follows:

if r.categories == nil then
r.categories = { "crafting", "dps-recipe-category_armory" }
else
table.insert(r.categories, "dps-recipe-category_armory")
end

It seems that Castra Prime’s code should be updated in the same way.

New response