Thursday, 15 October 2015

UnOff. Factorio FAQ: Console Commands

Frequently Asked Questions
for the computer game
Factorio
(UnOfficial FAQ: Console Commands)
(official link, though)
Link back to the index.

QI started a game with peaceful_mode enabled, but now I'd like a bit of a challenge, yet I want to continue playing on this map, instead of starting over, as I've already built a lot. How can I make the hippie aliens be less peaceful?
A: Just paste this line of bold text into the console, to switch the game mode to non-peaceful:

/c game.peaceful_mode = false

sapientius, non contentius labora

QHow do I take screenshots?
A: The console command for doing that has been changed at least once, recently, so I can understand if it's confusing.

This worked for me in early September 2015:

/c game.take_screenshot{show_entity_info = {true}, resolution = {x = 2000, y = 1500}, zoom = 0.8}

Just copy/paste it into the console as usual.

It takes a 2000×1500 pixel screenshot that includes the Alt game info overlay, with what was a reasonable zoom factor for the kind of screenshot I wanted to take at that time, and centered on your character.

The screenshot gets saved in one of your game data folders, always under the exact same file name, meaning that if you take a new screenshot, it'll just overwrite the first. Because of this, you must go into the folder and rename each screenshot after it's taken.

Find your "/mods" folder. Go one step up into your main Factorio folder. Your screenshot will be in the folder named "script-output"

If you want to take screenshots where your character isn't centered, you can paste this into the console:

/c game.take_screenshot{show_entity_info = {true}, resolution = {x = 2668, y = 1500}, position = {x = game.local_player.position.x + 25, y = game.local_player.position.y - 15}, zoom = 1.0}

The +25X and -15Y places the player character in the lower left corner of the screenshot, although of course those two values may need to be changed a bit to work on another computer, or with a different zoom setting.

sapientius, non contentius labora

See also under Multiplayer, for how to change a player character's colour.

Peter34

No comments:

Post a Comment

Hi, please keep comments on-topic in terms of the specific blog post you're replying to. Also keep in mind, this is my "mixed/random stuff"-blog; if you want "theme", go for the other ones.