Burner option for all buildings

Place to get help with not working mods / modding interface.
User avatar
Wakaba-chan
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon May 30, 2016 6:39 am
Contact:

Burner option for all buildings

Post by Wakaba-chan »

Hello,

Now I'm making mod that removes all the electricity from the game and make all structures working on fuel.
But when I make

Code: Select all

...energy_source =
	{
      type = "burner",
...
for
- Lamp
- Radar
- Small pump
- Roboport
that's does not work. I mean, no fuel slot appears. Is it possible this would be fixed in future releases or should I dig into Lua and do some completely new entities by myself?

p.s. I hope I post this question on correct forum, fix me if I did it wrong.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Burner option for all buildings

Post by daniel34 »

Moved from Frequently Suggested / Link Collections to Modding help.
quick links: log file | graphical issues | wiki
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Burner option for all buildings

Post by Arch666Angel »

Wakaba-chan wrote:Hello,

Now I'm making mod that removes all the electricity from the game and make all structures working on fuel.
But when I make

Code: Select all

...energy_source =
	{
      type = "burner",
...
for
- Lamp
- Radar
- Small pump
- Roboport
that's does not work. I mean, no fuel slot appears. Is it possible this would be fixed in future releases or should I dig into Lua and do some completely new entities by myself?

p.s. I hope I post this question on correct forum, fix me if I did it wrong.
You cannot define new entity types yourself, because they are hardcoded into the actual game logic. There are workaround with having two entities as one, where one acts as electricity producing burner entity and the other as a light giving lamp for example (there is a torch mod out there that does this).
User avatar
Wakaba-chan
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon May 30, 2016 6:39 am
Contact:

Re: Burner option for all buildings

Post by Wakaba-chan »

Arch666Angel wrote:
Wakaba-chan wrote:Hello,

Now I'm making mod that removes all the electricity from the game and make all structures working on fuel.
But when I make

Code: Select all

...energy_source =
	{
      type = "burner",
...
for
- Lamp
- Radar
- Small pump
- Roboport
that's does not work. I mean, no fuel slot appears. Is it possible this would be fixed in future releases or should I dig into Lua and do some completely new entities by myself?

p.s. I hope I post this question on correct forum, fix me if I did it wrong.
You cannot define new entity types yourself, because they are hardcoded into the actual game logic. There are workaround with having two entities as one, where one acts as electricity producing burner entity and the other as a light giving lamp for example (there is a torch mod out there that does this).
Well, I assumed something like this and that's why I wanted to ask for developers if it's possible that they will fix current entities? In which forum/thread could I ask this?
Post Reply

Return to “Modding help”