Page 1 of 1
Document LuaSurface::create_entities_from_blueprint_string
Posted: Wed Apr 02, 2025 7:59 pm
by petrathekat
Title says it all really. In the tips&tricks simulations, there is a lot of use of game.surface[1].create_entities_from_blueprint_string("etc"), but it's not documented anywhere as far as I can tell.
Re: Document LuaSurface::create_entities_from_blueprint_string
Posted: Mon May 05, 2025 12:25 pm
by Therenas
It is indeed not documented, because it has some issues where it won't always work properly. It'll stay a non-public method for that reason, but you're free to use it at your own risk of course. Thanks for the report.
Re: Document LuaSurface::create_entities_from_blueprint_string
Posted: Tue May 06, 2025 6:32 am
by Therenas
Actually, it seems this method was fixed to work properly, so it'll be properly documented for the next release.