The Console: What is it and How do I use it?
-
- Fast Inserter
- Posts: 122
- Joined: Mon Apr 28, 2014 2:53 pm
- Contact:
The Console: What is it and How do I use it?
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?
https://forums.factorio.com/forum/sea ... sf=msgonly
For commands go to the wiki and look for the modding chapters.
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...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Re: The Console: What is it and How do I use it?
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
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?
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
-- 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?
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...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
getting errors message
Can not execute command...blah,blah,blah...unexpected symbol near "/" wtf does that mean? I used "/c game.player.force.laboratoryspeedmodifier = 1"
anybody help?
anybody help?
Re: The Console: What is it and How do I use it?
are you using version 0.11.x ? In 0.10 you can drop the /c, and use "game.player.force.laboratoryspeedmodifier = 1"