RCON Commands

Post all other topics which do not belong to any other category.
Post Reply
bergi9
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Tue Jun 07, 2016 7:54 am
Contact:

RCON Commands

Post by bergi9 »

"How to implement the RCON Protocol" is linked to the Valve website. But are somewhere a list of RCON Commands for Factorio?

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: RCON Commands

Post by Oxyd »

If you use the /help command, it'll give you the list of available commands.

Factorio RCON is basically just an interface to the console you can get in game by pressing the ~ key, so the commands are mostly the same. RCON also adds /save and /quit commands, which is the only difference ATM.

Quickbowjob
Inserter
Inserter
Posts: 23
Joined: Mon Jun 27, 2016 6:39 pm
Contact:

Re: RCON Commands

Post by Quickbowjob »

@Oxyd Since when did commands from the wiki like '' /c game.always_day = true '' stop working?

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: RCON Commands

Post by daniel34 »

Quickbowjob wrote:@Oxyd Since when did commands from the wiki like '' /c game.always_day = true '' stop working?
Some methods have been moved from LuaGame to LuaSurface including daytime settings, wind settings and peaceful mode settings. Reason: different surfaces can have different settings.
See the changelog and the 0.13 modding API for reference.

To change always_day to true in 0.13 use this command:

Code: Select all

/c game.player.surface.always_day = true
quick links: log file | graphical issues | wiki

Quickbowjob
Inserter
Inserter
Posts: 23
Joined: Mon Jun 27, 2016 6:39 pm
Contact:

Re: RCON Commands

Post by Quickbowjob »

@daniel34
Thanks but i like day & night cycle's but handy when record sometimes, reason i was looking for a command was a broken recipe in bobelectronics_0.13.0
Example

Code: Select all

/c game.local_player.insert{name="iron-plate", count=100}
But then for 'Basic electronic circuit boards'

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: RCON Commands

Post by daniel34 »

Quickbowjob wrote:@daniel34
Thanks but i like day & night cycle's but handy when record sometimes, reason i was looking for a command was a broken recipe in bobelectronics_0.13.0
Example

Code: Select all

/c game.local_player.insert{name="iron-plate", count=100}
But then for 'Basic electronic circuit boards'
local_player was also renamed to player, this should work:

Code: Select all

/c game.player.insert{name="electronic-circuit", count=100}
quick links: log file | graphical issues | wiki

Quickbowjob
Inserter
Inserter
Posts: 23
Joined: Mon Jun 27, 2016 6:39 pm
Contact:

Re: RCON Commands

Post by Quickbowjob »

Thanks that works but wrong item :P
See have this issue i have: viewtopic.php?f=51&t=27364

I did try

Code: Select all

/c game.player.insert{name="basic-electronic-circuit-board", count=100}
but that doesn't work ill just wait till mod gets fixed and start a new game without them for now.

Quickbowjob
Inserter
Inserter
Posts: 23
Joined: Mon Jun 27, 2016 6:39 pm
Contact:

Re: RCON Commands

Post by Quickbowjob »

lol

Code: Select all

/c game.player.insert{name="electronic-circuit", count=100}
It does work i just had to turn back on the mod :P
Thanks once more :)

Post Reply

Return to “General discussion”