[SOLVED] Moddding tutorial?
[SOLVED] Moddding tutorial?
I was read this tutorial https://wiki.factorio.com/Tutorial:Modd ... al/Gangsir but it's not enough. I can't found any video or decent tutorial for factorio modding. I would be very glad if you help.
Last edited by CruWiT on Mon Apr 22, 2019 5:13 pm, edited 1 time in total.
Re: Moddding tutorial?
What modding are you asking for? Can you add new prototypes to the game?CruWiT wrote: ↑Sun Apr 21, 2019 12:42 pm I was read this tutorial https://wiki.factorio.com/Tutorial:Modd ... al/Gangsir but it's not enough. I can't found any video or decent tutorial for factorio modding. I would be very glad if you help.
Re: Moddding tutorial?
I ask for mod making.darkfrei wrote: ↑Sun Apr 21, 2019 1:01 pmWhat modding are you asking for? Can you add new prototypes to the game?CruWiT wrote: ↑Sun Apr 21, 2019 12:42 pm I was read this tutorial https://wiki.factorio.com/Tutorial:Modd ... al/Gangsir but it's not enough. I can't found any video or decent tutorial for factorio modding. I would be very glad if you help.
Re: Moddding tutorial?
After reading the tutorial, what is it that you are struggling with? What would you like to do, but don't know how to? Without anything more specific from your side, the best I can do is point you towards the Lua Reference Manual and modding references. You can also look for mods that are doing something close to what you want to achieve and study how they do it.
Re: Moddding tutorial?
The simple mod: making new recipe
Just open Factorio\data\base\prototypes\recipe\demo-recipe.lua
Copy some part and change it:
Code: Select all
data:extend(
{
{
type = "recipe",
name = "coal-from-wood",
ingredients = {{"wood", 2}},
result = "coal"
}
}
)
add the info.json to your mod folder. The example is literally every mod from mod portal.
Re: Moddding tutorial?
I take this error.
my "prototypes/recipes/stx3furnace.lua" folder
my "data.lua"
What is wrong here?
my "prototypes/recipes/stx3furnace.lua" folder
Code: Select all
data:extend(
{
type = "recipe",
name = "stx3-furnace",
enabled = false, --Burası false olursa recipe teknoloji ile açılabilir.
ingredients = {
{"iron-plate", 5},
{"stone", 5}
},
result = "stx3-furnace"
}
)
Code: Select all
--data.lua
require("prototypes.building.stx3furnace")
require("prototypes.recipes.stx3furnace")
require("prototypes.technology.stx3furnace-furnace")
Re: Moddding tutorial?
You are missing a pair of curly braces:
Code: Select all
data:extend({ -- open here
{
type = "recipe",
name = "stx3-furnace",
enabled = false, --Burası false olursa recipe teknoloji ile açılabilir.
ingredients = {
{"iron-plate", 5},
{"stone", 5}
},
result = "stx3-furnace"
}
}) -- close here
Re: Moddding tutorial?
It's work. Thanks!eduran wrote: ↑Mon Apr 22, 2019 3:46 pm You are missing a pair of curly braces:Code: Select all
data:extend({ -- open here { type = "recipe", name = "stx3-furnace", enabled = false, --Burası false olursa recipe teknoloji ile açılabilir. ingredients = { {"iron-plate", 5}, {"stone", 5} }, result = "stx3-furnace" } }) -- close here