Crafting Machines

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
DutchJer
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Sat Feb 13, 2016 8:43 am

Crafting Machines

Post by DutchJer »

Hi,

I've been looking for a way to find all the machines that can craft items together with their properties. I have been searching through the api, but I couldnt find a way to read that. So I would like this, with this it would make it a lot easier to create a ratio website for each mod, just by doing 2 commands and uploading 2 files. (recipes & machines). So what I hope that can be done is adding this to the api. I would like to know the recipe-types it can craft, craft speed, moduleslots, amount of components it can craft.

that would make me a lot happier, and probably a lot of other players too :D

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Crafting Machines

Post by aubergine18 »

Why don't you just scan through data.raw via a data-final-fixes.lua? This way you have full access to all prototypes (although some mods might still change them if their data-final-fixes.lua runs after yours) and can still use the `log()` and `serpent()` global functions to output the data you need to the log file.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

DutchJer
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Sat Feb 13, 2016 8:43 am

Re: Crafting Machines

Post by DutchJer »

can you access the data.raw through the console?

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Crafting Machines

Post by aubergine18 »

Why do you need to access via console? Just make a small mod that has a data-final-fixes and do what you want in there - eg. scanning the data.raw for info you need, then using log() and serpent() to output that infos to the log file from where you can copy/paste it or parse with external scripts.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

Post Reply

Return to “Modding interface requests”