Convert sandbox scenario to freeplay
Posted: Mon Mar 26, 2018 10:29 pm
I have created a map. When I play it, it seems that I am in sandbox mode (there is no character, I can move around quickly, etc.). I have found the following command to change back to freeplay.
but this leaves me without items. How can I change my map to start in freeplay mode (i.e. items + intro message + silo script running?!)?
Details:
Code: Select all
/c game.player.character = game.player.surface.create_entity{name = "player", position = {0,0}, force = game.player.force}
Details:
- My map was created from a savegame using the "--map2scenario" commandline argument. (I only kept the blueprint.dat file though.)
- I have tried without success to copy control.lua files from other scenarios, but I was never sure that the script actually ran. I am now worried, that even if I give myself items, the silo script is not running.
- My scenario contains only a single file: blueprint.dat. If I create another scenario, this new one seems to be in freeplay mode. So theoretically blueprint.dat seems to contain the setting, but I don't know what to make out of it.