Page 1 of 1

Surface create_entity fast_replace simulation

Posted: Wed May 31, 2017 9:44 pm
by rtssmkn
It would be nice to have an additional parameter on Surface.create_entity that works in conjunction with fast_replace = true called no_item, which is also a boolean. When true, the fast replace will not yield an item, when false, which is the default, fast_replace will operate as normal.

The rationale behind this is that I am trying to speed up chest/container deconstruction in a mod and I need to preserve existing wirings and other stuff like filters and control logic conditions etc. The easiest and most efficient way to that will be to reuse the fast_replace mechanic already in place. This, however, will either drop an item onto the map or give the player an item, requiring me to add additional logic to the mod, whereas the simple parameter would free me from this terrible task of adding more logic to the mod :D

How about it?

Re: Surface create_entity fast_replace simulation

Posted: Wed May 31, 2017 9:57 pm
by StevilKnevil
Might be better to post this here: viewforum.php?f=28 as that's the place for API change requests :)

Re: Surface create_entity fast_replace simulation

Posted: Wed May 31, 2017 10:11 pm
by rtssmkn
Thanks for the hint, will do.

Re: Surface create_entity fast_replace simulation

Posted: Wed May 31, 2017 10:13 pm
by rtssmkn
Moved to viewtopic.php?f=28&t=49015

So this can be closed/deleted...