Yet another custom boiler

Place to get help with not working mods / modding interface.
jmdejoanelli
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Aug 07, 2016 9:58 pm
Contact:

Yet another custom boiler

Post by jmdejoanelli »

Hi all,

This is my first post on the forum. I looked through other posts but couldn't find exactly what I needed.

I'm creating yet another energy creation mod, with a few very simple additions to vanilla Factorio. One particular building I need to create is similar to a boiler and a chemical plant. The building will take two solid input materials and a single 15 degree water input, and will output a single solid material and hot water at 100 degrees. It takes Thorium plate, Fluoride salt and water and produces Plutonium pellets and hot water, so maybe you can guess what the mod does ;)

So far I have just copied the chemical plant prototype from the base model and modified that to use my special recipe, which works fine. The problem is I don't understand how water temperature is changed. I figure I just need to take whatever makes a boiler a boiler and add that to my custom chemical plant.

I've looked at the base boiler code as well as a few mods out there that do custom boilers and it looks like the action is in control.lua, like in the oil boiler mod for example. I don't really understand what is going on here though. Could someone break down the things that need to happen to change a liquids temperature? I would like it to be simply x units of cold water go in and x units of hot water comes out.

Thanks in advance!

Josef
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Yet another custom boiler

Post by Adil »

Boiler won't fit here, you cannot just grab 'whatever makes water hot in boiler' and plug it into entity of another type, 'assembling-machine' in the case of chem plant.
There's mod that has (used to have) the behavior you want to create.
viewtopic.php?f=63&t=18280&hilit=mopower
Check how it does that. I believe that is done in recipe.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Post Reply

Return to “Modding help”