Early logistics system

by ptx0

Removes the Utility science pack requirement from Logistics research, allowing access to it earlier in the game

6 months ago
1.1
2.61K

g [Responded] Update for SE 0.6

1 year, 6 months ago

Remove utility and space science pack.

1 year, 6 months ago

provide a patch

1 year, 6 months ago
(updated 1 year, 6 months ago)

quick and dirty patch
doesn't crash :)

local function removePacks(name)
local tech = data.raw.technology[name]
if not tech then
print(name .. ' does not exist')
return
end

for i, item in pairs(tech.unit.ingredients) do
    if item[1] == 'utility-science-pack' then
        table.remove(tech.unit.ingredients, i)
    end
    if item[1] == 'production-science-pack' then
        table.remove(tech.unit.ingredients, i)
    end
    if item[1] == 'space-science-pack' then
        table.remove(tech.unit.ingredients, i)
    end
end

if tech.prerequisites then
    for i, prereq in pairs(tech.prerequisites) do
        if prereq == 'utility-science-pack' then
            tech.prerequisites[i] = 'chemical-science-pack'
        end
        if prereq == 'production-science-pack' then
            tech.prerequisites[i] = 'chemical-science-pack'
        end
        if prereq == 'space-science-pack' then
            tech.prerequisites[i] = 'chemical-science-pack'
        end
    end
end

end

removePacks('logistic-robotics')
removePacks('logistic-system')

1 year, 6 months ago
(updated 1 year, 6 months ago)

thanks buddy, i didn't expect you to actually do it. that's great. that'll make it a lot quicker for me to integrate a fix. I promise I will get to it soon, but I have a real-life project with deadlines I don't control first.

1 year, 6 months ago

im not a dev but i can read and small fix

1 year, 6 months ago
(updated 1 year, 6 months ago)

the proper update is on github. i dirty patched my game i don't care how long it take to update the mod.

1 year, 6 months ago

I didn't forget this yet, but real life still getting in the way.

1 year, 5 months ago

Wanted to say thanks for the dirty edit. I patched my game as well. I've always thought the split logistics research was annoying. Thanks for this!!!!

New response