<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.factorio.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JohnnyWing</id>
	<title>Official Factorio Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.factorio.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JohnnyWing"/>
	<link rel="alternate" type="text/html" href="https://wiki.factorio.com/Special:Contributions/JohnnyWing"/>
	<updated>2026-04-23T02:32:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Glossary&amp;diff=125268</id>
		<title>Glossary</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Glossary&amp;diff=125268"/>
		<updated>2016-05-29T09:59:11Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: Added &amp;#039;scenario&amp;#039; term&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
{{stub}}&lt;br /&gt;
Note: some of the pages aren&#039;t created yet. Instead the information is gathered together here, and when the page is created it should be moved to that page.&lt;br /&gt;
Note2: try to keep links/pages in singular! Not Belts but Belt!&lt;br /&gt;
;Assembling machine&lt;br /&gt;
: Crafts a new item from [[items#Intermediate products|intermediate products]]. Currently up to 4 types of inserted items can result into one output item. A [[recipe]] tells the assembly which items are used, how long it takes, how much energy is used and what comes out. See [[Crafting network]]&lt;br /&gt;
;Assembly&lt;br /&gt;
: See Assembling machine and [[Crafting network]]&lt;br /&gt;
;[[Basic accumulator]]&lt;br /&gt;
: Stores electrical energy. Most commonly used for providing electricity at night when [[Solar Panel|solar panels]] produce none&lt;br /&gt;
;Belt&lt;br /&gt;
: See [[Transport network|Transport belt]].&lt;br /&gt;
;[[Enemies]]&lt;br /&gt;
: Enemies are the aliens that attack you and your factory. They come in Biter and Spitter forms, as well as small, medium, large, and gargantuan sizes. They are attracted to pollution sources. &lt;br /&gt;
;[[Chests|Chest]]&lt;br /&gt;
: Placeable item that is used to store other items. &lt;br /&gt;
;[[Entity]]&lt;br /&gt;
: Anything that can be manipulated in-game. Nearly everything in factorio is an entity. [[Tile|Tiles]], [[Items]], any device, trees... Even the player is just an entity&lt;br /&gt;
;[[Inserter]]&lt;br /&gt;
: An automatic robot arm, which transports [[Items]] from a source to a destination.&lt;br /&gt;
;[[items#Intermediate products|Intermediate products]]&lt;br /&gt;
: Items which can not be placed on planet or be used by player, their only purpose is as raw material for other recipes.&lt;br /&gt;
;[[Items|Item]]&lt;br /&gt;
: Is a moveable [[Entity|entity]]. Everything on the belts, in chests, in your inventory, transported by [[Logistic robot|Logistic bots]]/[[Locomotive]], inside [[Turret|turrets]], [[Assembling machines|assemblies]], [[Furnace|furnaces]] is an item. A [[Stack|stack]] can contain only one sort of item. Items can also lay on the ground, you can grab them up normally with key F and drop them down with key Z. Every item has a physical dimension (see [[bounding boxes]]), which limits the density the can have on the [[map]]. Items are subcategorized into [[items#Resources|resources]], [[items#Intermediate products|intermediate products]], [[items#Player equipment|equipment]] and [[items#Placeable items|placeable items]]. &lt;br /&gt;
;[[Lab]]&lt;br /&gt;
: A type of assembly machine which produces no output and only accepts science packs as input. Used to research new technologies.&lt;br /&gt;
;[[Laser turret]]&lt;br /&gt;
: Advanced defensive structure which uses electricity instead of bullets.&lt;br /&gt;
; Mines&lt;br /&gt;
: Shorthand term for any kind of mining building: Mining drills, electric mining drills, and pumpjacks are all considered mines.&lt;br /&gt;
;[[Mining drill]]&lt;br /&gt;
: Placeable item to automate mining. See also [[Electric Mining Drill]].&lt;br /&gt;
;[[Module]]&lt;br /&gt;
: One of three types of item that can be placed in buildings to change the effects of the building. &lt;br /&gt;
;[[Pax]]&lt;br /&gt;
: Player access station; in addition to the scheduled trains in a train network, one may want to add extra stations and trains for maintenance.&lt;br /&gt;
;[[Pollution]]&lt;br /&gt;
: Created by burning coal/wood and running mines, [[Pumpjack|pumpjacks]], and assembly machines&lt;br /&gt;
;[[items#Resources|Resource]]&lt;br /&gt;
: Entities that did not need to be assembled. Iron-ore, copper-ore, coal, stone, water, crude oil, raw wood, alien artifacts, and raw fish are all resources.&lt;br /&gt;
;[[Scenario]]&lt;br /&gt;
: A map that has been saved via the [[Map editor]]&lt;br /&gt;
;Tick&lt;br /&gt;
: The smallest measurable amount of time in Factorio. There are 60 ticks per second.&lt;br /&gt;
;Time&lt;br /&gt;
: Game time is normally identical with real time, one second in the game is one second in reality, but it can be faster or slower. For example, when the calculations for an update takes longer than a tick, the game slows down. Alternatively, a mod can provide ways to let the game run faster.&lt;br /&gt;
;Tile&lt;br /&gt;
: A piece of map. It is not really known how big it is, but for simplifying things we can assume, that a tile is a quadrate with side of 1 meter (like Minecraft). Please consider that the entities do not have sizes which can be compared to real life; gameplay goes here over reality.&lt;br /&gt;
;[[Transport network|Transport belt]]&lt;br /&gt;
: A belt is used to transport [[Items|items]] to any point of the [[Map|map]] to satisfy logistic needs. A belt is a little bit wider than two items, so you can transport items in two rows of the belt. The players task is to handle this two sides with the limited elements he has. This is one of the core game elements of factorio.&lt;br /&gt;
;[[Trees]]&lt;br /&gt;
: Item that produces [[Raw wood|wood]] when mined&lt;br /&gt;
;Turret&lt;br /&gt;
: Stationary defense weapon. There are gun &amp;amp; laser turrets. With some upgrades turrets get really powerful.&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Console&amp;diff=125262</id>
		<title>Console</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Console&amp;diff=125262"/>
		<updated>2016-05-29T09:06:47Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: Removed stub template. Reworked the intro paragraph.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
= Console Overview =&lt;br /&gt;
The Factorio console is the built in interface for executing Lua commands within Factorio. It works similarly to any command line interface or the JavaScript console for your browser.&lt;br /&gt;
&lt;br /&gt;
You can essentially fire any command here, just as you would from a Lua program - Factorio [[Mods]] are merely Lua commands. Therefore you don&#039;t necessarily need &amp;quot;cheats&amp;quot; per-se, as the console allows you full access to the game&#039;s internals. You only need a familiarity with the commands and types, as shown in the below examples and the [[Modding]] section.&lt;br /&gt;
&lt;br /&gt;
= Using the console =&lt;br /&gt;
== Opening the console ==&lt;br /&gt;
With default key bindings, the console is opened with the &#039;&#039;&#039; &#039;/&#039; or &#039;~&#039;&#039;&#039;&#039; keys. Like most others, this key binding may be customized within the Options Menu-&amp;gt;Keyboard&amp;gt;&amp;quot;Toggle Lua console&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Inputting commands ==&lt;br /&gt;
&lt;br /&gt;
The console is also the chat window in multiplayer. You need to type &#039;/c&#039; in front of your commands, otherwise it is just a chat message!&lt;br /&gt;
The console has an inbuilt history. You can use the &amp;quot;cursor-up&amp;quot;-key to repeat or quickly edit and re-issue previous commands.&lt;br /&gt;
&lt;br /&gt;
The game ignores newlines when pasting &amp;quot;scriptlets&amp;quot; in the console. This means they can be written in a human readable form in an editor and copy/pasted into the console, making understanding and editing a bit easier.&lt;br /&gt;
&lt;br /&gt;
On the other hand, if you want to type &#039;&#039;several commands in one line&#039;&#039; you just need to put &#039;;&#039; (semicolon) between the commands - see examples below.&lt;br /&gt;
&lt;br /&gt;
= Example&amp;quot;cheat&amp;quot; commands =&lt;br /&gt;
Information for additional commands may be found in the [[Modding|modding-section]]&lt;br /&gt;
&lt;br /&gt;
== Use it as calculator ==&lt;br /&gt;
(see [[#Inputting commands|Inputting Commands]]: you can repeat a prior command with the &amp;quot;cursor up&amp;quot;-key!)&lt;br /&gt;
 /c game.local_player.print(1234 * 5678)&lt;br /&gt;
&lt;br /&gt;
== Mine faster ==&lt;br /&gt;
 /c game.local_player.force.manual_mining_speed_modifier=1000&lt;br /&gt;
&lt;br /&gt;
== Craft faster ==&lt;br /&gt;
 /c game.local_player.force.manual_crafting_speed_modifier=1000&lt;br /&gt;
&lt;br /&gt;
== Zoom beyond normal bounds ==&lt;br /&gt;
 /c game.local_player.zoom = 0.1&lt;br /&gt;
&lt;br /&gt;
== Use print() instead of game.local_player.print() ==&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=41&amp;amp;t=5638 Use print() instead of game.local_player.print()] (forums)&lt;br /&gt;
 /c print = function(text) game.local_player.print(text) end&lt;br /&gt;
&lt;br /&gt;
== Check water level in a pipe ==&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=6066&amp;amp;p=47758#p47758 Check water level in a pipe] (forums)&lt;br /&gt;
Hold cursor over the target pipe and execute:&lt;br /&gt;
 /c game.local_player.print(game.local_player.selected.get_liquid().amount)&lt;br /&gt;
&lt;br /&gt;
== Inventory Manipulation ==&lt;br /&gt;
=== Refill resources (refill oil, iron etc.) ===&lt;br /&gt;
While holding the cursor over a resource in-game&lt;br /&gt;
 /c game.local_player.selected.amount=7500&lt;br /&gt;
&lt;br /&gt;
=== Add 100 iron plates to your inventory ===&lt;br /&gt;
 /c game.local_player.insert{name=&amp;quot;iron-plate&amp;quot;, count=100}&lt;br /&gt;
&lt;br /&gt;
== World Manipulation ==&lt;br /&gt;
=== Turn off night ===&lt;br /&gt;
 /c game.always_day=true&lt;br /&gt;
&lt;br /&gt;
=== Add new resource patch ===&lt;br /&gt;
This creates a new 5x5 patch of resources, centered on the player character. For resources other than stone, just change &amp;quot;stone&amp;quot; to &amp;quot;iron-ore&amp;quot;, &amp;quot;copper-ore&amp;quot;, or &amp;quot;coal&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 /c local surface = game.local_player.surface;&lt;br /&gt;
 for y=-2,2 do&lt;br /&gt;
  for x=-2,2 do&lt;br /&gt;
   surface.create_entity({name=&amp;quot;stone&amp;quot;, amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})&lt;br /&gt;
  end&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
=== Destroy rocks in sandbox-mode ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=5686 Destroy rocks in sandbox-mode (forums)] - you don&#039;t have a player here, so you can&#039;t destroy anything.&lt;br /&gt;
  /c for _,entity in pairs(game.local_player.surface.find_entities_filtered{&lt;br /&gt;
        area={{game.local_player.position.x-32, game.local_player.position.y-32},&lt;br /&gt;
            {game.local_player.position.x+32, game.local_player.position.y+32}},&lt;br /&gt;
            name=&amp;quot;stone-rock&amp;quot;})&lt;br /&gt;
  do&lt;br /&gt;
    entity.destroy()&lt;br /&gt;
  end&lt;br /&gt;
you need to center the rock in your vision range&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Generate a section of the world and explore it at the same time ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=14&amp;amp;t=4761&amp;amp;p=44184#p44184 Generate a section of the world and explore it at the same time] (forums)&lt;br /&gt;
 /c game.local_player.force.chart(game.local_player.surface,{lefttop = {x = -1024, y = -1024}, rightbottom = {x = 1024, y = 1024}})&lt;br /&gt;
&lt;br /&gt;
Simply change the bounding box to the size you want and it will generate the map and explore it in that area. Keep In mind that command is telling Factorio to generate 64*64 (4096) chunks so it&#039;s going to take a while before all the background entity generation (trees, resources, biters) are placed in the world.&lt;br /&gt;
&lt;br /&gt;
== Enemy/Evolution == &lt;br /&gt;
=== Check how far the biters have evolved ===&lt;br /&gt;
 /c game.local_player.print(game.evolution_factor)&lt;br /&gt;
&lt;br /&gt;
=== Disable evolution &amp;amp; increases pollution evolution ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=34&amp;amp;t=10159 Disable evolution, increases pollution evolution instead] (forums)&lt;br /&gt;
 /c game.mapsettings.enemy_evolution.time_factor = 0.000008 * 0&lt;br /&gt;
 /c game.mapsettings.enemy_evolution.pollution_factor = 0.00003 * 2&lt;br /&gt;
&lt;br /&gt;
=== Kill all biters on the &amp;quot;enemy&amp;quot; force ===&lt;br /&gt;
 /c game.forces[&amp;quot;enemy&amp;quot;].kill_all_units()&lt;br /&gt;
&lt;br /&gt;
=== Remove all enemies from the map ===&lt;br /&gt;
    /c local surface = game.local_player.surface&lt;br /&gt;
    for c in surface.get_chunks() do&lt;br /&gt;
        for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, force= &amp;quot;enemy&amp;quot;})) do&lt;br /&gt;
            entity.destroy()&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
=== Enable peaceful mode ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=9020 Switching on peaceful mode] (forums)&lt;br /&gt;
 /c game.peaceful_mode = true&lt;br /&gt;
 /c game.forces[&amp;quot;enemy&amp;quot;].kill_all_units()&lt;br /&gt;
&lt;br /&gt;
== Player Character ==&lt;br /&gt;
=== Spawn a player character ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=19447&amp;amp;p=124039#p123991 Custom Scenario: How to spawn a character at a certain point (instead of being in god-mode] (forums)&lt;br /&gt;
 /c game.local_player.character = game.local_player.surface.create_entity{name=&amp;quot;player&amp;quot;, position = {0,0}, force = game.forces.player}&lt;br /&gt;
&lt;br /&gt;
=== Change Player color ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=9028 Player color] (forums)&lt;br /&gt;
 /c game.local_player.color={g=50,b=200,r=200,a=.9}&lt;br /&gt;
&lt;br /&gt;
== Research ==&lt;br /&gt;
=== Enable faster research ===&lt;br /&gt;
 /c game.local_player.force.laboratory_speed_modifier = 1&lt;br /&gt;
1 is normal speed, 2 is double speed 3 is triple etc. I think it goes up to 100.&lt;br /&gt;
&lt;br /&gt;
=== Enabling specific technologies ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=6633 Enabling technologies] (forums)&lt;br /&gt;
 /c game.local_player.force.technologies[&#039;electric-energy-distribution-1&#039;].researched=true&lt;br /&gt;
 /c game.local_player.force.technologies[&#039;steel-processing&#039;].researched=true&lt;br /&gt;
&lt;br /&gt;
=== Finish research immediately ===&lt;br /&gt;
 /c for name,technology in pairs(game.local_player.force.technologies) do technology.researched=technology.enabled end&lt;br /&gt;
&lt;br /&gt;
== Get robot count within network ==&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=9867&amp;amp;p=78209#p78209 Where can I see how many Robots are in my network?] (forums)&lt;br /&gt;
&lt;br /&gt;
Note that these are no longer needed because the roboport now provides accurate robot counts.&lt;br /&gt;
&lt;br /&gt;
=== Count all &#039;&#039;&#039;active robots&#039;&#039;&#039;===&lt;br /&gt;
 /c game.local_player.print(game.local_player.force.get_entitycount(&amp;quot;logistic-robot&amp;quot;))&lt;br /&gt;
 /c game.local_player.print(game.local_player.force.get_entitycount(&amp;quot;construction-robot&amp;quot;))&lt;br /&gt;
&lt;br /&gt;
=== Count all &#039;&#039;&#039;active and inactive robots&#039;&#039;&#039; in the network, but misses the ones flying over gaps in coverage ===&lt;br /&gt;
    /c robots = {};&lt;br /&gt;
    roboports = {};&lt;br /&gt;
    logistic = 0;&lt;br /&gt;
    construction = 0;&lt;br /&gt;
    recurse = function(r)&lt;br /&gt;
       id = r.position.x .. &amp;quot;,&amp;quot; .. r.position.y;&lt;br /&gt;
       if (roboports[id] or r.force.name ~= game.player.force.name) then return end;&lt;br /&gt;
       roboports[id] = true;&lt;br /&gt;
       logistic = logistic + r.getinventory(1).getitemcount(&amp;quot;logistic-robot&amp;quot;);&lt;br /&gt;
       construction = construction + r.getinventory(1).getitemcount(&amp;quot;construction-robot&amp;quot;);&lt;br /&gt;
       ids = {};&lt;br /&gt;
       for _, robot in ipairs(game.findentitiesfiltered{area={{r.position.x-50, r.position.y-50}, {r.position.x+50, r.position.y+50}}, name=&amp;quot;construction-robot&amp;quot;}) do;&lt;br /&gt;
          id = robot.position.x .. &amp;quot;,&amp;quot; .. robot.position.y;&lt;br /&gt;
          if ((ids[id] or not robots[id]) and robot.force.name == game.player.force.name) then;&lt;br /&gt;
             construction = construction + 1;&lt;br /&gt;
             ids[id] = true;&lt;br /&gt;
             robots[id] = true;&lt;br /&gt;
          end;&lt;br /&gt;
       end;&lt;br /&gt;
       for _, robot in ipairs(game.findentitiesfiltered{area={{r.position.x-50, r.position.y-50}, {r.position.x+50, r.position.y+50}}, name=&amp;quot;logistic-robot&amp;quot;}) do;&lt;br /&gt;
          id = robot.position.x .. &amp;quot;,&amp;quot; .. robot.position.y;&lt;br /&gt;
          if ((ids[id] or not robots[id]) and robot.force.name == game.player.force.name) then;&lt;br /&gt;
             logistic = logistic + 1;&lt;br /&gt;
             ids[id] = true;&lt;br /&gt;
             robots[id] = true;&lt;br /&gt;
          end;&lt;br /&gt;
       end;&lt;br /&gt;
       for _, roboport in ipairs(game.findentitiesfiltered{area={{r.position.x-48.5, r.position.y-48.5}, {r.position.x+48.5, r.position.y+48.5}}, name=&amp;quot;roboport&amp;quot;}) do;&lt;br /&gt;
          recurse(roboport);&lt;br /&gt;
       end;&lt;br /&gt;
    end;&lt;br /&gt;
    p = game.player.character.position;&lt;br /&gt;
    roboport = game.findentitiesfiltered{area={{p.x-48.5, p.y-48.5}, {p.x+48.5, p.y+48.5}}, name=&amp;quot;roboport&amp;quot;}[1];&lt;br /&gt;
    if (roboport) then;&lt;br /&gt;
       recurse(roboport);&lt;br /&gt;
       game.player.print(&amp;quot;Robots in network: Construction:&amp;quot; .. construction .. &amp;quot; Logistic:&amp;quot; .. logistic);&lt;br /&gt;
    else;&lt;br /&gt;
       game.player.print(&amp;quot;Not in range of a roboport.&amp;quot;);&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=7981 Superspeedrun]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=4752 The Console: What is it and How do I use it?]&lt;br /&gt;
: Some interesting cheats or useful commands and tips.&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=6942&amp;amp;p=543H57#p54357 Totaly new player -&amp;gt; setting up a game]:&lt;br /&gt;
 # Preface all console commands with /c in .11.0+&lt;br /&gt;
 &lt;br /&gt;
 # Set player to white&lt;br /&gt;
 game.local_player.color = {g=1,b=1,r=1,a=.9}&lt;br /&gt;
 &lt;br /&gt;
 # remove old player&lt;br /&gt;
 game.remove_offline_player(&amp;quot;username&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 # Technology and Recipe unlocking&lt;br /&gt;
 game.local_player.force.reset_technologies()&lt;br /&gt;
 game.local_player.force.reset_recipes()&lt;br /&gt;
 game.local_player.force.enable_all_technologies() # does not research them (see below)&lt;br /&gt;
 game.local_player.force.enable_all_recipes()&lt;br /&gt;
 game.local_player.force.research_all_technologies()&lt;br /&gt;
 game.local_player.force.technologies[&amp;quot;technology-name&amp;quot;].researched = true&lt;br /&gt;
 &lt;br /&gt;
 # cheating&lt;br /&gt;
 game.local_player.force.manual_mining_speed_modifier = 200&lt;br /&gt;
 game.local_player.force.manual_crafting_speed_modifier = 200&lt;br /&gt;
 game.speed = 2&lt;br /&gt;
 game.freeze_day_time()&lt;br /&gt;
 game.always_day = true&lt;br /&gt;
 game.peaceful_mode = true&lt;br /&gt;
 game.local_player.insert{name=&amp;quot;item-name&amp;quot;, count=1}&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Console&amp;diff=125261</id>
		<title>Console</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Console&amp;diff=125261"/>
		<updated>2016-05-29T08:56:17Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: Majorly restructured page into categorized example groups. Minor content updates for readability, simplification, and to remove redundancy. All examples still exist but were re-ordered.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
&lt;br /&gt;
{{stub|This article needs to be completely rewritten.}}&lt;br /&gt;
&lt;br /&gt;
The console is the built in interface for lua-commands. It works a bit like any command-line-interface or the java-script-console for your browser.&lt;br /&gt;
&lt;br /&gt;
Basically you can fire here all commands, like from any other lua-program (= [[Modding]]). This means you have full access to all in-game-internals. &lt;br /&gt;
&lt;br /&gt;
In other words: Factorio doesn&#039;t need any special cheats, it has a console, which allows you to cheat around any limition, if you know how.&lt;br /&gt;
&lt;br /&gt;
= Using the console =&lt;br /&gt;
== Opening the console ==&lt;br /&gt;
With default key bindings, the console is opened with the &#039;&#039;&#039; &#039;/&#039; or &#039;~&#039;&#039;&#039;&#039; keys. Like most others, this key binding may be customized within the Options Menu-&amp;gt;Keyboard&amp;gt;&amp;quot;Toggle Lua console&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Inputting commands ==&lt;br /&gt;
&lt;br /&gt;
The console is also the chat window in multiplayer. You need to type &#039;/c&#039; in front of your commands, otherwise it is just a chat message!&lt;br /&gt;
The console has an inbuilt history. You can use the &amp;quot;cursor-up&amp;quot;-key to repeat or quickly edit and re-issue previous commands.&lt;br /&gt;
&lt;br /&gt;
The game ignores newlines when pasting &amp;quot;scriptlets&amp;quot; in the console. This means they can be written in a human readable form in an editor and copy/pasted into the console, making understanding and editing a bit easier.&lt;br /&gt;
&lt;br /&gt;
On the other hand, if you want to type &#039;&#039;several commands in one line&#039;&#039; you just need to put &#039;;&#039; (semicolon) between the commands - see examples below.&lt;br /&gt;
&lt;br /&gt;
= Example&amp;quot;cheat&amp;quot; commands =&lt;br /&gt;
Information for additional commands may be found in the [[Modding|modding-section]]&lt;br /&gt;
&lt;br /&gt;
== Use it as calculator ==&lt;br /&gt;
(see [[#Inputting commands|Inputting Commands]]: you can repeat a prior command with the &amp;quot;cursor up&amp;quot;-key!)&lt;br /&gt;
 /c game.local_player.print(1234 * 5678)&lt;br /&gt;
&lt;br /&gt;
== Mine faster ==&lt;br /&gt;
 /c game.local_player.force.manual_mining_speed_modifier=1000&lt;br /&gt;
&lt;br /&gt;
== Craft faster ==&lt;br /&gt;
 /c game.local_player.force.manual_crafting_speed_modifier=1000&lt;br /&gt;
&lt;br /&gt;
== Zoom beyond normal bounds ==&lt;br /&gt;
 /c game.local_player.zoom = 0.1&lt;br /&gt;
&lt;br /&gt;
== Use print() instead of game.local_player.print() ==&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=41&amp;amp;t=5638 Use print() instead of game.local_player.print()] (forums)&lt;br /&gt;
 /c print = function(text) game.local_player.print(text) end&lt;br /&gt;
&lt;br /&gt;
== Check water level in a pipe ==&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=6066&amp;amp;p=47758#p47758 Check water level in a pipe] (forums)&lt;br /&gt;
Hold cursor over the target pipe and execute:&lt;br /&gt;
 /c game.local_player.print(game.local_player.selected.get_liquid().amount)&lt;br /&gt;
&lt;br /&gt;
== Inventory Manipulation ==&lt;br /&gt;
=== Refill resources (refill oil, iron etc.) ===&lt;br /&gt;
While holding the cursor over a resource in-game&lt;br /&gt;
 /c game.local_player.selected.amount=7500&lt;br /&gt;
&lt;br /&gt;
=== Add 100 iron plates to your inventory ===&lt;br /&gt;
 /c game.local_player.insert{name=&amp;quot;iron-plate&amp;quot;, count=100}&lt;br /&gt;
&lt;br /&gt;
== World Manipulation ==&lt;br /&gt;
=== Turn off night ===&lt;br /&gt;
 /c game.always_day=true&lt;br /&gt;
&lt;br /&gt;
=== Add new resource patch ===&lt;br /&gt;
This creates a new 5x5 patch of resources, centered on the player character. For resources other than stone, just change &amp;quot;stone&amp;quot; to &amp;quot;iron-ore&amp;quot;, &amp;quot;copper-ore&amp;quot;, or &amp;quot;coal&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 /c local surface = game.local_player.surface;&lt;br /&gt;
 for y=-2,2 do&lt;br /&gt;
  for x=-2,2 do&lt;br /&gt;
   surface.create_entity({name=&amp;quot;stone&amp;quot;, amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})&lt;br /&gt;
  end&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
=== Destroy rocks in sandbox-mode ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=5686 Destroy rocks in sandbox-mode (forums)] - you don&#039;t have a player here, so you can&#039;t destroy anything.&lt;br /&gt;
  /c for _,entity in pairs(game.local_player.surface.find_entities_filtered{&lt;br /&gt;
        area={{game.local_player.position.x-32, game.local_player.position.y-32},&lt;br /&gt;
            {game.local_player.position.x+32, game.local_player.position.y+32}},&lt;br /&gt;
            name=&amp;quot;stone-rock&amp;quot;})&lt;br /&gt;
  do&lt;br /&gt;
    entity.destroy()&lt;br /&gt;
  end&lt;br /&gt;
you need to center the rock in your vision range&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Generate a section of the world and explore it at the same time ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=14&amp;amp;t=4761&amp;amp;p=44184#p44184 Generate a section of the world and explore it at the same time] (forums)&lt;br /&gt;
 /c game.local_player.force.chart(game.local_player.surface,{lefttop = {x = -1024, y = -1024}, rightbottom = {x = 1024, y = 1024}})&lt;br /&gt;
&lt;br /&gt;
Simply change the bounding box to the size you want and it will generate the map and explore it in that area. Keep In mind that command is telling Factorio to generate 64*64 (4096) chunks so it&#039;s going to take a while before all the background entity generation (trees, resources, biters) are placed in the world.&lt;br /&gt;
&lt;br /&gt;
== Enemy/Evolution == &lt;br /&gt;
=== Check how far the biters have evolved ===&lt;br /&gt;
 /c game.local_player.print(game.evolution_factor)&lt;br /&gt;
&lt;br /&gt;
=== Disable evolution &amp;amp; increases pollution evolution ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=34&amp;amp;t=10159 Disable evolution, increases pollution evolution instead] (forums)&lt;br /&gt;
 /c game.mapsettings.enemy_evolution.time_factor = 0.000008 * 0&lt;br /&gt;
 /c game.mapsettings.enemy_evolution.pollution_factor = 0.00003 * 2&lt;br /&gt;
&lt;br /&gt;
=== Kill all biters on the &amp;quot;enemy&amp;quot; force ===&lt;br /&gt;
 /c game.forces[&amp;quot;enemy&amp;quot;].kill_all_units()&lt;br /&gt;
&lt;br /&gt;
=== Remove all enemies from the map ===&lt;br /&gt;
    /c local surface = game.local_player.surface&lt;br /&gt;
    for c in surface.get_chunks() do&lt;br /&gt;
        for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, force= &amp;quot;enemy&amp;quot;})) do&lt;br /&gt;
            entity.destroy()&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
=== Enable peaceful mode ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=9020 Switching on peaceful mode] (forums)&lt;br /&gt;
 /c game.peaceful_mode = true&lt;br /&gt;
 /c game.forces[&amp;quot;enemy&amp;quot;].kill_all_units()&lt;br /&gt;
&lt;br /&gt;
== Player Character ==&lt;br /&gt;
=== Spawn a player character ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=19447&amp;amp;p=124039#p123991 Custom Scenario: How to spawn a character at a certain point (instead of being in god-mode] (forums)&lt;br /&gt;
 /c game.local_player.character = game.local_player.surface.create_entity{name=&amp;quot;player&amp;quot;, position = {0,0}, force = game.forces.player}&lt;br /&gt;
&lt;br /&gt;
=== Change Player color ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=9028 Player color] (forums)&lt;br /&gt;
 /c game.local_player.color={g=50,b=200,r=200,a=.9}&lt;br /&gt;
&lt;br /&gt;
== Research ==&lt;br /&gt;
=== Enable faster research ===&lt;br /&gt;
 /c game.local_player.force.laboratory_speed_modifier = 1&lt;br /&gt;
1 is normal speed, 2 is double speed 3 is triple etc. I think it goes up to 100.&lt;br /&gt;
&lt;br /&gt;
=== Enabling specific technologies ===&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=6633 Enabling technologies] (forums)&lt;br /&gt;
 /c game.local_player.force.technologies[&#039;electric-energy-distribution-1&#039;].researched=true&lt;br /&gt;
 /c game.local_player.force.technologies[&#039;steel-processing&#039;].researched=true&lt;br /&gt;
&lt;br /&gt;
=== Finish research immediately ===&lt;br /&gt;
 /c for name,technology in pairs(game.local_player.force.technologies) do technology.researched=technology.enabled end&lt;br /&gt;
&lt;br /&gt;
== Get robot count within network ==&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=9867&amp;amp;p=78209#p78209 Where can I see how many Robots are in my network?] (forums)&lt;br /&gt;
&lt;br /&gt;
Note that these are no longer needed because the roboport now provides accurate robot counts.&lt;br /&gt;
&lt;br /&gt;
=== Count all &#039;&#039;&#039;active robots&#039;&#039;&#039;===&lt;br /&gt;
 /c game.local_player.print(game.local_player.force.get_entitycount(&amp;quot;logistic-robot&amp;quot;))&lt;br /&gt;
 /c game.local_player.print(game.local_player.force.get_entitycount(&amp;quot;construction-robot&amp;quot;))&lt;br /&gt;
&lt;br /&gt;
=== Count all &#039;&#039;&#039;active and inactive robots&#039;&#039;&#039; in the network, but misses the ones flying over gaps in coverage ===&lt;br /&gt;
    /c robots = {};&lt;br /&gt;
    roboports = {};&lt;br /&gt;
    logistic = 0;&lt;br /&gt;
    construction = 0;&lt;br /&gt;
    recurse = function(r)&lt;br /&gt;
       id = r.position.x .. &amp;quot;,&amp;quot; .. r.position.y;&lt;br /&gt;
       if (roboports[id] or r.force.name ~= game.player.force.name) then return end;&lt;br /&gt;
       roboports[id] = true;&lt;br /&gt;
       logistic = logistic + r.getinventory(1).getitemcount(&amp;quot;logistic-robot&amp;quot;);&lt;br /&gt;
       construction = construction + r.getinventory(1).getitemcount(&amp;quot;construction-robot&amp;quot;);&lt;br /&gt;
       ids = {};&lt;br /&gt;
       for _, robot in ipairs(game.findentitiesfiltered{area={{r.position.x-50, r.position.y-50}, {r.position.x+50, r.position.y+50}}, name=&amp;quot;construction-robot&amp;quot;}) do;&lt;br /&gt;
          id = robot.position.x .. &amp;quot;,&amp;quot; .. robot.position.y;&lt;br /&gt;
          if ((ids[id] or not robots[id]) and robot.force.name == game.player.force.name) then;&lt;br /&gt;
             construction = construction + 1;&lt;br /&gt;
             ids[id] = true;&lt;br /&gt;
             robots[id] = true;&lt;br /&gt;
          end;&lt;br /&gt;
       end;&lt;br /&gt;
       for _, robot in ipairs(game.findentitiesfiltered{area={{r.position.x-50, r.position.y-50}, {r.position.x+50, r.position.y+50}}, name=&amp;quot;logistic-robot&amp;quot;}) do;&lt;br /&gt;
          id = robot.position.x .. &amp;quot;,&amp;quot; .. robot.position.y;&lt;br /&gt;
          if ((ids[id] or not robots[id]) and robot.force.name == game.player.force.name) then;&lt;br /&gt;
             logistic = logistic + 1;&lt;br /&gt;
             ids[id] = true;&lt;br /&gt;
             robots[id] = true;&lt;br /&gt;
          end;&lt;br /&gt;
       end;&lt;br /&gt;
       for _, roboport in ipairs(game.findentitiesfiltered{area={{r.position.x-48.5, r.position.y-48.5}, {r.position.x+48.5, r.position.y+48.5}}, name=&amp;quot;roboport&amp;quot;}) do;&lt;br /&gt;
          recurse(roboport);&lt;br /&gt;
       end;&lt;br /&gt;
    end;&lt;br /&gt;
    p = game.player.character.position;&lt;br /&gt;
    roboport = game.findentitiesfiltered{area={{p.x-48.5, p.y-48.5}, {p.x+48.5, p.y+48.5}}, name=&amp;quot;roboport&amp;quot;}[1];&lt;br /&gt;
    if (roboport) then;&lt;br /&gt;
       recurse(roboport);&lt;br /&gt;
       game.player.print(&amp;quot;Robots in network: Construction:&amp;quot; .. construction .. &amp;quot; Logistic:&amp;quot; .. logistic);&lt;br /&gt;
    else;&lt;br /&gt;
       game.player.print(&amp;quot;Not in range of a roboport.&amp;quot;);&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=7981 Superspeedrun]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=4752 The Console: What is it and How do I use it?]&lt;br /&gt;
: Some interesting cheats or useful commands and tips.&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=6942&amp;amp;p=543H57#p54357 Totaly new player -&amp;gt; setting up a game]:&lt;br /&gt;
 # Preface all console commands with /c in .11.0+&lt;br /&gt;
 &lt;br /&gt;
 # Set player to white&lt;br /&gt;
 game.local_player.color = {g=1,b=1,r=1,a=.9}&lt;br /&gt;
 &lt;br /&gt;
 # remove old player&lt;br /&gt;
 game.remove_offline_player(&amp;quot;username&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 # Technology and Recipe unlocking&lt;br /&gt;
 game.local_player.force.reset_technologies()&lt;br /&gt;
 game.local_player.force.reset_recipes()&lt;br /&gt;
 game.local_player.force.enable_all_technologies() # does not research them (see below)&lt;br /&gt;
 game.local_player.force.enable_all_recipes()&lt;br /&gt;
 game.local_player.force.research_all_technologies()&lt;br /&gt;
 game.local_player.force.technologies[&amp;quot;technology-name&amp;quot;].researched = true&lt;br /&gt;
 &lt;br /&gt;
 # cheating&lt;br /&gt;
 game.local_player.force.manual_mining_speed_modifier = 200&lt;br /&gt;
 game.local_player.force.manual_crafting_speed_modifier = 200&lt;br /&gt;
 game.speed = 2&lt;br /&gt;
 game.freeze_day_time()&lt;br /&gt;
 game.always_day = true&lt;br /&gt;
 game.peaceful_mode = true&lt;br /&gt;
 game.local_player.insert{name=&amp;quot;item-name&amp;quot;, count=1}&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Console&amp;diff=125260</id>
		<title>Console</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Console&amp;diff=125260"/>
		<updated>2016-05-29T08:08:17Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: /* How to open the console? */  - removed redundant message re: &amp;#039;/c&amp;#039; command prefix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
&lt;br /&gt;
{{stub|This article needs to be completely rewritten.}}&lt;br /&gt;
&lt;br /&gt;
The console is the built in interface for lua-commands. It works a bit like any command-line-interface or the java-script-console for your browser.&lt;br /&gt;
&lt;br /&gt;
Basically you can fire here all commands, like from any other lua-program (= [[Modding]]). This means you have full access to all in-game-internals. &lt;br /&gt;
&lt;br /&gt;
In other words: Factorio doesn&#039;t need any special cheats, it has a console, which allows you to cheat around any limition, if you know how.&lt;br /&gt;
&lt;br /&gt;
== How to open the console? ==&lt;br /&gt;
&lt;br /&gt;
You open the console by default with the key&#039;&#039;&#039; &#039;/&#039; or &#039;~&#039;&#039;&#039;&#039;. This is the chat window in multiplayer. You need to type &#039;/c&#039; in front of your commands, otherwise it is just a chat message!&lt;br /&gt;
&lt;br /&gt;
To change that key go into the keyboard control and change &amp;quot;Toggle Lua console&amp;quot; to a useful key.&lt;br /&gt;
&lt;br /&gt;
=== Editing ===&lt;br /&gt;
&lt;br /&gt;
The console has an inbuilt history. You can use the &amp;quot;cursor-up&amp;quot;-key to edit/repeat the previous commands.&lt;br /&gt;
&lt;br /&gt;
The game ignores newlines when pasting &amp;quot;scriptlets&amp;quot; in the console. This means they can be written in a human readable form in an editor and copy/pasted into the console, making understanding and editing a bit easier.&lt;br /&gt;
&lt;br /&gt;
On the other hand, if you want to type &#039;&#039;several commands in one line&#039;&#039; you just need to put &#039;;&#039; (semicolon) between the commands - see examples down below.&lt;br /&gt;
&lt;br /&gt;
== Useful commands (cheats) ==&lt;br /&gt;
&lt;br /&gt;
The 0.12.x updated added a _ to a the majority of the methods and properties.&lt;br /&gt;
&lt;br /&gt;
* Remove all enemies from the map&lt;br /&gt;
    /c local surface = game.local_player.surface&lt;br /&gt;
    for c in surface.get_chunks() do&lt;br /&gt;
        for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, force= &amp;quot;enemy&amp;quot;})) do&lt;br /&gt;
            entity.destroy()&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
* Use it as command-line-calculator (see above: you can repeat command with the &amp;quot;cursor up&amp;quot;-key!)&lt;br /&gt;
 /c game.local_player.print(1234 * 5678)&lt;br /&gt;
&lt;br /&gt;
* Check how far the biters have evolved&lt;br /&gt;
 /c game.local_player.print(game.evolution_factor)&lt;br /&gt;
&lt;br /&gt;
* Turn off night&lt;br /&gt;
 /c game.always_day=true&lt;br /&gt;
&lt;br /&gt;
* Zoom out to place blueprints, that are bigger than your screen.&lt;br /&gt;
 /c game.local_player.zoom = 0.1&lt;br /&gt;
&lt;br /&gt;
* Kill all biters on the &amp;quot;enemy&amp;quot; force&lt;br /&gt;
 /c game.forces[&amp;quot;enemy&amp;quot;].kill_all_units()&lt;br /&gt;
&lt;br /&gt;
* Add 100 iron plates to your inventory&lt;br /&gt;
 /c game.local_player.insert{name=&amp;quot;iron-plate&amp;quot;, count=100}&lt;br /&gt;
&lt;br /&gt;
* Refill resources (refill oil, iron etc.)&lt;br /&gt;
While holding the cursor over a resource in-game&lt;br /&gt;
 /c game.local_player.selected.amount=7500&lt;br /&gt;
&lt;br /&gt;
* Add new resource patch&lt;br /&gt;
This creates a new 5x5 patch of resources, centered on the player character. For resources other than stone, just change &amp;quot;stone&amp;quot; to &amp;quot;iron-ore&amp;quot;, &amp;quot;copper-ore&amp;quot;, or &amp;quot;coal&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 /c local surface = game.local_player.surface;&lt;br /&gt;
 for y=-2,2 do&lt;br /&gt;
  for x=-2,2 do&lt;br /&gt;
   surface.create_entity({name=&amp;quot;stone&amp;quot;, amount=5000, position={game.local_player.position.x+x, game.local_player.position.y+y}})&lt;br /&gt;
  end&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
* Finish research&lt;br /&gt;
 /c for name,technology in pairs(game.local_player.force.technologies) do technology.researched=technology.enabled end&lt;br /&gt;
&lt;br /&gt;
* Mine faster&lt;br /&gt;
 /c game.local_player.force.manual_mining_speed_modifier=1000&lt;br /&gt;
&lt;br /&gt;
* Craft faster&lt;br /&gt;
 /c game.local_player.force.manual_crafting_speed_modifier=1000&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=9020 Switching on peacfulmode]&lt;br /&gt;
 /c game.peaceful_mode = true&lt;br /&gt;
 /c game.forces[&amp;quot;enemy&amp;quot;].kill_all_units()&lt;br /&gt;
&lt;br /&gt;
* Faster research&lt;br /&gt;
 /c game.local_player.force.laboratory_speed_modifier = 1&lt;br /&gt;
1 is normal speed, 2 is double speed 3 is triple etc. I think it goes up to 100.&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=5686 Destroy rocks in sandbox-mode] (you don&#039;t have a player here, so you can&#039;t destroy anything)&lt;br /&gt;
  /c for _,entity in pairs(game.local_player.surface.find_entities_filtered{&lt;br /&gt;
        area={{game.local_player.position.x-32, game.local_player.position.y-32},&lt;br /&gt;
            {game.local_player.position.x+32, game.local_player.position.y+32}},&lt;br /&gt;
            name=&amp;quot;stone-rock&amp;quot;})&lt;br /&gt;
  do&lt;br /&gt;
    entity.destroy()&lt;br /&gt;
  end&lt;br /&gt;
you need to center the rock in your vision range&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=41&amp;amp;t=5638 Use print() instead of game.local_player.print()]&lt;br /&gt;
 /c print = function(text) game.local_player.print(text) end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=14&amp;amp;t=4761&amp;amp;p=44184#p44184 Generate a section of the world and explore it at the same time]&lt;br /&gt;
 /c game.local_player.force.chart(game.local_player.surface,{lefttop = {x = -1024, y = -1024}, rightbottom = {x = 1024, y = 1024}})&lt;br /&gt;
&lt;br /&gt;
Simply change the bounding box to the size you want and it will generate the map and explore it in that area. Keep In mind that command is telling Factorio to generate 64*64 (4096) chunks so it&#039;s going to take a while before all the background entity generation (trees, resources, biters) are placed in the world.&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=6066&amp;amp;p=47758#p47758 Check water level in a pipe]&lt;br /&gt;
 /c game.local_player.print(game.local_player.selected.get_liquid().amount)&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=6633 Enabling technologies]&lt;br /&gt;
 /c game.local_player.force.technologies[&#039;electric-energy-distribution-1&#039;].researched=true&lt;br /&gt;
 /c game.local_player.force.technologies[&#039;steel-processing&#039;].researched=true&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=9028 Player color]&lt;br /&gt;
 /c game.local_player.color={g=50,b=200,r=200,a=.9}&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=9867&amp;amp;p=78209#p78209 Where can I see how many Robots are in my network?]&lt;br /&gt;
Count all &#039;&#039;&#039;active robots&#039;&#039;&#039;&lt;br /&gt;
 /c game.local_player.print(game.local_player.force.get_entitycount(&amp;quot;logistic-robot&amp;quot;))&lt;br /&gt;
 /c game.local_player.print(game.local_player.force.get_entitycount(&amp;quot;construction-robot&amp;quot;))&lt;br /&gt;
&lt;br /&gt;
Count all &#039;&#039;&#039;active and inactive robots&#039;&#039;&#039; in the network, but misses the ones flying over gaps in coverage:&lt;br /&gt;
This is no longer needed because the roboport will give accurate counts.&lt;br /&gt;
    /c robots = {};&lt;br /&gt;
    roboports = {};&lt;br /&gt;
    logistic = 0;&lt;br /&gt;
    construction = 0;&lt;br /&gt;
    recurse = function(r)&lt;br /&gt;
       id = r.position.x .. &amp;quot;,&amp;quot; .. r.position.y;&lt;br /&gt;
       if (roboports[id] or r.force.name ~= game.player.force.name) then return end;&lt;br /&gt;
       roboports[id] = true;&lt;br /&gt;
       logistic = logistic + r.getinventory(1).getitemcount(&amp;quot;logistic-robot&amp;quot;);&lt;br /&gt;
       construction = construction + r.getinventory(1).getitemcount(&amp;quot;construction-robot&amp;quot;);&lt;br /&gt;
       ids = {};&lt;br /&gt;
       for _, robot in ipairs(game.findentitiesfiltered{area={{r.position.x-50, r.position.y-50}, {r.position.x+50, r.position.y+50}}, name=&amp;quot;construction-robot&amp;quot;}) do;&lt;br /&gt;
          id = robot.position.x .. &amp;quot;,&amp;quot; .. robot.position.y;&lt;br /&gt;
          if ((ids[id] or not robots[id]) and robot.force.name == game.player.force.name) then;&lt;br /&gt;
             construction = construction + 1;&lt;br /&gt;
             ids[id] = true;&lt;br /&gt;
             robots[id] = true;&lt;br /&gt;
          end;&lt;br /&gt;
       end;&lt;br /&gt;
       for _, robot in ipairs(game.findentitiesfiltered{area={{r.position.x-50, r.position.y-50}, {r.position.x+50, r.position.y+50}}, name=&amp;quot;logistic-robot&amp;quot;}) do;&lt;br /&gt;
          id = robot.position.x .. &amp;quot;,&amp;quot; .. robot.position.y;&lt;br /&gt;
          if ((ids[id] or not robots[id]) and robot.force.name == game.player.force.name) then;&lt;br /&gt;
             logistic = logistic + 1;&lt;br /&gt;
             ids[id] = true;&lt;br /&gt;
             robots[id] = true;&lt;br /&gt;
          end;&lt;br /&gt;
       end;&lt;br /&gt;
       for _, roboport in ipairs(game.findentitiesfiltered{area={{r.position.x-48.5, r.position.y-48.5}, {r.position.x+48.5, r.position.y+48.5}}, name=&amp;quot;roboport&amp;quot;}) do;&lt;br /&gt;
          recurse(roboport);&lt;br /&gt;
       end;&lt;br /&gt;
    end;&lt;br /&gt;
    p = game.player.character.position;&lt;br /&gt;
    roboport = game.findentitiesfiltered{area={{p.x-48.5, p.y-48.5}, {p.x+48.5, p.y+48.5}}, name=&amp;quot;roboport&amp;quot;}[1];&lt;br /&gt;
    if (roboport) then;&lt;br /&gt;
       recurse(roboport);&lt;br /&gt;
       game.player.print(&amp;quot;Robots in network: Construction:&amp;quot; .. construction .. &amp;quot; Logistic:&amp;quot; .. logistic);&lt;br /&gt;
    else;&lt;br /&gt;
       game.player.print(&amp;quot;Not in range of a roboport.&amp;quot;);&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=34&amp;amp;t=10159 Disable evolution, increases pollution evolution instead]&lt;br /&gt;
 /c game.mapsettings.enemy_evolution.time_factor = 0.000008 * 0&lt;br /&gt;
 /c game.mapsettings.enemy_evolution.pollution_factor = 0.00003 * 2&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=19447&amp;amp;p=124039#p123991 Custom Scenario: How to spawn a character at a certain point (instead of being in god-mode] &lt;br /&gt;
 /c game.local_player.character = game.local_player.surface.create_entity{name=&amp;quot;player&amp;quot;, position = {0,0}, force = game.forces.player}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More commands can be looked up in the [[Modding|modding-section]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=7981 Superspeedrun]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=4752 The Console: What is it and How do I use it?]&lt;br /&gt;
: Some interesting cheats or useful commands and tips.&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=6942&amp;amp;p=543H57#p54357 Totaly new player -&amp;gt; setting up a game]:&lt;br /&gt;
 # Preface all console commands with /c in .11.0+&lt;br /&gt;
 &lt;br /&gt;
 # Set player to white&lt;br /&gt;
 game.local_player.color = {g=1,b=1,r=1,a=.9}&lt;br /&gt;
 &lt;br /&gt;
 # remove old player&lt;br /&gt;
 game.remove_offline_player(&amp;quot;username&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 # Technology and Recipe unlocking&lt;br /&gt;
 game.local_player.force.reset_technologies()&lt;br /&gt;
 game.local_player.force.reset_recipes()&lt;br /&gt;
 game.local_player.force.enable_all_technologies() # does not research them (see below)&lt;br /&gt;
 game.local_player.force.enable_all_recipes()&lt;br /&gt;
 game.local_player.force.research_all_technologies()&lt;br /&gt;
 game.local_player.force.technologies[&amp;quot;technology-name&amp;quot;].researched = true&lt;br /&gt;
 &lt;br /&gt;
 # cheating&lt;br /&gt;
 game.local_player.force.manual_mining_speed_modifier = 200&lt;br /&gt;
 game.local_player.force.manual_crafting_speed_modifier = 200&lt;br /&gt;
 game.speed = 2&lt;br /&gt;
 game.freeze_day_time()&lt;br /&gt;
 game.always_day = true&lt;br /&gt;
 game.peaceful_mode = true&lt;br /&gt;
 game.local_player.insert{name=&amp;quot;item-name&amp;quot;, count=1}&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Map_editor&amp;diff=125259</id>
		<title>Map editor</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Map_editor&amp;diff=125259"/>
		<updated>2016-05-29T08:02:26Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: /* Saving your Scenario */ - added note about how to load saved scenarios&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;This page is heavily a work in progress.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Factorio comes stock-standard with a map editor. You can access it by selecting &amp;quot;Map editor&amp;quot; on your Factorio main menu.&lt;br /&gt;
&lt;br /&gt;
The editor is much like in-game, except there is no player, and you have unlimited resources.&lt;br /&gt;
&lt;br /&gt;
== Loading a Map From a Game ==&lt;br /&gt;
&lt;br /&gt;
See [[Modding#Creating_a_scenario_from_a_saved_game_.28map.29|Modding: Creating a scenario from a saved game]].&lt;br /&gt;
&lt;br /&gt;
== Saving your Scenario ==&lt;br /&gt;
Maps created with the map editor are saved as [[Scenarios|Scenarios]] via the in-game escape menu. These scenarios are saved to the [[Application directory|User data directory]]. The scenario may then be played from selecting Play-&amp;gt;Custom Scenario from the Main Menu.&lt;br /&gt;
&lt;br /&gt;
== Placing Entities ==&lt;br /&gt;
To place an entity (labs, powerlines, transport belts, mining drills, etc...), select &amp;quot;Entities&amp;quot; from your toolbox, select a tool, select what you want to place down, then click somewhere to place that item down.&lt;br /&gt;
&lt;br /&gt;
You have three tools.&lt;br /&gt;
=== Cursor ===&lt;br /&gt;
Appropriate for most situations. Places one of the selected entity at the current cursors position. Much like the normal in-game mechanics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tip:&#039;&#039;&#039; Pressing &amp;quot;Q&amp;quot; on your keyboard will put the item you&#039;re holding away.&lt;br /&gt;
&lt;br /&gt;
=== Spray ===&lt;br /&gt;
Good for resource piles and trees. You can select a size, intensity and speed, the larger the size, the more area that the spray places entities, the higher the intensity, the more often entities get placed, the higher the speed, the more rapidly the spray continues spraying while holding down the mouse button.&lt;br /&gt;
&lt;br /&gt;
=== Paintbrush ===&lt;br /&gt;
The paintbrush is virtually the same as the spray, only difference is that if you hold down the mouse button, the tool won&#039;t continue to place entities. Also good for resource piles and trees. Whether you use spray or paintbrush is personal preference.&lt;br /&gt;
&lt;br /&gt;
== Deleting Entities ==&lt;br /&gt;
==== Cursor ====&lt;br /&gt;
When using the cursor tool, you can hover over the entity you wish to delete, and press &amp;quot;X&amp;quot; on your keyboard.&lt;br /&gt;
&lt;br /&gt;
==== Spray/Paintbrush ====&lt;br /&gt;
When using either the spray or the paintbrush, right click to &amp;quot;unspray&amp;quot; - though, this process can be slow, using the cursor to delete entities is much more efficient.&lt;br /&gt;
&lt;br /&gt;
== Placing Items ==&lt;br /&gt;
You can place items for the player to pick up in the editor. To do this, select the &amp;quot;Items&amp;quot; tab. From there, select what you wish to place down, then hover your mouse to where you wish to place the item down and right-click.&lt;br /&gt;
&lt;br /&gt;
To delete items that you&#039;ve placed, just like when placing entities, press &amp;quot;X&amp;quot; on your keyboard while hovering over the item you want to delete.&lt;br /&gt;
&lt;br /&gt;
== Placing Items Inside Chests (and other entities) ==&lt;br /&gt;
&lt;br /&gt;
Press Q to deselect everything you currently hold in hand. After that left click on an entity to open its inventory. Now you can place items in that inventory. Based on your game settings you might need to use another event, see in the game-options.&lt;br /&gt;
&lt;br /&gt;
== Set up research ==&lt;br /&gt;
&lt;br /&gt;
http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=6219&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Map_editor&amp;diff=125258</id>
		<title>Map editor</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Map_editor&amp;diff=125258"/>
		<updated>2016-05-29T08:00:30Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: Added section explaining that saving an edited map results in a &amp;#039;scenario&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;This page is heavily a work in progress.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Factorio comes stock-standard with a map editor. You can access it by selecting &amp;quot;Map editor&amp;quot; on your Factorio main menu.&lt;br /&gt;
&lt;br /&gt;
The editor is much like in-game, except there is no player, and you have unlimited resources.&lt;br /&gt;
&lt;br /&gt;
== Loading a Map From a Game ==&lt;br /&gt;
&lt;br /&gt;
See [[Modding#Creating_a_scenario_from_a_saved_game_.28map.29|Modding: Creating a scenario from a saved game]].&lt;br /&gt;
&lt;br /&gt;
== Saving your Scenario ==&lt;br /&gt;
Maps created with the map editor are saved as [[Scenarios|Scenarios]] via the in-game escape menu. These scenarios are saved to the [[Application directory|User data directory]].&lt;br /&gt;
&lt;br /&gt;
== Placing Entities ==&lt;br /&gt;
To place an entity (labs, powerlines, transport belts, mining drills, etc...), select &amp;quot;Entities&amp;quot; from your toolbox, select a tool, select what you want to place down, then click somewhere to place that item down.&lt;br /&gt;
&lt;br /&gt;
You have three tools.&lt;br /&gt;
=== Cursor ===&lt;br /&gt;
Appropriate for most situations. Places one of the selected entity at the current cursors position. Much like the normal in-game mechanics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tip:&#039;&#039;&#039; Pressing &amp;quot;Q&amp;quot; on your keyboard will put the item you&#039;re holding away.&lt;br /&gt;
&lt;br /&gt;
=== Spray ===&lt;br /&gt;
Good for resource piles and trees. You can select a size, intensity and speed, the larger the size, the more area that the spray places entities, the higher the intensity, the more often entities get placed, the higher the speed, the more rapidly the spray continues spraying while holding down the mouse button.&lt;br /&gt;
&lt;br /&gt;
=== Paintbrush ===&lt;br /&gt;
The paintbrush is virtually the same as the spray, only difference is that if you hold down the mouse button, the tool won&#039;t continue to place entities. Also good for resource piles and trees. Whether you use spray or paintbrush is personal preference.&lt;br /&gt;
&lt;br /&gt;
== Deleting Entities ==&lt;br /&gt;
==== Cursor ====&lt;br /&gt;
When using the cursor tool, you can hover over the entity you wish to delete, and press &amp;quot;X&amp;quot; on your keyboard.&lt;br /&gt;
&lt;br /&gt;
==== Spray/Paintbrush ====&lt;br /&gt;
When using either the spray or the paintbrush, right click to &amp;quot;unspray&amp;quot; - though, this process can be slow, using the cursor to delete entities is much more efficient.&lt;br /&gt;
&lt;br /&gt;
== Placing Items ==&lt;br /&gt;
You can place items for the player to pick up in the editor. To do this, select the &amp;quot;Items&amp;quot; tab. From there, select what you wish to place down, then hover your mouse to where you wish to place the item down and right-click.&lt;br /&gt;
&lt;br /&gt;
To delete items that you&#039;ve placed, just like when placing entities, press &amp;quot;X&amp;quot; on your keyboard while hovering over the item you want to delete.&lt;br /&gt;
&lt;br /&gt;
== Placing Items Inside Chests (and other entities) ==&lt;br /&gt;
&lt;br /&gt;
Press Q to deselect everything you currently hold in hand. After that left click on an entity to open its inventory. Now you can place items in that inventory. Based on your game settings you might need to use another event, see in the game-options.&lt;br /&gt;
&lt;br /&gt;
== Set up research ==&lt;br /&gt;
&lt;br /&gt;
http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=6219&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Application_directory&amp;diff=125257</id>
		<title>Application directory</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Application_directory&amp;diff=125257"/>
		<updated>2016-05-29T07:52:06Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: /* User Data directory */  - added player data, reworded config file deletion statement&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
= Overview = &lt;br /&gt;
Depending on your installation method and OS, you will have one or two directories that contain Factorio assets.&lt;br /&gt;
== Application directory ==&lt;br /&gt;
The application directory stores&lt;br /&gt;
* Factorio executables (./bin)&lt;br /&gt;
* Data for vanilla Factorio (./data)&lt;br /&gt;
* API documentation&lt;br /&gt;
&lt;br /&gt;
== User Data directory ==&lt;br /&gt;
* Save games (as zip files within ./saves)&lt;br /&gt;
* User-installed/created [[Mods]] (./mods)&lt;br /&gt;
* User-installed/created [[scenarios]] (./scenarios)&lt;br /&gt;
* User configuration (./config)&lt;br /&gt;
* [[Log File]] (factorio-*.log)&lt;br /&gt;
* Player data (player-data.json)&lt;br /&gt;
&lt;br /&gt;
Note: Deleting the configuration file will result in a replacement being generated upon the next Factorio launch.&lt;br /&gt;
&lt;br /&gt;
It is recommended to create backups from this directory before installing a new version.&lt;br /&gt;
&lt;br /&gt;
= Directory locations by OS and installation method =&lt;br /&gt;
== Windows ==&lt;br /&gt;
=== Installation via Steam ===&lt;br /&gt;
Application directory:&lt;br /&gt;
 C:\Program Files (x86)\Steam\steamapps\common\Factorio&lt;br /&gt;
User data directory:&lt;br /&gt;
 %appdata%\factorio&lt;br /&gt;
&lt;br /&gt;
=== Installation by Zip-package ===&lt;br /&gt;
Application directory and User data directory will be the location to which Factorio was unpacked.&lt;br /&gt;
&lt;br /&gt;
:For example, if you unpacked the zip to:&lt;br /&gt;
 C:\Factorio&lt;br /&gt;
:Then your saves can be found in:&lt;br /&gt;
 C:\Factorio\saves&lt;br /&gt;
:and mods in:&lt;br /&gt;
 C:\Factorio\mods&lt;br /&gt;
&lt;br /&gt;
=== Installation via Installer ===&lt;br /&gt;
Application directory:&lt;br /&gt;
 C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\Factorio&lt;br /&gt;
User data directory:&lt;br /&gt;
 %appdata%\factorio&lt;br /&gt;
&lt;br /&gt;
== MacOSx ==&lt;br /&gt;
The application should be by default installed in the Apps-folder.&lt;br /&gt;
&lt;br /&gt;
Whereas the data is stored under&lt;br /&gt;
 /users/&amp;lt;replace with your username&amp;gt;/Library/Application Support/factorio&lt;br /&gt;
&lt;br /&gt;
Which is equivalent to&lt;br /&gt;
 ~/Library/Application Support/factorio&lt;br /&gt;
You can type in this into the Finder (press SHIFT-COMMAND-G for goto folder) and put in exactly this line.&#039;&lt;br /&gt;
Or you can use in Finder the &#039;Find a folder&#039; and write &#039;~/Library/Application Support&#039; (See [http://www.factorioforums.com/forum/viewtopic.php?f=49&amp;amp;t=9345 Can&#039;t find Mods folder]).&lt;br /&gt;
&lt;br /&gt;
The factorio internal application-data can be found (when you have installed it) in&lt;br /&gt;
&lt;br /&gt;
 /Applications/factorio.app/Contents/data&lt;br /&gt;
&lt;br /&gt;
Same directory structure as in Application support.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Data is stored under&lt;br /&gt;
 __Game_Install_Directory__&lt;br /&gt;
&lt;br /&gt;
=== Installation via Steam ===&lt;br /&gt;
Data is stored under &lt;br /&gt;
 ~/.factorio&lt;br /&gt;
&lt;br /&gt;
=Changing the application directory=&lt;br /&gt;
&lt;br /&gt;
You can create a file &amp;lt;code&amp;gt;config-path.config&amp;lt;/code&amp;gt; to configure Factorio to any directory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[http://www.factorioforums.com/forum/viewtopic.php?f=49&amp;amp;t=12819&amp;amp;p=87281#p87281 Please see this discussion]&#039;&#039;&#039; (for MacOS, but should work on any other OS).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;: there is also the [[Install_guide#Installer_or_Zip-Package|ZIP-Package]], that can be installed in any directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== The following discussion applies to version 0.11.13. ===&lt;br /&gt;
&lt;br /&gt;
In order to change the application directory, user must edit the location of the &amp;quot;write-data&amp;quot; entry in the file &amp;lt;code&amp;gt;__Game_Install_directory/config/config.ini&amp;lt;/code&amp;gt;. This affects the location of mods, scenario and temp.&lt;br /&gt;
&lt;br /&gt;
If you want to move only the location of your save files you can &#039;&#039;&#039;[[Application_Directory/Changing_the_save_directory|change the the save directory using symlinks]]&#039;&#039;&#039; but this still means that all users of the computer will share the same data, including settings.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
Update &amp;lt;code&amp;gt;__Game_Install_directory/config-path.cfg&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 use-system-read-write-data-directories=true&lt;br /&gt;
&lt;br /&gt;
Update &amp;lt;code&amp;gt;__Game_Install_directory/config/config.ini&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 [path]&lt;br /&gt;
 read-data=__PATH__executable__/../../data&lt;br /&gt;
 write-data=.local/share/factorio&lt;br /&gt;
&lt;br /&gt;
You could set the &amp;lt;code&amp;gt;write-data&amp;lt;/code&amp;gt; value to &#039;&#039;&#039;&amp;lt;code&amp;gt;.factorio&amp;lt;/code&amp;gt;&#039;&#039;&#039; if you prefer.&lt;br /&gt;
&lt;br /&gt;
Once you have done this, you can remove write permissions to the entire game installation directory &#039;&#039;&#039;except&#039;&#039;&#039; for &amp;lt;code&amp;gt;config/config.ini&amp;lt;/code&amp;gt;, which &#039;&#039;&#039;must&#039;&#039;&#039; be writable by all people who wish to play the game.&lt;br /&gt;
&lt;br /&gt;
Note that if someone changes any options, in-game, those option changes will apply to everyone who plays on the same computer.&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[Download and Installation]]&lt;br /&gt;
* [[Install Guide]]&lt;br /&gt;
* [[Mods]]&lt;br /&gt;
* [[Installing Mods]]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=34&amp;amp;t=3389 Forum discussion]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=8294 Linux Version - Save games in $HOME somewhere]&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Application_directory&amp;diff=125255</id>
		<title>Application directory</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Application_directory&amp;diff=125255"/>
		<updated>2016-05-29T07:44:26Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: Restructured page and added details on the user data and the application directories&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
= Overview = &lt;br /&gt;
Depending on your installation method and OS, you will have one or two directories that contain Factorio assets.&lt;br /&gt;
== Application directory ==&lt;br /&gt;
The application directory stores&lt;br /&gt;
* Factorio executables (./bin)&lt;br /&gt;
* Data for vanilla Factorio (./data)&lt;br /&gt;
* API documentation&lt;br /&gt;
&lt;br /&gt;
== User Data directory ==&lt;br /&gt;
* Save games (as zip files within ./saves)&lt;br /&gt;
* User-installed/created [[Mods]] (./mods)&lt;br /&gt;
* User-installed/created [[scenarios]] (./scenarios)&lt;br /&gt;
* User configuration (./config)&lt;br /&gt;
* [[Log File]] (factorio-*.log)&lt;br /&gt;
&lt;br /&gt;
You can delete for example the configuration-file; it will be generated new with the defaults.&lt;br /&gt;
&lt;br /&gt;
It is recommended to create backups from this directory before installing a new version.&lt;br /&gt;
&lt;br /&gt;
= Directory locations by OS and installation method =&lt;br /&gt;
== Windows ==&lt;br /&gt;
=== Installation via Steam ===&lt;br /&gt;
Application directory:&lt;br /&gt;
 C:\Program Files (x86)\Steam\steamapps\common\Factorio&lt;br /&gt;
User data directory:&lt;br /&gt;
 %appdata%\factorio&lt;br /&gt;
&lt;br /&gt;
=== Installation by Zip-package ===&lt;br /&gt;
Application directory and User data directory will be the location to which Factorio was unpacked.&lt;br /&gt;
&lt;br /&gt;
:For example, if you unpacked the zip to:&lt;br /&gt;
 C:\Factorio&lt;br /&gt;
:Then your saves can be found in:&lt;br /&gt;
 C:\Factorio\saves&lt;br /&gt;
:and mods in:&lt;br /&gt;
 C:\Factorio\mods&lt;br /&gt;
&lt;br /&gt;
=== Installation via Installer ===&lt;br /&gt;
Application directory:&lt;br /&gt;
 C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\Factorio&lt;br /&gt;
User data directory:&lt;br /&gt;
 %appdata%\factorio&lt;br /&gt;
&lt;br /&gt;
== MacOSx ==&lt;br /&gt;
The application should be by default installed in the Apps-folder.&lt;br /&gt;
&lt;br /&gt;
Whereas the data is stored under&lt;br /&gt;
 /users/&amp;lt;replace with your username&amp;gt;/Library/Application Support/factorio&lt;br /&gt;
&lt;br /&gt;
Which is equivalent to&lt;br /&gt;
 ~/Library/Application Support/factorio&lt;br /&gt;
You can type in this into the Finder (press SHIFT-COMMAND-G for goto folder) and put in exactly this line.&#039;&lt;br /&gt;
Or you can use in Finder the &#039;Find a folder&#039; and write &#039;~/Library/Application Support&#039; (See [http://www.factorioforums.com/forum/viewtopic.php?f=49&amp;amp;t=9345 Can&#039;t find Mods folder]).&lt;br /&gt;
&lt;br /&gt;
The factorio internal application-data can be found (when you have installed it) in&lt;br /&gt;
&lt;br /&gt;
 /Applications/factorio.app/Contents/data&lt;br /&gt;
&lt;br /&gt;
Same directory structure as in Application support.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Data is stored under&lt;br /&gt;
 __Game_Install_Directory__&lt;br /&gt;
&lt;br /&gt;
=== Installation via Steam ===&lt;br /&gt;
Data is stored under &lt;br /&gt;
 ~/.factorio&lt;br /&gt;
&lt;br /&gt;
=Changing the application directory=&lt;br /&gt;
&lt;br /&gt;
You can create a file &amp;lt;code&amp;gt;config-path.config&amp;lt;/code&amp;gt; to configure Factorio to any directory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[http://www.factorioforums.com/forum/viewtopic.php?f=49&amp;amp;t=12819&amp;amp;p=87281#p87281 Please see this discussion]&#039;&#039;&#039; (for MacOS, but should work on any other OS).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;: there is also the [[Install_guide#Installer_or_Zip-Package|ZIP-Package]], that can be installed in any directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== The following discussion applies to version 0.11.13. ===&lt;br /&gt;
&lt;br /&gt;
In order to change the application directory, user must edit the location of the &amp;quot;write-data&amp;quot; entry in the file &amp;lt;code&amp;gt;__Game_Install_directory/config/config.ini&amp;lt;/code&amp;gt;. This affects the location of mods, scenario and temp.&lt;br /&gt;
&lt;br /&gt;
If you want to move only the location of your save files you can &#039;&#039;&#039;[[Application_Directory/Changing_the_save_directory|change the the save directory using symlinks]]&#039;&#039;&#039; but this still means that all users of the computer will share the same data, including settings.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
Update &amp;lt;code&amp;gt;__Game_Install_directory/config-path.cfg&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 use-system-read-write-data-directories=true&lt;br /&gt;
&lt;br /&gt;
Update &amp;lt;code&amp;gt;__Game_Install_directory/config/config.ini&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 [path]&lt;br /&gt;
 read-data=__PATH__executable__/../../data&lt;br /&gt;
 write-data=.local/share/factorio&lt;br /&gt;
&lt;br /&gt;
You could set the &amp;lt;code&amp;gt;write-data&amp;lt;/code&amp;gt; value to &#039;&#039;&#039;&amp;lt;code&amp;gt;.factorio&amp;lt;/code&amp;gt;&#039;&#039;&#039; if you prefer.&lt;br /&gt;
&lt;br /&gt;
Once you have done this, you can remove write permissions to the entire game installation directory &#039;&#039;&#039;except&#039;&#039;&#039; for &amp;lt;code&amp;gt;config/config.ini&amp;lt;/code&amp;gt;, which &#039;&#039;&#039;must&#039;&#039;&#039; be writable by all people who wish to play the game.&lt;br /&gt;
&lt;br /&gt;
Note that if someone changes any options, in-game, those option changes will apply to everyone who plays on the same computer.&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[Download and Installation]]&lt;br /&gt;
* [[Install Guide]]&lt;br /&gt;
* [[Mods]]&lt;br /&gt;
* [[Installing Mods]]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=34&amp;amp;t=3389 Forum discussion]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=8294 Linux Version - Save games in $HOME somewhere]&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Application_directory&amp;diff=125254</id>
		<title>Application directory</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Application_directory&amp;diff=125254"/>
		<updated>2016-05-29T07:33:00Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: /* Windows */ - indentation revert from my last edit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
The application directory stores&lt;br /&gt;
* the saves (every save is a zip-file)&lt;br /&gt;
* the [[Mods]]&lt;br /&gt;
* scenarios&lt;br /&gt;
* configuration&lt;br /&gt;
* [[Log File]] (since v0.10.0).&lt;br /&gt;
&lt;br /&gt;
The directory structure is self-explaining.&lt;br /&gt;
&lt;br /&gt;
You can delete for example the configuration-file; it will be generated new with the defaults.&lt;br /&gt;
&lt;br /&gt;
It is recommended to create backups from this directory, before you install a new version.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
=== Installation via Steam ===&lt;br /&gt;
Application directory:&lt;br /&gt;
 C:\Program Files (x86)\Steam\steamapps\common\Factorio&lt;br /&gt;
User data directory:&lt;br /&gt;
 %appdata%\factorio&lt;br /&gt;
&lt;br /&gt;
=== Installation by Zip-package ===&lt;br /&gt;
Application directory and User data directory will be the location to which Factorio was unpacked.&lt;br /&gt;
&lt;br /&gt;
:For example, if you unpacked the zip to:&lt;br /&gt;
 C:\Factorio&lt;br /&gt;
:Then your saves can be found in:&lt;br /&gt;
 C:\Factorio\saves&lt;br /&gt;
:and mods in:&lt;br /&gt;
 C:\Factorio\mods&lt;br /&gt;
&lt;br /&gt;
=== Installation via Installer ===&lt;br /&gt;
Application directory:&lt;br /&gt;
 C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\Factorio&lt;br /&gt;
User data directory:&lt;br /&gt;
 %appdata%\factorio&lt;br /&gt;
&lt;br /&gt;
== MacOSx ==&lt;br /&gt;
The application should be by default installed in the Apps-folder.&lt;br /&gt;
&lt;br /&gt;
Whereas the data is stored under&lt;br /&gt;
 /users/&amp;lt;replace with your username&amp;gt;/Library/Application Support/factorio&lt;br /&gt;
&lt;br /&gt;
Which is equivalent to&lt;br /&gt;
 ~/Library/Application Support/factorio&lt;br /&gt;
You can type in this into the Finder (press SHIFT-COMMAND-G for goto folder) and put in exactly this line.&#039;&lt;br /&gt;
Or you can use in Finder the &#039;Find a folder&#039; and write &#039;~/Library/Application Support&#039; (See [http://www.factorioforums.com/forum/viewtopic.php?f=49&amp;amp;t=9345 Can&#039;t find Mods folder]).&lt;br /&gt;
&lt;br /&gt;
The factorio internal application-data can be found (when you have installed it) in&lt;br /&gt;
&lt;br /&gt;
 /Applications/factorio.app/Contents/data&lt;br /&gt;
&lt;br /&gt;
Same directory structure as in Application support.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Data is stored under&lt;br /&gt;
 __Game_Install_Directory__&lt;br /&gt;
&lt;br /&gt;
=== Installation via Steam ===&lt;br /&gt;
Data is stored under &lt;br /&gt;
 ~/.factorio&lt;br /&gt;
&lt;br /&gt;
==Changing the application directory==&lt;br /&gt;
&lt;br /&gt;
You can create a file &amp;lt;code&amp;gt;config-path.config&amp;lt;/code&amp;gt; to configure Factorio to any directory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[http://www.factorioforums.com/forum/viewtopic.php?f=49&amp;amp;t=12819&amp;amp;p=87281#p87281 Please see this discussion]&#039;&#039;&#039; (for MacOS, but should work on any other OS).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;: there is also the [[Install_guide#Installer_or_Zip-Package|ZIP-Package]], that can be installed in any directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== The following discussion applies to version 0.11.13. ===&lt;br /&gt;
&lt;br /&gt;
It is possible to change the application directory location for Factorio.&lt;br /&gt;
&lt;br /&gt;
This can be done by editing the location of the &amp;quot;write-data&amp;quot; entry in the file &amp;lt;code&amp;gt;__Game_Install_directory/config/config.ini&amp;lt;/code&amp;gt;. This affects the location of mods, scenario and temp.&lt;br /&gt;
&lt;br /&gt;
If you want to move only the location of your save files you can &#039;&#039;&#039;[[Application_Directory/Changing_the_save_directory|change the the save directory using symlinks]]&#039;&#039;&#039; but this still means that all users of the computer will share the same data, including settings.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
Update &amp;lt;code&amp;gt;__Game_Install_directory/config-path.cfg&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 use-system-read-write-data-directories=true&lt;br /&gt;
&lt;br /&gt;
Update &amp;lt;code&amp;gt;__Game_Install_directory/config/config.ini&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 [path]&lt;br /&gt;
 read-data=__PATH__executable__/../../data&lt;br /&gt;
 write-data=.local/share/factorio&lt;br /&gt;
&lt;br /&gt;
You could set the &amp;lt;code&amp;gt;write-data&amp;lt;/code&amp;gt; value to &#039;&#039;&#039;&amp;lt;code&amp;gt;.factorio&amp;lt;/code&amp;gt;&#039;&#039;&#039; if you prefer.&lt;br /&gt;
&lt;br /&gt;
Once you have done this, you can remove write permissions to the entire game installation directory &#039;&#039;&#039;except&#039;&#039;&#039; for &amp;lt;code&amp;gt;config/config.ini&amp;lt;/code&amp;gt;, which &#039;&#039;&#039;must&#039;&#039;&#039; be writable by all people who wish to play the game.&lt;br /&gt;
&lt;br /&gt;
Note that if someone changes any options, in-game, those option changes will apply to everyone who plays on the same computer.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Download and Installation]]&lt;br /&gt;
* [[Install Guide]]&lt;br /&gt;
* [[Mods]]&lt;br /&gt;
* [[Installing Mods]]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=34&amp;amp;t=3389 Forum discussion]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=8294 Linux Version - Save games in $HOME somewhere]&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Application_directory&amp;diff=125253</id>
		<title>Application directory</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Application_directory&amp;diff=125253"/>
		<updated>2016-05-29T07:31:05Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: /* Windows */ - Added steam path info, formatting, standardized sub-sections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
The application directory stores&lt;br /&gt;
* the saves (every save is a zip-file)&lt;br /&gt;
* the [[Mods]]&lt;br /&gt;
* scenarios&lt;br /&gt;
* configuration&lt;br /&gt;
* [[Log File]] (since v0.10.0).&lt;br /&gt;
&lt;br /&gt;
The directory structure is self-explaining.&lt;br /&gt;
&lt;br /&gt;
You can delete for example the configuration-file; it will be generated new with the defaults.&lt;br /&gt;
&lt;br /&gt;
It is recommended to create backups from this directory, before you install a new version.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
=== Installation via Steam ===&lt;br /&gt;
:Application directory:&lt;br /&gt;
 C:\Program Files (x86)\Steam\steamapps\common\Factorio&lt;br /&gt;
:User data directory:&lt;br /&gt;
 %appdata%\factorio&lt;br /&gt;
&lt;br /&gt;
=== Installation by Zip-package ===&lt;br /&gt;
:Application directory and User data directory will be the location to which Factorio was unpacked.&lt;br /&gt;
&lt;br /&gt;
::For example, if you unpacked the zip to:&lt;br /&gt;
 C:\Factorio&lt;br /&gt;
::Then your saves can be found in:&lt;br /&gt;
 C:\Factorio\saves&lt;br /&gt;
::and mods in:&lt;br /&gt;
 C:\Factorio\mods&lt;br /&gt;
&lt;br /&gt;
=== Installation via Installer ===&lt;br /&gt;
:Application directory:&lt;br /&gt;
 C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\Factorio&lt;br /&gt;
:User data directory:&lt;br /&gt;
 %appdata%\factorio&lt;br /&gt;
&lt;br /&gt;
== MacOSx ==&lt;br /&gt;
The application should be by default installed in the Apps-folder.&lt;br /&gt;
&lt;br /&gt;
Whereas the data is stored under&lt;br /&gt;
 /users/&amp;lt;replace with your username&amp;gt;/Library/Application Support/factorio&lt;br /&gt;
&lt;br /&gt;
Which is equivalent to&lt;br /&gt;
 ~/Library/Application Support/factorio&lt;br /&gt;
You can type in this into the Finder (press SHIFT-COMMAND-G for goto folder) and put in exactly this line.&#039;&lt;br /&gt;
Or you can use in Finder the &#039;Find a folder&#039; and write &#039;~/Library/Application Support&#039; (See [http://www.factorioforums.com/forum/viewtopic.php?f=49&amp;amp;t=9345 Can&#039;t find Mods folder]).&lt;br /&gt;
&lt;br /&gt;
The factorio internal application-data can be found (when you have installed it) in&lt;br /&gt;
&lt;br /&gt;
 /Applications/factorio.app/Contents/data&lt;br /&gt;
&lt;br /&gt;
Same directory structure as in Application support.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Data is stored under&lt;br /&gt;
 __Game_Install_Directory__&lt;br /&gt;
&lt;br /&gt;
=== Installation via Steam ===&lt;br /&gt;
Data is stored under &lt;br /&gt;
 ~/.factorio&lt;br /&gt;
&lt;br /&gt;
==Changing the application directory==&lt;br /&gt;
&lt;br /&gt;
You can create a file &amp;lt;code&amp;gt;config-path.config&amp;lt;/code&amp;gt; to configure Factorio to any directory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[http://www.factorioforums.com/forum/viewtopic.php?f=49&amp;amp;t=12819&amp;amp;p=87281#p87281 Please see this discussion]&#039;&#039;&#039; (for MacOS, but should work on any other OS).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039;: there is also the [[Install_guide#Installer_or_Zip-Package|ZIP-Package]], that can be installed in any directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== The following discussion applies to version 0.11.13. ===&lt;br /&gt;
&lt;br /&gt;
It is possible to change the application directory location for Factorio.&lt;br /&gt;
&lt;br /&gt;
This can be done by editing the location of the &amp;quot;write-data&amp;quot; entry in the file &amp;lt;code&amp;gt;__Game_Install_directory/config/config.ini&amp;lt;/code&amp;gt;. This affects the location of mods, scenario and temp.&lt;br /&gt;
&lt;br /&gt;
If you want to move only the location of your save files you can &#039;&#039;&#039;[[Application_Directory/Changing_the_save_directory|change the the save directory using symlinks]]&#039;&#039;&#039; but this still means that all users of the computer will share the same data, including settings.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
Update &amp;lt;code&amp;gt;__Game_Install_directory/config-path.cfg&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 use-system-read-write-data-directories=true&lt;br /&gt;
&lt;br /&gt;
Update &amp;lt;code&amp;gt;__Game_Install_directory/config/config.ini&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 [path]&lt;br /&gt;
 read-data=__PATH__executable__/../../data&lt;br /&gt;
 write-data=.local/share/factorio&lt;br /&gt;
&lt;br /&gt;
You could set the &amp;lt;code&amp;gt;write-data&amp;lt;/code&amp;gt; value to &#039;&#039;&#039;&amp;lt;code&amp;gt;.factorio&amp;lt;/code&amp;gt;&#039;&#039;&#039; if you prefer.&lt;br /&gt;
&lt;br /&gt;
Once you have done this, you can remove write permissions to the entire game installation directory &#039;&#039;&#039;except&#039;&#039;&#039; for &amp;lt;code&amp;gt;config/config.ini&amp;lt;/code&amp;gt;, which &#039;&#039;&#039;must&#039;&#039;&#039; be writable by all people who wish to play the game.&lt;br /&gt;
&lt;br /&gt;
Note that if someone changes any options, in-game, those option changes will apply to everyone who plays on the same computer.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Download and Installation]]&lt;br /&gt;
* [[Install Guide]]&lt;br /&gt;
* [[Mods]]&lt;br /&gt;
* [[Installing Mods]]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=34&amp;amp;t=3389 Forum discussion]&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=8294 Linux Version - Save games in $HOME somewhere]&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Modding&amp;diff=125251</id>
		<title>Modding</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Modding&amp;diff=125251"/>
		<updated>2016-05-29T06:15:17Z</updated>

		<summary type="html">&lt;p&gt;JohnnyWing: minor formatting/rewording&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages}}&lt;br /&gt;
{{sublinks|Main Page}}&lt;br /&gt;
[[File:Fff-18-entity-graph.jpg|400px|thumb|&#039;Diagram of entities&#039; (objects on the map) class inheritance structure generated by doxygen. Taken From Friday Facts #18 http://www.factorio.com/blog/post/fff-18]]&lt;br /&gt;
&lt;br /&gt;
Modding in Factorio allows for more content created by the community.&lt;br /&gt;
&lt;br /&gt;
==Getting started==&lt;br /&gt;
A good overview is the [[Mods| list of mods]] or the [http://www.factorioforums.com/forum/index.php Factorio forum].&lt;br /&gt;
&lt;br /&gt;
A good starting point is also the [http://www.factorioforums.com/forum/viewforum.php?f=25 modding-Help-Board]. The community is always answering to concrete questions. Sometimes within minutes. Or you could try the [[Modding FAQ]] page.&lt;br /&gt;
&lt;br /&gt;
The [http://lua-api.factorio.com/ Official Lua API documentation] is a great reference for understanding the Factorio functions and types in the game.&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
All mods require a license since v0.11. If a mod has no license it is assumed to have a Creative Commons [http://creativecommons.org/licenses/by-nc/4.0 Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)] license.&lt;br /&gt;
&lt;br /&gt;
See also&lt;br /&gt;
* [http://www.factorioforums.com/forum/viewtopic.php?f=6&amp;amp;t=6202&amp;amp;p=48971#p48968 this forum article].&lt;br /&gt;
: In this article the devs explain also, that the base-mod (which is part of Factorio) can be used to create new mods, but not used for &amp;quot;outside of Factorio domain&amp;quot;.&lt;br /&gt;
* http://www.factorio.com/terms-of-service&lt;br /&gt;
&lt;br /&gt;
==Creating a scenario from a saved game (map)==&lt;br /&gt;
An often asked question is how to make a scenario (something which can be edited in the map editor) from a map:&lt;br /&gt;
[http://www.factorioforums.com/forum/viewtopic.php?f=18&amp;amp;t=2844 Factorio can convert them] ([http://www.factorioforums.com/forum/viewtopic.php?f=5&amp;amp;t=3801&amp;amp;p=28289#p28289 see also this post]):&lt;br /&gt;
 ./bin/prod/factorio --map2scenario mapfoo&lt;br /&gt;
&lt;br /&gt;
[[GameClient|More about the client parameters]]&lt;br /&gt;
&lt;br /&gt;
==Creating scenarios with the map editor==&lt;br /&gt;
Another first step is also making maps with the ingame editor. That stores the map as a &#039;&#039;&#039;scenario&#039;&#039;&#039;, which is just a directory on disk with some files in it. You can look into those files to get a better understanding as to what they are for, or you can read the following pages:&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
* [[Modding overview]]&lt;br /&gt;
* [[Prototype definitions]]&lt;br /&gt;
* [[Data.raw]]&lt;br /&gt;
* [[Lua/Events|Lua events]]&lt;br /&gt;
* [[Lua objects]]&lt;br /&gt;
* [[Script interfaces]]&lt;br /&gt;
* [[Lua/Data Lifecycle]]&lt;br /&gt;
* [[Migration scripts]]&lt;br /&gt;
* [[Modding FAQ]]&lt;br /&gt;
* [[Modding Tutorial]]&lt;br /&gt;
&lt;br /&gt;
==Other interesting stuff==&lt;br /&gt;
* Tutorial: [http://www.factorioforums.com/forum/viewtopic.php?f=15&amp;amp;t=8613 Create graphics for your mod...], how to generate sprite maps&lt;/div&gt;</summary>
		<author><name>JohnnyWing</name></author>
	</entry>
</feed>