Page 1 of 1
[SOLVED] Moddding tutorial?
Posted: Sun Apr 21, 2019 12:42 pm
by CruWiT
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?
Posted: Sun Apr 21, 2019 1:01 pm
by darkfrei
What modding are you asking for? Can you add new prototypes to the game?
Re: Moddding tutorial?
Posted: Sun Apr 21, 2019 4:34 pm
by CruWiT
darkfrei wrote: Sun Apr 21, 2019 1:01 pm
What modding are you asking for? Can you add new prototypes to the game?
I ask for mod making.
Re: Moddding tutorial?
Posted: Sun Apr 21, 2019 4:56 pm
by eduran
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?
Posted: Sun Apr 21, 2019 6:22 pm
by darkfrei
CruWiT wrote: Sun Apr 21, 2019 4:34 pm
I ask for mod making.
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"
}
}
)
Place this code to your mod folder to data.lua
add the info.json to your mod folder. The example is literally every mod from mod portal.
Re: Moddding tutorial?
Posted: Mon Apr 22, 2019 2:53 pm
by CruWiT
I take this error.
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"
}
)
my "data.lua"
Code: Select all
--data.lua
require("prototypes.building.stx3furnace")
require("prototypes.recipes.stx3furnace")
require("prototypes.technology.stx3furnace-furnace")
What is wrong here?
Re: Moddding tutorial?
Posted: Mon Apr 22, 2019 3:46 pm
by eduran
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?
Posted: Mon Apr 22, 2019 5:12 pm
by CruWiT
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
It's work. Thanks!