Ammo Loader+


More than just a turret loader. Auto load everything from turrets to artillery wagons to furnaces and even the player themselves. Auto upgrade ammo and fuel without tedious manual replacement. Infinite range and compatible with Factorissimo2.

Content
22 days ago
0.14 - 2.0
24.5K
Logistics

b Mod Loading Error

1 year, 8 months ago

Something weird happened when trying to load up a save from yesterday(I didn't update any mods since turning off the game) - the error that popped up thinks the inserter hand stack size bonus is at 5000 or something? I'm not sure...

https://cdn.discordapp.com/attachments/695972859742257192/1087446849104924793/image.png

1 year, 8 months ago

Turns out the 1.1.78 Factorio experimental update is what broke it - after I rolled back to 1.1.77, it fixed itself.

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

To get it working with 1.1.78

unzip the mod
edit the "ammo-loader_1.1.14\prototypes\entity.lua" file line 50
instead of:
stack_size_bonus = 5000,
make it:
stack_size_bonus = 255,
and you good to go.

1 year, 8 months ago

local names = require("prototypes/names")
data:extend{
{
type = "bool-setting",
name = "ammo_loader_enabled",
setting_type = "runtime-global",
default_value = true,
order = "Ammo[items]-a[bools]-a[enabled]"
}, {
type = "bool-setting",
name = "ammo_loader_draw_range",
setting_type = "runtime-per-user",
default_value = true,
order = "Ammo[items]-a[bools]-ab"
}, {
type = "string-setting",
name = "ammo_loader_debugging",
setting_type = "runtime-global",
default_value = "off",
allowed_values = {"off", "important", "debugging"},
order = "Ammo[items]-z[debugging]-c"
}, -- {
-- type = "bool-setting",
-- name = "ammo_loader_performance_mode",
-- setting_type = "runtime-global",
-- default_value = false,
-- order = "Ammo[items]-z[debugging]-b"
-- },
{
type = "bool-setting",
name = "ammo_loader_check_after_research",
setting_type = "runtime-global",
default_value = true,
order = "Ammo[items]-z[debugging]-a"
}, {
type = "bool-setting",
name = "ammo_loader_upgrade_ammo",
setting_type = "runtime-global",
default_value = true,
order = "Ammo[items]-a[bools]-ammo-ab"
}, {
type = "bool-setting",
name = "ammo_loader_return_items",
setting_type = "runtime-global",
default_value = true,
order = "Ammo[items]-a[bools]-ammo-a"
}, {
type = "bool-setting",
name = "ammo_loader_fill_artillery",
setting_type = "runtime-global",
default_value = true,
order = "Ammo[items]-a[bools]-ammo-b"
}, {
type = "bool-setting",
name = "ammo_loader_fill_burner_structures",
setting_type = "runtime-global",
default_value = true,
order = "Ammo[items]-a[bools]-fuel"
}, {
type = "bool-setting",
name = "ammo_loader_fill_locomotives",
setting_type = "runtime-global",
default_value = true,
order = "Ammo[items]-a[bools]-fuel"
}, {
type = "bool-setting",
name = names.settings.useCartridges,
setting_type = "startup",
default_value = false,
order = "Ammo[items]-a[bools]-b[2]"
}, {
type = "bool-setting",
name = names.settings.bypassResearch,
setting_type = "startup",
default_value = false,
order = "Ammo[items]-a[bools]-a[1]"
}, {
type = "double-setting",
name = "ammo_loader_chest_radius",
setting_type = "runtime-global",
default_value = 0,
minimum_value = 0,
maximum_value = 1000,
order = "Ammo[items]-b[ints]-a[prefs]"
}, -- {
-- type = "double-setting",
-- name = "ammo_loader_chest_radius_startup",
-- setting_type = "startup",
-- default_value = 0,
-- minimum_value = 0,
-- maximum_value = 1000,
-- order = "Ammo[items]-b[ints]-a[prefs]"
-- },
{
type = "int-setting",
name = names.settings.providedSlotsPerTick,
setting_type = "runtime-global",
default_value = 3,
minimum_value = 1,
maximum_value = 1000,
order = "Ammo[items]-b[ints]-c[prefs]"
}, -- {
-- type = "double-setting",
-- name = names.settings.slotsCheckBestPerTick,
-- setting_type = "runtime-global",
-- default_value = 20,
-- minimum_value = 1,
-- -- maximum_value = 1000,
-- order = "Ammo[items]-b[ints]-c[prefs]"
-- },
{
type = "int-setting",
name = names.settings.itemFillSize,
setting_type = "runtime-global",
default_value = 10,
minimum_value = 1,
maximum_value = 255,
order = "Ammo[items]-b[ints]-b[prefs]"
}, {
type = "int-setting",
name = names.settings.repairToolStackSize,
setting_type = "startup",
default_value = 0,
minimum_value = 0,
maximum_value = 255,
order = "Ammo[items]-b[ints]-b[prefs]"
}
}

i cant find stack_size_bonus in the settings.lua

1 year, 8 months ago

Oh.. I was mistaken in the filename:
ammo-loader_1.1.14\prototypes\entity.lua

1 year, 8 months ago

Works Perfect thank you very much!!

New response