Can somebody teach me to make mods?

Place to get help with not working mods / modding interface.
Post Reply
Rafatizer
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Mar 23, 2020 6:50 pm
Contact:

Can somebody teach me to make mods?

Post by Rafatizer »

I want to make a mod that adds aluminium to the game, and adds a furnace that alloys copper and aluminium into bronze. But i dont know how to make mods at all, if someone can teach me the basics that would very much help me in my endavours. sincerly, rafatizer

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2528
Joined: Fri Nov 06, 2015 7:41 pm

Re: Can somebody teach me to make mods?

Post by Deadlock989 »

Start here. If you get stuck, people are likely to answer questions.
Image

Kingdud
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Sat Dec 16, 2017 3:23 am
Contact:

Re: Can somebody teach me to make mods?

Post by Kingdud »

This would require someone sitting in a mumble server with you for several hours. But, I can give you some high level points:

* There are 4 'types' you really need to care about: Technologies (these are what science packs are for), recipes (how stuff gets made), items (things you see in your inventory), and entities (things that can be placed on the ground in the world).

A substation in your backpack is an item, and it becomes an entity when you place it on the ground. It goes back to being an item when you mine it back into your backpack (or a bot does this same process).

* If you want your new furnace to ONLY be usable for making aluminum then you need to use the Assembling Machine prototype (https://wiki.factorio.com/Prototype/AssemblingMachine) instead of the Furnace (https://wiki.factorio.com/Prototype/Furnace) prototype. Why? Because of the 'fixed_recipe" property of assembling machines; that is the only way to create a building that takes inputs, creates an output, and which cannot have its recipe changed by the player.

* If you want aluminum to be minable (like copper or iron are) I don't know how to do that. It may be helpful to download various resource mods, unzip them, and try to figure out what their LUA code is doing to create the resource. Also, you'll have to create a new map (probably) because I don't know if spawning in new resource patches to an existing game is supported. I know you can do it via console commands, but it isn't random when you do it that way.

This is, by no means, all you need to know. But it's some of the not-well-documented stuff that would probably take you a few hours to work out on your own.

Hiladdar
Fast Inserter
Fast Inserter
Posts: 214
Joined: Mon May 14, 2018 6:47 pm
Contact:

Re: Can somebody teach me to make mods?

Post by Hiladdar »

One of the best ways to learn, is start out by doing what Deadlock989 recommends. If I remember correctly, there are also a tutorial which walk a new developer through the process of developing mod, some suit of fire armor or such. The game itself ships with a test_mod in the ../tests/mods folder. Finally, download a few simple stand along modules, and take a look at what the mod developers did and how they did it.

Hiladdar

Pi-C
Smart Inserter
Smart Inserter
Posts: 1654
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Can somebody teach me to make mods?

Post by Pi-C »

Hiladdar wrote:
Sat Mar 28, 2020 7:30 pm
If I remember correctly, there are also a tutorial which walk a new developer through the process of developing mod, some suit of fire armor or such.
You must mean this.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

Hiladdar
Fast Inserter
Fast Inserter
Posts: 214
Joined: Mon May 14, 2018 6:47 pm
Contact:

Re: Can somebody teach me to make mods?

Post by Hiladdar »

Yes!

Thank you Pi-C.

Hiladdar

Post Reply

Return to “Modding help”