Event request: on_crafting_completed

Post Reply
Degraine
Filter Inserter
Filter Inserter
Posts: 281
Joined: Wed Aug 13, 2014 10:49 am
Contact:

Event request: on_crafting_completed

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Event request: on_crafting_completed

Post by Rseding91 »

Does this not do what you're asking for? https://forums.factorio.com/wiki/inde ... afted_item
If you want to get ahold of me I'm almost always on Discord.

Degraine
Filter Inserter
Filter Inserter
Posts: 281
Joined: Wed Aug 13, 2014 10:49 am
Contact:

Re: Event request: on_crafting_completed

Post 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?

ratchetfreak
Filter Inserter
Filter Inserter
Posts: 952
Joined: Sat May 23, 2015 12:10 pm
Contact:

Re: Event request: on_crafting_completed

Post 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?

Degraine
Filter Inserter
Filter Inserter
Posts: 281
Joined: Wed Aug 13, 2014 10:49 am
Contact:

Re: Event request: on_crafting_completed

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Event request: on_crafting_completed

Post by Rseding91 »

So really this should be "Allow recipes to define the fluid input and output temperature"?
If you want to get ahold of me I'm almost always on Discord.

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Event request: on_crafting_completed

Post 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.

Degraine
Filter Inserter
Filter Inserter
Posts: 281
Joined: Wed Aug 13, 2014 10:49 am
Contact:

Re: Event request: on_crafting_completed

Post 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.

laku
Inserter
Inserter
Posts: 47
Joined: Tue Apr 04, 2017 5:17 am
Contact:

Re: Event request: on_crafting_completed

Post 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
Last edited by laku on Wed Oct 04, 2017 2:45 am, edited 1 time in total.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Event request: on_crafting_completed

Post 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.
If you want to get ahold of me I'm almost always on Discord.

laku
Inserter
Inserter
Posts: 47
Joined: Tue Apr 04, 2017 5:17 am
Contact:

Re: Event request: on_crafting_completed

Post 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?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Event request: on_crafting_completed

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”