Document LuaSurface::create_entities_from_blueprint_string

petrathekat
Inserter
Inserter
Posts: 21
Joined: Fri Apr 19, 2024 7:12 pm
Contact:

Document LuaSurface::create_entities_from_blueprint_string

Post 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.
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 301
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Document LuaSurface::create_entities_from_blueprint_string

Post 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.
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 301
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Document LuaSurface::create_entities_from_blueprint_string

Post by Therenas »

Actually, it seems this method was fixed to work properly, so it'll be properly documented for the next release.
Post Reply

Return to “Resolved Requests”