Page 1 of 1
can't find crafting times in game data files
Posted: Sun May 28, 2017 2:59 pm
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?
Re: can't find crafting times in game data files
Posted: Sun May 28, 2017 3:59 pm
by Nexela
in the recipe prototype
energy_required
Re: can't find crafting times in game data files
Posted: Sat Jun 03, 2017 10:16 pm
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.
Re: can't find crafting times in game data files
Posted: Sun Jun 04, 2017 1:04 pm
by aober93
if no energy required is set, default is 0.5
Re: can't find crafting times in game data files
Posted: Sun Jun 04, 2017 3:41 pm
by PJ6
So many files to look through, would you know where defaults are stored?
Re: can't find crafting times in game data files
Posted: Mon Jun 05, 2017 9:22 am
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.