LoadedTurrets


Turrets can be created to contain some ammo from the start.

Utilities
5 years ago
0.16
4
Owner:
CaveGrinder
Source:
N/A
Homepage:
N/A
License:
The Unlicense (Public Domain)
Created:
5 years ago
Latest Version:
0.1.1 (5 years ago)
Factorio version:
0.16
Downloaded by:
4 users

This mod is an alternative to autofill mods that allows to craft turrets that already contain some ammo.
Because if a turret fits into your pockets, and a stack of ammo fits into a turret, that should be fine too.
What it does is:
it adds new craftable items: 1 turret + some ammo = 1 filled turret.
when the filled turret is then placed, it acts as a normal turret but gets some ammo inserted.

compared to other autofill mods:
no ambiguity: you get exactly that filled that you craft with and can prepare in advance
when you pick the turret back up, ammo and turret are separated so you need to combine them again; typically after combat.
supports fluid turrets (flamethrower turret) too, with fluids of your choice. You can fill them with fluid crafting in your base or refill them on the run with barrels. (like other fluid buildings you loose fluids on pick up)
(Also artillery support; although i recommend using a mod that increases artillery shell stack size; otherwise it only gets 1 shot)
doesn't mess with other stuff: no car/train/furnace/... logic

the amount that is added into a turret depends on the automated_ammo_count value, which for normal turrets is 10. (bobs higher tier turrets have bigger values).
Artillery turrets are filled like this too. (but the stack size is 1 therefore only 1 is used. bobs other shells stack higher).
Fluid turrets have 2 * activation_buffer_ratio * fluid_buffer_size, which ends up as 1 barrel=50 fluid by default.

modded items should work. tested with bobs and yuoki mods, but the code is generic and can work for other mods too.
i don't recommend running it with another autofill mod; stuff could break.
No research is added, the loading recipes are unlocked when the turrets are unlocked.

I consider the mod pretty much finished and have no further plans (but will fix bugs if you find any of course).
If it looks abandoned at any point: you already have permission to port it or do whatever you want