Factorio

Factorio

View Stats:
RLS0812 Aug 12, 2021 @ 3:10pm
Finding A Clean Copy Of "recipe.lua" For Factorio
I've been making a lot of my own mods for Factorio, and I just realize that I never made a backup copy of the original "recipe.lua" file.
Is there somewhere I can find this file without reinstalling the entire game ?
< >
Showing 1-10 of 10 comments
Fel Aug 12, 2021 @ 3:19pm 
You can always tell steam to check the game's files, it will revert any modified file to the original.

This game has a pretty solid modding support so you should not be fidling with the base game's content files.
Kristofff Aug 12, 2021 @ 4:32pm 
test
Roxxapo Aug 12, 2021 @ 5:50pm 
you can have mine bro
Vyndicu Aug 12, 2021 @ 7:07pm 
You can delete the recipe.lua then tell Steam to verify the files and it will notice recipe.lua is missing and download just that one file.

Instruction on how to do verify is easy to find but I will tell you anyway. Go to your steam library list of games. Right click on Factorio and go into properties. Go to local files tab. There will be a verify button.
Fel Aug 12, 2021 @ 7:09pm 
You don't even have to delete the file, it also checks the file checksums to see if it has the right content so just verifying should be enough.
Vyndicu Aug 12, 2021 @ 7:11pm 
Originally posted by Fel:
You don't even have to delete the file, it also checks the file checksums to see if it has the right content so just verifying should be enough.

Deleting is often a last resort as I had some file that were edited and somehow the verification process failed to properly validate the files. In those rare cases it is better to be "safe" than sorry to delete it completely or at least just re-named to something else.
Greg Riba Aug 12, 2021 @ 9:24pm 
You don't have to edit anything in the game's folder to mod. Read the tutorial https://wiki.factorio.com/Tutorial:Modding_tutorial/Gangsir
AlexMBrennan Aug 13, 2021 @ 4:31am 
You don't have to edit anything in the game's folder to mod. Read the tutorial https://wiki.factorio.com/Tutorial:Modding_tutorial/Gangsir
No, but it's a lot faster to edit one line in the game's recipe.lua than to package that one line change in a mod.
ShutEye_DK Aug 13, 2021 @ 4:56am 
Can't you just DL the standalone version from facttorio.com and extract the file from that?
GreenBeanN1 Aug 13, 2021 @ 6:10am 
Originally posted by AlexMBrennan:
You don't have to edit anything in the game's folder to mod. Read the tutorial https://wiki.factorio.com/Tutorial:Modding_tutorial/Gangsir
No, but it's a lot faster to edit one line in the game's recipe.lua than to package that one line change in a mod.
Well considering the time to make this post (and probably search through too many lines in the original files often) I am not so sure.

-A zip is needed
-a json file (13 lines)
-a data.lua file (a few lines)

json
{
"name": "x",
"version": "1000000000.0.1",
"factorio_version": "1.1",
"title": "forgot",
"author": "this",
"contact": "t",
"homepage": "o",
"description": "o",
"dependencies": [
"base >= 1.1.0"
]
}

data.lua
data.raw["recipe"]["automation-science-pack"].ingredients = {
{"iron-plate", 1000000}
}

thats all.
Last edited by GreenBeanN1; Aug 13, 2021 @ 6:11am
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Aug 12, 2021 @ 3:10pm
Posts: 10