Castra Prime


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

Content
12 days ago
2.0
945
Factorio: Space Age Icon Space Age Mod
Planets Logistics Combat Armor Enemies Environment Mining

b Issue on load with 8.0

13 days ago

Will try to find which advanced-solar-panel this is but so far somehow the mod i had to disable to get this working is Mining Drones Remastered

Failed to load mods: Error while running setup for entity prototype "castra-enemy-solar-panel" (solar-panel): next_upgrade target (advanced-solar-panel) must have the same collision mask.

12 days ago

Hi SGador,

Thank you for bringing this to my attention. Good news/bad news here. Good news, I think I likely have a fix. If you are keen to try it manually, you can add this line:

e.next_upgrade = nil

at the end of the entity.lua file in this block:

for _, entry in ipairs(infrastructure_types) do
local entity = data.raw[entry.type][entry.name]
if entity then
local e = table.deepcopy(entity)
e.name = "castra-enemy-" .. entry.name
if e.minable then e.minable.result = nil end
e.is_military_target = true
--e.next_upgrade = nil
table.insert(enemy_infrastructure, e)
end
end

(The "--" is commenting out the line)

Bad news - I could not reproduce the bug. I tried installing "Mining Drones 2.0 Remastered 2.1.5" by AivanF. But I am not seeing any advanced solar panel. Ideally I would like to confirm the bug and fix before shipping a new version. Can you give me more information about what mods you are using? If you open up all your other mods with Castra disabled, you should be able to find this "advanced-solar-panel" and determine which mod it's coming from.

If you are unable to do this, I can push the current fix as v0.8.1, but I cannot absolutely promise it will fix your problem.

12 days ago
(updated 12 days ago)

Good news and bad news on my end as well,

Good News - I tried that code block direct as is as test ,as that line wasnt actually in 8.0 version of prototypes/entity.lua, without commenting out that specific line and it loaded fine.
Bad News - However the moment I added in the comment it actually broke.

As for mods with "advanced-solar-panel" and as a mistake on my end on why I disabled Mining mods because the full mod listed these as having an error with it so this is a screenshot of it "https://prnt.sc/wSLoa9m3hUA1" do note none of these have an "advanced-solar-panel" and this is also how I went with disabling "Mining Drones 2.0". However as good news i might have found the specific mod "https://mods.factorio.com/mod/Better-Energy-production?from=search" it was this another possibility was "Planetaris-Arig" however Arig specifically has it as "planetaris-advanced-solar-panel"

12 days ago

Unless I'm misunderstanding you, this is actually all good news. If the line is commented out (two dashes in front of it) it will NOT run. So when you put in the comment, it is expected that it would remove the fix.

For simplicity, I've pushed version 0.8.1 to the mod portal, which adds the fix in, not commented out. I recommend updating to 0.8.1. If you are still experiencing this issue with 0.8.1 (highly doubtful, but this is a "blind" fix), let me know and we'll work from there.

New response