Factorio how to install mods
Factorio how to install mods
Factorio how to install mods
Anyone else having issues with this other than me?
Downloaded a couple mods and dropped the non zopped folder into c:\Users\user name\AppData\Roaming\Factorio\mods\
With the game running and the mods showing up on the list as enabled I try to load an old game or generate a new one and it gives me an error: attempt to index a global ‘game’ (a nil value)
Any idea what is happening here? I would assume an incorrect installation on my part would not even have it showing up on the mod list.
With the game running and the mods showing up on the list as enabled I try to load an old game or generate a new one and it gives me an error: attempt to index a global ‘game’ (a nil value)
Are you sure they are compatible? That error message means at least one of the mods hasn’t been updated for 0.12.11 and above. The name of the mod should be in the same error message.
Besides, it is recommended you keep them zipped, as Factorio can load them faster then.
This is the first mod I was dropping in just to test the gameplay with it out and with my limited experience with mods for this game all I have to go on is the description from the author which says it was tested with 0.12.2
When I look at the mod in the game to toggle it on or off under dependencies i get >= 0.12.2
This is the mod in question:
And again the full error text is:
__spring-water__/control.lua:27: attempt to index global ‘game’ (a nil value)
Originally i did extract the file folder into the mods section, but changed that out to the zip folder after reading above.
I am just trying to find alternative power sources than coal and solar is all here and if there is a better or an alternative that works and I missed something along the road here any help is appreciated.
Factorio version numbers are a little confusing for some. 0.12.2 is older than 0.12.11, so this mod is not compatible. However, replace all 7 occurences of game with script in control.lua and the mod works.
Factorio versioning
It is 0.12.[x], where x is increased by one.
First are versions 0.12.0 to 0.12.9, then come 0.12.10 to 0.12.19, and then 0.12.20 to 0.12.24 (current version).
Modding
This page tells you how to download and install mods, and gives a quick overview of what you should keep in mind when creating a mod. For more detailed instructions on creating mods, you may view the modding tutorial page. If you are looking for the modding API, check out the official Factorio Lua API documentation website. If you wish to know where to install a mod which is in a zipped format, please read the instructions on the application directory page.
Contents
Downloading & installing mods
You can download the mods from the following places:
Mod portal (in-game)
The «Mods» section of the main menu is the best way to get mods. It combines downloading & installing, checking installed mods for updates, and enabling/disabling installed mods.
Mod portal (website)
The mod portal (website) is the center of mod hosting, where authors upload mods, and you can find previous versions, and discussions. Mods come as ZIP files, installed by copying (not unzipping) into the «mods» directory in the user data directory. Verify a successful installation by viewing the «Mods» list through the main menu, in-game.
Mod subforum
Mod authors maintain threads in the official mod subforum to support their work. There may be experimental mods or updates here that aren’t available on the main portal. They will be downloaded as ZIP files, either as forum «attachments», or with a link to a hosting site. These are installed the same way as mods downloaded from the portal.
Dependencies
Many mods use Factorio’s base mod as their only dependency which you do not have to install separately. However, some mods may require you to install other mods for them to work and can also make suggestions for you to install other mods for them to extend their functionality.
Required dependency
When a mod you installed requires you to install another mod for it to work, the other mod, in this case, is a required dependency. The in-game mod portal automatically downloads required dependencies when downloading any mod.
Optional dependency
When a mod makes a suggestion to install another mod, but if it does not need that other mod for it to work, the other mod, in this case, is an optional dependency. You can install the optional dependencies which extend the functionality of a mod to enhance your gaming experience with the mod.
Incompatibility
The dependencies can also be used to declare a mod to be incompatible with other mods, which prevents them from being loaded together.
Creating mods
API documentation
Lua scripting
You need to use the Lua programming language (version 5.2.1) to create any mods in Factorio. The game’s mod system injects your code into the startup and to the data construction stage of the game. You can use any text editor to write the code for your mod. Well-known text editors that offer syntax highlighting for Lua are Notepad++ and Sublime Text.
Useful resources for Lua:
Licensing
Every mod requires a license since Factorio v0.11. If a mod has no license, it is assumed to have a Creative Commons license — Attribution-Noncommercial 4.0 International (CC BY-NC 4.0). However, it is possible to purposely make the mod unlicensed, to allow the code within it to be available to the public domain. The most popular distribution licenses for Factorio mods are the MIT license and the GPLv3 license.
Downloading and Installing Mods on Factorio
Factorio Mod Portal website:
At this time, Factorio does not support the Steam Games workshop system.
Factorio’s developers have instead created their own website called the Mod Portal to allow the players to share mods. You can access the Mod Portal from inside the game or directly from your browser outside the game.
Accessing Portal from inside Factorio:
Mods from the Mod Portal website can be accessed from the «Mods» option in the game’s Main menu. Click the «install» button, and a list of the mods available on the Mod Portal will appear. Players can browse mods, and then download and install them automatically. You can also disable and enable mods from this menu.
Information on the mods provided within the install window is very brief. If you access the mods from your browser from your browser outside the game, you will have much more detailed information about the mods.
Downloading Mods directly and Manual Installation:
File location for Mods: On our Nodecraft Factorio servers, mods will be placed in the folder mods in the main directory (root directory)
Here are the file paths for the default installations of Factorio on the following operating systems:
For Windows: C:\Users\user name\AppData\Roaming\Factorio\mods\
If the mod is installed correctly, start Factorio, and it should show on the «mods» page accessed from the game’s main menu. Mods can also be enabled or disabled from this menu.
Factorio how to install mods
Anyone else having issues with this other than me?
Downloaded a couple mods and dropped the non zopped folder into c:\Users\user name\AppData\Roaming\Factorio\mods\
With the game running and the mods showing up on the list as enabled I try to load an old game or generate a new one and it gives me an error: attempt to index a global ‘game’ (a nil value)
Any idea what is happening here? I would assume an incorrect installation on my part would not even have it showing up on the mod list.
With the game running and the mods showing up on the list as enabled I try to load an old game or generate a new one and it gives me an error: attempt to index a global ‘game’ (a nil value)
Are you sure they are compatible? That error message means at least one of the mods hasn’t been updated for 0.12.11 and above. The name of the mod should be in the same error message.
Besides, it is recommended you keep them zipped, as Factorio can load them faster then.
This is the first mod I was dropping in just to test the gameplay with it out and with my limited experience with mods for this game all I have to go on is the description from the author which says it was tested with 0.12.2
When I look at the mod in the game to toggle it on or off under dependencies i get >= 0.12.2
This is the mod in question:
And again the full error text is:
__spring-water__/control.lua:27: attempt to index global ‘game’ (a nil value)
Originally i did extract the file folder into the mods section, but changed that out to the zip folder after reading above.
I am just trying to find alternative power sources than coal and solar is all here and if there is a better or an alternative that works and I missed something along the road here any help is appreciated.
Factorio version numbers are a little confusing for some. 0.12.2 is older than 0.12.11, so this mod is not compatible. However, replace all 7 occurences of game with script in control.lua and the mod works.
Factorio versioning
It is 0.12.[x], where x is increased by one.
First are versions 0.12.0 to 0.12.9, then come 0.12.10 to 0.12.19, and then 0.12.20 to 0.12.24 (current version).
Factorio how to install mods
Anyone else having issues with this other than me?
Downloaded a couple mods and dropped the non zopped folder into c:\Users\user name\AppData\Roaming\Factorio\mods\
With the game running and the mods showing up on the list as enabled I try to load an old game or generate a new one and it gives me an error: attempt to index a global ‘game’ (a nil value)
Any idea what is happening here? I would assume an incorrect installation on my part would not even have it showing up on the mod list.
With the game running and the mods showing up on the list as enabled I try to load an old game or generate a new one and it gives me an error: attempt to index a global ‘game’ (a nil value)
Are you sure they are compatible? That error message means at least one of the mods hasn’t been updated for 0.12.11 and above. The name of the mod should be in the same error message.
Besides, it is recommended you keep them zipped, as Factorio can load them faster then.
This is the first mod I was dropping in just to test the gameplay with it out and with my limited experience with mods for this game all I have to go on is the description from the author which says it was tested with 0.12.2
When I look at the mod in the game to toggle it on or off under dependencies i get >= 0.12.2
This is the mod in question:
And again the full error text is:
__spring-water__/control.lua:27: attempt to index global ‘game’ (a nil value)
Originally i did extract the file folder into the mods section, but changed that out to the zip folder after reading above.
I am just trying to find alternative power sources than coal and solar is all here and if there is a better or an alternative that works and I missed something along the road here any help is appreciated.
Factorio version numbers are a little confusing for some. 0.12.2 is older than 0.12.11, so this mod is not compatible. However, replace all 7 occurences of game with script in control.lua and the mod works.
Factorio versioning
It is 0.12.[x], where x is increased by one.
First are versions 0.12.0 to 0.12.9, then come 0.12.10 to 0.12.19, and then 0.12.20 to 0.12.24 (current version).