Laser Tanks

by OwnlyMe

Vehicle Laser weapons, Electric Car, Tank & Train.

Content
8 days ago
0.16 - 2.0
808
Combat

b Crashing on startup

4 years ago

Hi, the problem are the first lines in the file "charger.lua".
If you want fix it yourself, you have to remove a few lines.

Original code:
if string.sub(mods["base"],1,4) == "0.18" then
--0.17
sp = {
"automation-science-pack",
"logistic-science-pack",
"chemical-science-pack",
"military-science-pack",
"production-science-pack",
"utility-science-pack"
}
else
--0.16
sp = { "science-pack-1",
"science-pack-2",
"science-pack-3",
"military-science-pack",
"production-science-pack",
"high-tech-science-pack"
}
flags_main = {"goes-to-main-inventory"}
flags_quickbar = {"goes-to-quickbar"}
end

Fixed code:
sp = {
"automation-science-pack",
"logistic-science-pack",
"chemical-science-pack",
"military-science-pack",
"production-science-pack",
"utility-science-pack"
}

4 years ago

Don't know how to do that at all. Also i uninstalled the mod so i can wait.

4 years ago
(updated 4 years ago)

replace
if string.sub(mods["base"],1,4) == "0.18" then
with
if not string.sub(mods["base"],1,4) == "0.16" then

unfortunately that's all i can do for you.. sorry

New response