[SOLVED] Moddding tutorial?

Place to get help with not working mods / modding interface.
CruWiT
Inserter
Inserter
Posts: 23
Joined: Wed Apr 17, 2019 6:22 pm
Contact:

[SOLVED] Moddding tutorial?

Post 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.
Last edited by CruWiT on Mon Apr 22, 2019 5:13 pm, edited 1 time in total.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Moddding tutorial?

Post by darkfrei »

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.
What modding are you asking for? Can you add new prototypes to the game?
CruWiT
Inserter
Inserter
Posts: 23
Joined: Wed Apr 17, 2019 6:22 pm
Contact:

Re: Moddding tutorial?

Post by CruWiT »

darkfrei wrote: Sun Apr 21, 2019 1:01 pm
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.
What modding are you asking for? Can you add new prototypes to the game?
I ask for mod making.
eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: Moddding tutorial?

Post 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.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Moddding tutorial?

Post 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.
CruWiT
Inserter
Inserter
Posts: 23
Joined: Wed Apr 17, 2019 6:22 pm
Contact:

Re: Moddding tutorial?

Post by CruWiT »

Image
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?
eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: Moddding tutorial?

Post 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
CruWiT
Inserter
Inserter
Posts: 23
Joined: Wed Apr 17, 2019 6:22 pm
Contact:

Re: Moddding tutorial?

Post 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!
Post Reply

Return to “Modding help”