I have combed a bit and didn't see this already asked, so:
Could those 2 parameters be exposed to the the entity prototype. I'm not that familiar with the mod api, so maybe there is already a easy way to get them, but as i see it, they are in data.raw.inserter prototypes, just not in the in-game ones.
Use case: In bob mods, some configurations can make or break the speed of an inserter (mainly by making extension > 0).
I got a little command that prints the parameters for the selected inserter, allowing to improve the configuration
Everything in the image is either already exposed, or can be calculated by other means, except the rotation_speed and extension_speed, which I had to hardcode in the script for each type.
It's not that big of a deal, but inserters changed for some of the mods i use (Seablock pack) and as I was updating the values, I wondered if there was any reason this couldn't be exposed somehow
Thanks
Expose inserter rotation_speed and extension_speed
-
- Inserter
- Posts: 43
- Joined: Mon Mar 12, 2018 9:01 am
- Contact:
Re: Expose inserter rotation_speed and extension_speed
Okay, added for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.