Console commands for instant traveling from planet to another

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
User avatar
CrazyDron
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Jul 31, 2023 7:20 am
Contact:

Console commands for instant traveling from planet to another

Post by CrazyDron »

Good day. How can I put character to any planet (or platform) by console command? Not matter with cheat mode or not.

Thanks.
quyxkh
Smart Inserter
Smart Inserter
Posts: 1070
Joined: Sun May 08, 2016 9:01 am
Contact:

Re: Console commands for instant traveling from planet to another

Post by quyxkh »

Code: Select all

/c game.player.teleport({0,0},'gleba')
To check the docs I opened doc-html/index.html in my install, picked runtime, searched for "teleport". The planet has to already exist in the game, which it hasn't yet at the start.

There's also lua-api.factorio.com that has the docs for all the game versions.
hunh. I'd swear there used to be a description available on profiles. "quyxkh" is a made-up word for fun, pronounced a lot like "cook".
User avatar
CrazyDron
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Jul 31, 2023 7:20 am
Contact:

Re: Console commands for instant traveling from planet to another

Post by CrazyDron »

quyxkh, thanks.

I've seen command 'teleport' in wiki, but there is no parameters after X, Y, so I cannot find other way to do it.
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 614
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Console commands for instant traveling from planet to another

Post by Silari »

Code: Select all

/cheat <planet or platform name>

works to teleport you to any planet or platform, IIRC. Doesn't have to exist already.
Post Reply

Return to “Gameplay Help”