Powerless inserter

Place to get help with not working mods / modding interface.
AntiElitz
Filter Inserter
Filter Inserter
Posts: 536
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

Powerless inserter

Post by AntiElitz »

I try to mod the inserter in a way that they work without energy or fuel. The idea is to make them work on outposts without power, so I tried

Code: Select all

data-updates.lua

for index, inserter in pairs(data.raw.inserter) do
   inserter.energy_per_movement = 000
   inserter.energy_per_rotation = 000
   inserter.energy_usage = "0kW"
   inserter.energy_source.drain = "0kW"
  end
The inserter has still to be connected to the network and shows the red flash icon after being connected. I seem not to have the right idea. Can you help me?
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Powerless inserter

Post by DaveMcW »

Try a burner inserter with very large starting power.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 393
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: Powerless inserter

Post by LuziferSenpai »

AntiElite wrote:I try to mod the inserter in a way that they work without energy or fuel. The idea is to make them work on outposts without power, so I tried

Code: Select all

data-updates.lua

for index, inserter in pairs(data.raw.inserter) do
   inserter.energy_per_movement = 000
   inserter.energy_per_rotation = 000
   inserter.energy_usage = "0kW"
   inserter.energy_source.drain = "0kW"
  end
The inserter has still to be connected to the network and shows the red flash icon after being connected. I seem not to have the right idea. Can you help me?
You can fill the energybar every second than you dont need to make it empty ;)
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1210
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: Powerless inserter

Post by Mooncat »

LuziferSenpai wrote:
AntiElite wrote:I try to mod the inserter in a way that they work without energy or fuel. The idea is to make them work on outposts without power, so I tried

Code: Select all

data-updates.lua

for index, inserter in pairs(data.raw.inserter) do
   inserter.energy_per_movement = 000
   inserter.energy_per_rotation = 000
   inserter.energy_usage = "0kW"
   inserter.energy_source.drain = "0kW"
  end
The inserter has still to be connected to the network and shows the red flash icon after being connected. I seem not to have the right idea. Can you help me?
You can fill the energybar every second than you dont need to make it empty ;)
Fuel energy + Script gives energy in every tick = entities in my Creative Mode :P
One drawback is that you will see the fuel bar when you open the entity's GUI.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 393
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: Powerless inserter

Post by LuziferSenpai »

Mooncat wrote:
LuziferSenpai wrote:
AntiElite wrote:I try to mod the inserter in a way that they work without energy or fuel. The idea is to make them work on outposts without power, so I tried

Code: Select all

data-updates.lua

for index, inserter in pairs(data.raw.inserter) do
   inserter.energy_per_movement = 000
   inserter.energy_per_rotation = 000
   inserter.energy_usage = "0kW"
   inserter.energy_source.drain = "0kW"
  end
The inserter has still to be connected to the network and shows the red flash icon after being connected. I seem not to have the right idea. Can you help me?
You can fill the energybar every second than you dont need to make it empty ;)
Fuel energy + Script gives energy in every tick = entities in my Creative Mode :P
One drawback is that you will see the fuel bar when you open the entity's GUI.
There was a MOD with a Combat Inserter that didnt use Power, do you know how? ^^
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1210
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: Powerless inserter

Post by Mooncat »

LuziferSenpai wrote:There was a MOD with a Combat Inserter that didnt use Power, do you know how? ^^
Which mod is it? If you have the mod, you can check it yourself by reading its prototype and script. :P
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 393
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: Powerless inserter

Post by LuziferSenpai »

Mooncat wrote:
LuziferSenpai wrote:There was a MOD with a Combat Inserter that didnt use Power, do you know how? ^^
Which mod is it? If you have the mod, you can check it yourself by reading its prototype and script. :P
I know, but i dont know which MOD ^^ But you can read my question in a other Thread and help me there :P
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Powerless inserter

Post by aubergine18 »

viewtopic.php?f=15&t=30538 <-- combat inserter
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
AntiElitz
Filter Inserter
Filter Inserter
Posts: 536
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

Re: Powerless inserter

Post by AntiElitz »

These are all workarounds im not really looking for, isn't there a possibility do make it like - energy_source.type = "none" - ?
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 393
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: Powerless inserter

Post by LuziferSenpai »

AntiElite wrote:These are all workarounds im not really looking for, isn't there a possibility do make it like - energy_source.type = "none" - ?
Nop, because if you nil it than i think the game will say you need it.

Only workarounds works.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Powerless inserter

Post by aubergine18 »

The game avoids most settings being set to 0 to prevent "divide by zero" errors (or the checks that would be needed to prevent them).
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Modding help”