Add LuaEntityPrototype.crafting_speed read

Post Reply
User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 26, 2015 9:26 pm
Contact:

Add LuaEntityPrototype.crafting_speed read

Post by theRustyKnife »

This feels like a thing that just should be available. Actually, I was thinking why not just expose the entire prototype definition table as in data.raw when loading? Would it take too much memory or something?
Also a nice thing to have would be some way to get the current crafting speed of an assembler (after accounting for modules and stuff like that).

Thanks TRK

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

Re: Add LuaEntityPrototype.crafting_speed read

Post by Rseding91 »

Added entity prototype crafting_speed read for 0.15.

The reason the entire prototype table isn't exposed is because we dump it after loading and during/after loading we do additional processing making the input data wrong or lacking in most cases.
If you want to get ahold of me I'm almost always on Discord.

User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 26, 2015 9:26 pm
Contact:

Re: Add LuaEntityPrototype.crafting_speed read

Post by theRustyKnife »

Ok, that makes sense.
What about the other suggestion? I know it would be possible to calculate that with crafting_speed being exposed, but since the game probably already does that (likely much faster than any mod would), it would be nice to have that too.
Anyway, thanks for listening to the modders' needs, I just hope I'm not too annoying with all the requests I've made recently :P

Post Reply

Return to “Implemented mod requests”