Schall Tank Platoon


Adds different classes and tiers of tanks in-par with power armors, having vehicle equipment grid. Aims to fill the gaps the vanilla game should have. Not overhaul nor OP. Vanilla oriented and balanced. (Locale: English, Deutsch, 正體中文, 简体中文, Русский, Português Brasileiro, Español)

Content
7 days ago
0.16 - 2.0
38.7K
Transportation Combat

b [Solved] Error

29 days ago

Failed to load mods: SchallTankPlatoon/prototypes/gun.lua:75: attempt to index global 'item_sounds' (a nil value)
stack traceback:
SchallTankPlatoon/prototypes/gun.lua:75: in main chunk
[C]: in function 'require'
SchallTankPlatoon/data.lua:3: in main chunk

29 days ago

Having same issue.

29 days ago

Yep, same.

29 days ago

you need to put as first line "local item_sounds = require("base.prototypes.item_sounds")" in gun.lua, ammo.lua and "require("base.prototypes.item_sounds")" in data.lua to make this mod work

29 days ago

Ugh.

29 days ago

@Rozen Did not work.

29 days ago
(updated 29 days ago)

@Rozen Did not work.

It needs to be __base__, not just base. That double underscore turns the text bold in Markdown as used here.

gun.lua and ammo.lua: local item_sounds = require("__base__.prototypes.item_sounds")
data.lua: require("__base__.prototypes.item_sounds")

29 days ago

Hi guys,

After applying rozen's fix, I was still having trouble with half the mods loading. Also, rozen's fix needs to be applied to the lua files INSIDE THE MODS in the user\appdata folders, NOT the core game.

For the mods that still won't load (missile command, landmines..) you need to copypaste the require("base.prototypes.item_sounds") at the top of the files it's complaining about on load (gun.lua, ammo.lua, missile-interception.lua) so that the sounds load properly. that should fix it.

I had to restart the game maybe 10 times while I worked through all the broken files but it seems to work.

29 days ago

also my process was to unzip the mods in appdata\factorio\mods and then re-zip them using 7zip's zip with the store compression, and then after fixing the lua i rezipped them. any kind of zip utility should hopefully work though. hope that helps.

29 days ago

Thanks for reporting. Sorry for causing any inconvenience.
I was totally unaware of this problem, as it never pops up in my hundreds of game startups. (Perhaps the loaded 'item_sounds' will persist for some mod sets but not always?)
Anyway, I have added that line to every file involved, and uploaded as 2.0.1 in the six involved mods.
Please let me know if the problem still persists.

28 days ago

Thanks schall. I appreciate the work on all these mods, my whole player group considers them essential and pretty much won't play the game without them.

16 days ago

That is a warm compliment! :-)
So glad to hear that my mods can enhance your gaming experience, up to the level that you feel them being "essential".

When I try a casual start (without any mods) to get a feel of 2.0, I could a similar feeling like yours too. Like the vanilla train interface feels so inferior to my train management mod. I do not want to build more trains without that. Also, I missed my Light tank for early combat, which is agile and having autocannon that excels in smashing up small enemies.

I am almost complete (51 / 54 mods) in updating to 2.0! With that, I will formally start my 2.0 game, and fixing bugs on the go.

New response