Page 1 of 1

Event request: on_crafting_completed

Posted: Sat Sep 19, 2015 6:42 am
by Degraine
I'm messing around with Klonan's Oil Steam Boiler mod, and there's a couple of ways to do what I want, but an on_crafting_completed event would be the simplest and have the most application outside of my specific problem.

Re: Event request: on_crafting_completed

Posted: Sat Sep 19, 2015 5:11 pm
by Rseding91
Does this not do what you're asking for? https://forums.factorio.com/wiki/inde ... afted_item

Re: Event request: on_crafting_completed

Posted: Sat Sep 19, 2015 9:47 pm
by Degraine
That actually explicitly does not, since the recipes I'm mucking around with are fluid recipes. Plus that only applies to the player himself and not assembling machines, doesn't it?

Re: Event request: on_crafting_completed

Posted: Sat Sep 19, 2015 9:49 pm
by ratchetfreak
so you want to have a function run each time a machine fills up the progress bar?

what do you need to do that can't that be done with the recipe itself?

Re: Event request: on_crafting_completed

Posted: Sat Sep 19, 2015 10:23 pm
by Degraine
Heating the fluid in the output fluidbox, since the temperature can't be configured in the recipe. This seems like a more general-purpose solution than asking for that.

Re: Event request: on_crafting_completed

Posted: Mon Sep 21, 2015 6:56 pm
by Rseding91
So really this should be "Allow recipes to define the fluid input and output temperature"?

Re: Event request: on_crafting_completed

Posted: Mon Sep 21, 2015 7:57 pm
by orzelek
Rseding91 wrote:So really this should be "Allow recipes to define the fluid input and output temperature"?
I would also include temperature in resource field itself and potentially as also required temperature for input on recipe.
This would make a lot of things that mods do with temperatures much easier.

Re: Event request: on_crafting_completed

Posted: Thu Sep 24, 2015 12:44 pm
by Degraine
Rseding91 wrote:So really this should be "Allow recipes to define the fluid input and output temperature"?
That would suffice for this particular problem, yes.

Re: Event request: on_crafting_completed

Posted: Wed Oct 04, 2017 1:50 am
by laku
Rseding91 wrote:So really this should be "Allow recipes to define the fluid input and output temperature"?
this would still be very nice
this seems to be implemented
http://lua-api.factorio.com/latest/Conc ... ml#Product

Re: Event request: on_crafting_completed

Posted: Wed Oct 04, 2017 2:39 am
by Rseding91
laku wrote:
Rseding91 wrote:So really this should be "Allow recipes to define the fluid input and output temperature"?
this would still be very nice
That has been supported since 0.13.0.

Re: Event request: on_crafting_completed

Posted: Wed Oct 04, 2017 2:46 am
by laku
Rseding91 wrote:
laku wrote:
Rseding91 wrote:So really this should be "Allow recipes to define the fluid input and output temperature"?
this would still be very nice
That has been supported since 0.13.0.
and this is not in the "Implemented mod requests"-subforum, because he originaly asked for something else?

Re: Event request: on_crafting_completed

Posted: Wed Oct 04, 2017 3:58 am
by Rseding91
laku wrote:and this is not in the "Implemented mod requests"-subforum, because he originaly asked for something else?
That or I did it at an unrelated time because it sounded useful or just forgot to move it.