Hi,
I have tried researching this myself and struggled to find the answer I am looking for, so I thought posting here would be a good idea. I have a map that I have built out quite nicely in Sandbox mode, however I would now like to switch it to Freeplay mode (with a character). I have found a couple mentions of how to do it via Console/Lua commands, however they didn't work for me.
I am prepared to paypal gift $5USD to the first person to give me the correct console commands to do it.
I am running Factorio on OSX (although I doubt that matters).
The map was started as a Sandbox mode map, and has never been anything but.
Thanks!
(Reward offered) Console command to change from Sandbox
Re: (Reward offered) Console command to change from Sandbox
This command should do what you're askingseewhymit wrote:Hi,
I have tried researching this myself and struggled to find the answer I am looking for, so I thought posting here would be a good idea. I have a map that I have built out quite nicely in Sandbox mode, however I would now like to switch it to Freeplay mode (with a character). I have found a couple mentions of how to do it via Console/Lua commands, however they didn't work for me.
I am prepared to paypal gift $5USD to the first person to give me the correct console commands to do it.
I am running Factorio on OSX (although I doubt that matters).
The map was started as a Sandbox mode map, and has never been anything but.
Thanks!
Code: Select all
/c game.local_player.character = game.local_player.surface.create_entity{name = "player", position = {0,0}, force = game.local_player.force}
https://www.factorio.com/donations
Re: (Reward offered) Console command to change from Sandbox
Klonan wrote:This command should do what you're askingseewhymit wrote:Hi,
I have tried researching this myself and struggled to find the answer I am looking for, so I thought posting here would be a good idea. I have a map that I have built out quite nicely in Sandbox mode, however I would now like to switch it to Freeplay mode (with a character). I have found a couple mentions of how to do it via Console/Lua commands, however they didn't work for me.
I am prepared to paypal gift $5USD to the first person to give me the correct console commands to do it.
I am running Factorio on OSX (although I doubt that matters).
The map was started as a Sandbox mode map, and has never been anything but.
Thanks!
No reward needed, but if you'd like you can donate to the dev teamCode: Select all
/c game.local_player.character = game.local_player.surface.create_entity{name = "player", position = {0,0}, force = game.local_player.force}
https://www.factorio.com/donations
Perfect! Thankyou! Donated!
Re: (Reward offered) Console command to change from Sandbox
Hello guys! I'm asking, if there is a way to to the exact different, go from a character to the sandbox mode.
I wanted to change my already built map from normal mode to sandbox (So basically kill the player).
A console command would be awesome!
If there isn't any commands for that, maybe a way to change it in the files or something.
Thanks for any response!
I wanted to change my already built map from normal mode to sandbox (So basically kill the player).
A console command would be awesome!
If there isn't any commands for that, maybe a way to change it in the files or something.
Thanks for any response!
Re: (Reward offered) Console command to change from Sandbox
Detach from character:
To re-attach to it, point at it with the mouse and
If you're sure you don't need it anymore, point at it again while detached and
(put your equipment in a chest first)
Code: Select all
/c game.local_player.character=nil
Code: Select all
/c game.local_player.character=game.local_player.selected
Code: Select all
/c game.local_player.selected.destroy()
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: (Reward offered) Console command to change from Sandbox
Thanks VERY much! Appricate it!
Re: (Reward offered) Console command to change from Sandbox
Hello
I've tried this command to change game mode from sandbox to normal, but I am getting this error:
Is this because there is another command or I can't convert the game mode when it was started as sandbox?
Thank you.
I've tried this command to change game mode from sandbox to normal, but I am getting this error:
Is this because there is another command or I can't convert the game mode when it was started as sandbox?
Thank you.
Re: (Reward offered) Console command to change from Sandbox
It's just "player" instead of "local_player" nowadays.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: (Reward offered) Console command to change from Sandbox
Omg, it works! Tkank you very muchprg wrote:It's just "player" instead of "local_player" nowadays.