Laser Tanks

by OwnlyMe

Vehicle Laser weapons, Electric Car, Tank & Train.

Content
4 years ago
0.16 - 0.18
49
Combat

b Crashing on startup

3 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"
}

3 years ago

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

3 years ago
(updated 3 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