Hello, I had this cool idea for a mod which is an oil powered generator. You can either pump heavy oil or convert petroleum to fuel and use that for better efficiency.
The problem is I have no idea where to start, I've been poking around for some reference material but have yet to find anything useful. (I have a basic mod structure and that's about it)
Can anyone point me in the right direction?
Help with making an oil powered generater
- darkrising
- Inserter
- Posts: 27
- Joined: Sun May 04, 2014 7:32 pm
- Contact:
- darkrising
- Inserter
- Posts: 27
- Joined: Sun May 04, 2014 7:32 pm
- Contact:
Re: Help with making an oil powered generater
Okay, so I've been digging about and I found the code for the steam engine entity.
I now have a shell of a mod going but my oil generator is not showing up in-game plus I don't know how to change it so it accepts oil instead of water.
Here's what I have so far: https://www.darkserver.co.uk/downloads/ ... _0.0.1.zip
I now have a shell of a mod going but my oil generator is not showing up in-game plus I don't know how to change it so it accepts oil instead of water.
Here's what I have so far: https://www.darkserver.co.uk/downloads/ ... _0.0.1.zip
Re: Help with making an oil powered generater
it is currently impossible to set an steam generator to use only 1 type of fluid. It can use every fluid that has an fuel value.
sorry to bring bad news
sorry to bring bad news

Creator of:
- DyTech
- DyWorld
- DyWorld-Dynamics
- DyWorld-Dynamics 2
Active since Factorio 0.6
- DyTech
- DyWorld
- DyWorld-Dynamics
- DyWorld-Dynamics 2
Active since Factorio 0.6
- darkrising
- Inserter
- Posts: 27
- Joined: Sun May 04, 2014 7:32 pm
- Contact:
Re: Help with making an oil powered generater
Ah okay, what about using 2 other liquids?Dysoch wrote:it is currently impossible to set an steam generator to use only 1 type of fluid. It can use every fluid that has an fuel value.
sorry to bring bad news
Re: Help with making an oil powered generater
Maybe you can use the control.lua to override this behaviour?Dysoch wrote:it is currently impossible to set an steam generator to use only 1 type of fluid. It can use every fluid that has an fuel value.
sorry to bring bad news
Re: Help with making an oil powered generater
No. We don't have any logic regarding liquids. (Unless we can use standard inventory functions on liquid boxs.)SHiRKiT wrote:Maybe you can use the control.lua to override this behaviour?Dysoch wrote:it is currently impossible to set an steam generator to use only 1 type of fluid. It can use every fluid that has an fuel value.
sorry to bring bad news