The Console: What is it and How do I use it?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
MalContentFL
Fast Inserter
Fast Inserter
Posts: 122
Joined: Mon Apr 28, 2014 2:53 pm
Contact:

The Console: What is it and How do I use it?

Post by MalContentFL »

I know that you press ~, but what can it do? I think it is some Lua programming thing but I'm not sure.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: The Console: What is it and How do I use it?

Post by ssilk »

https://forums.factorio.com/forum/sea ... sf=msgonly

For commands go to the wiki and look for the modding chapters.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

arl85
Fast Inserter
Fast Inserter
Posts: 174
Joined: Tue Jun 10, 2014 7:08 am
Contact:

Re: The Console: What is it and How do I use it?

Post by arl85 »

I also find very useful to read control.lua files of existing scenarios: there you can find some working codes.
I found especially useful the "sandobox" scenario, where you can find, for example, how to add any object to your inventory, or how to place a chest, etc...

if you're interested in LUA API specs you can read them here
Do you need help taking screenshots in-game? have a look to my guide to calculate screenshot dimensions

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: The Console: What is it and How do I use it?

Post by DaveMcW »

It would be nice to have a recipe list of cheat codes.

-- Check how far the biters have evolved
game.player.print(game.evolutionfactor)

-- Turn off night
game.alwaysday=true

-- Kill everything that moves
game.killallenemies()

-- Gain 100 iron plates
game.player.character.insert{name="iron-plate",count=100}

-- Finish research
for n,t in pairs(game.player.force.technologies) do t.researched=t.enabled end

-- Mine faster
game.player.force.manualminingspeedmodifier=1000

-- Craft faster
game.player.force.manualcraftingspeedmodifier=1000

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: The Console: What is it and How do I use it?

Post by ssilk »

Good idea.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Normandy7
Burner Inserter
Burner Inserter
Posts: 8
Joined: Tue Nov 04, 2014 6:14 pm
Contact:

getting errors message

Post by Normandy7 »

Can not execute command...blah,blah,blah...unexpected symbol near "/" wtf does that mean? I used "/c game.player.force.laboratoryspeedmodifier = 1"

anybody help?

jeroon
Filter Inserter
Filter Inserter
Posts: 351
Joined: Sun Jan 26, 2014 10:18 am
Contact:

Re: The Console: What is it and How do I use it?

Post by jeroon »

are you using version 0.11.x ? In 0.10 you can drop the /c, and use "game.player.force.laboratoryspeedmodifier = 1"

Post Reply

Return to “Gameplay Help”