Page 1 of 1

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

Posted: Tue Jul 08, 2014 7:54 pm
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.

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

Posted: Tue Jul 08, 2014 10:23 pm
by ssilk
https://forums.factorio.com/forum/sea ... sf=msgonly

For commands go to the wiki and look for the modding chapters.

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

Posted: Wed Jul 09, 2014 6:30 am
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

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

Posted: Wed Jul 09, 2014 9:07 am
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

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

Posted: Thu Jul 10, 2014 5:53 am
by ssilk
Good idea.

getting errors message

Posted: Mon Nov 17, 2014 8:09 am
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?

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

Posted: Mon Nov 17, 2014 9:23 am
by jeroon
are you using version 0.11.x ? In 0.10 you can drop the /c, and use "game.player.force.laboratoryspeedmodifier = 1"