Laser Tanks

by OwnlyMe

Vehicle Laser weapons, Electric Car, Tank & Train.

2 years ago
0.16 - 0.18
14286

b Crashing on startup

1 year, 10 months ago
1 year, 10 months 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"
}

1 year, 10 months ago

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

1 year, 10 months ago
(updated 1 year, 10 months 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