Page 1 of 1

Ammo Level Indicator

Posted: Wed Jan 29, 2020 12:43 am
by MrBadDragon
I want to make a mod which will display the number of mags in a turret as you wander by. This would allow you to quickly glance at your turrets and see how well stocked they were. I also want a UI option to allow you to set the "Alert" setting which would display an amber light when you are at or below that level (like the bottle neck mod does).

I've had a look at the modding instructions, and can see how I derive a new item from an existing one, but am not clear how i write the code to extend an item. I want to add a feature to the existing turrets.

Re: Ammo Level Indicator

Posted: Fri Apr 24, 2020 3:22 pm
by CheeseMcBurger
If turrets could be read by the circuit network, this would be a fun circuit to build. Too bad you cannot connect turrets to the circuit network.

Re: Ammo Level Indicator

Posted: Fri Apr 24, 2020 3:32 pm
by pleegwat
If you feed the turret from a chest, you could then use the circuit network to read the amount of ammo in the chest. Does mean there's an amount of ammo you're not seeing, and there's more ammo in the system.

Re: Ammo Level Indicator

Posted: Thu Apr 30, 2020 7:39 am
by darkfrei
MrBadDragon wrote:
Wed Jan 29, 2020 12:43 am
I want to make a mod which will display the number of mags in a turret as you wander by.
https://mods.factorio.com/mod/Inventory%20Sensor
https://mods.factorio.com/mod/SantasNixieTubeDisplay