[kovarex] [1.1.0] Simulation create_entities_from_blueprint_string lacks modules
Posted: Tue Nov 24, 2020 4:13 pm
I'm messing around with modding the tips/tricks simulations, and I noticed that even though my blueprint includes modules, building that blueprint with:
Does not put modules in the buildings. Of course it's a simple enough workaround to just add the modules separately, but it would be nice if the function actually did create the blueprint as specified.
Code: Select all
game.surfaces[1].create_entities_from_blueprint_string{
string = "0eJx9kNFqwzAMRf/lPtuQNHSjfuxvjFGcRHQCWzGRUxpC/n12Osae9iKwpHPvlTf0YaE0s2S4DTxMonAfG5Tv4kPt5TURHDhThIH4WF9elWIfWO42+uGLhewJuwHLSE+4dv80IMmcmV56/3EGadKyOkn1K3hjsJZa9EaeaXhNmh/F9SZL7GkuLuZIpZXSRDTaOI1LINvBnQpcUD6ya/Qh2OBjQg12nOL+XG7woFkPl/euac/dW3tuLwbB91T+ANffzX3/BvfuZdw=",
position = {0,0}
}