Page 1 of 1

Expose inserter rotation_speed and extension_speed

Posted: Tue Mar 26, 2019 7:44 am
by randomdude
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

Image

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

Re: Expose inserter rotation_speed and extension_speed

Posted: Tue Mar 26, 2019 10:29 am
by Bilka
Okay, added for the next version.