Help with making an oil powered generater

Place to get help with not working mods / modding interface.
Post Reply
User avatar
darkrising
Inserter
Inserter
Posts: 25
Joined: Sun May 04, 2014 7:32 pm
Contact:

Help with making an oil powered generater

Post by darkrising »

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?
Check out my gaming community, we hope to one day host Factorio servers! http://www.darkserver.co.uk
Also check out my mod: Alien Science https://forums.factorio.com/forum/vie ... =14&t=3373

User avatar
darkrising
Inserter
Inserter
Posts: 25
Joined: Sun May 04, 2014 7:32 pm
Contact:

Re: Help with making an oil powered generater

Post by darkrising »

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
Check out my gaming community, we hope to one day host Factorio servers! http://www.darkserver.co.uk
Also check out my mod: Alien Science https://forums.factorio.com/forum/vie ... =14&t=3373

User avatar
Dysoch
Filter Inserter
Filter Inserter
Posts: 445
Joined: Fri Oct 18, 2013 2:27 pm
Contact:

Re: Help with making an oil powered generater

Post by Dysoch »

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 :(
Creator of:
- DyTech
- DyWorld
- DyWorld-Dynamics
- DyWorld-Dynamics 2
Active since Factorio 0.6

User avatar
darkrising
Inserter
Inserter
Posts: 25
Joined: Sun May 04, 2014 7:32 pm
Contact:

Re: Help with making an oil powered generater

Post by darkrising »

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 :(
Ah okay, what about using 2 other liquids?
Check out my gaming community, we hope to one day host Factorio servers! http://www.darkserver.co.uk
Also check out my mod: Alien Science https://forums.factorio.com/forum/vie ... =14&t=3373

User avatar
SHiRKiT
Filter Inserter
Filter Inserter
Posts: 706
Joined: Mon Jul 14, 2014 11:52 pm
Contact:

Re: Help with making an oil powered generater

Post by SHiRKiT »

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 :(
Maybe you can use the control.lua to override this behaviour?

User avatar
ludsoe
Fast Inserter
Fast Inserter
Posts: 243
Joined: Tue Feb 11, 2014 8:16 am
Contact:

Re: Help with making an oil powered generater

Post by ludsoe »

SHiRKiT wrote:
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 :(
Maybe you can use the control.lua to override this behaviour?
No. We don't have any logic regarding liquids. (Unless we can use standard inventory functions on liquid boxs.)

Post Reply

Return to “Modding help”