can't find crafting times in game data files

Post all other topics which do not belong to any other category.
PJ6
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Apr 07, 2016 2:07 am
Contact:

can't find crafting times in game data files

Post by PJ6 »

I'm thinking about making a factory layout designer as a standalone application.

Getting at the game data seems fairly straightforward, but I can't find recipe crafting times anywhere.

I expected them to be in recipe.lua, but they're not. Are they hidden?
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: can't find crafting times in game data files

Post by Nexela »

in the recipe prototype

energy_required
PJ6
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Apr 07, 2016 2:07 am
Contact:

Re: can't find crafting times in game data files

Post by PJ6 »

Thanks, that's what I was after. I was confused though, because some recipes don't have that property.

Guess I can derive what the defaults are for stuff that's missing.

Bleh why is all the data wrapped in function calls.
aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: can't find crafting times in game data files

Post by aober93 »

if no energy required is set, default is 0.5
PJ6
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Apr 07, 2016 2:07 am
Contact:

Re: can't find crafting times in game data files

Post by PJ6 »

So many files to look through, would you know where defaults are stored?
aober93
Filter Inserter
Filter Inserter
Posts: 453
Joined: Tue Aug 30, 2016 9:07 pm
Contact:

Re: can't find crafting times in game data files

Post by aober93 »

Nope, and im sure they are hardcoded defaults, so just take em.

This is simliar to result_count, which defaults to 1. Or some new values like "probability", "amount".
There are many other defaults in the game files , mostly due the difference in formatting over time. For example old recipes have no "normal" and "expensive" tag, while some new have them. The game defaults to the newer format, but has a fallback to the older.
Post Reply

Return to “General discussion”