Page 1 of 1

[kovarex] [1.1.0] Simulation create_entities_from_blueprint_string lacks modules

Posted: Tue Nov 24, 2020 4:13 pm
by PFQNiet
I'm messing around with modding the tips/tricks simulations, and I noticed that even though my blueprint includes modules, building that blueprint with:

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}
}
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.

Re: [kovarex] [1.1.0] Simulation create_entities_from_blueprint_string lacks modules

Posted: Sun Nov 29, 2020 9:01 pm
by kovarex
Thank you for the report, it is now fixed for the next release.