Basic mod template

Place to post guides, observations, things related to modding that are not mods themselves.
neoChaos12
Inserter
Inserter
Posts: 24
Joined: Fri Jan 03, 2025 8:43 am
Contact:

Basic mod template

Post by neoChaos12 »

@admin I'm a dum-dum and didn't post this in the modding discussion section. Could you kindly move this there?

Hello dear modders! I was browsing through the ideas and suggestions forum today and saw a whole bunch of suggestions that looked sensible and minor enough to be bundled into my own personal tweaks mod (I'm a python programmer by profession, with 0 experience in lua and graphics design). This got me wondering - are there any templates for basic mods in existence that a new modder could potentially just fork in order to
1. quickly dip their toes in the factorio modding pool
2. rapidly test quick and easy ideas

Any suggestions? Alternatively, maybe someone could suggest good starting points? I'd imagine one would need to start by defining what a sensible categorization for possible mod functionalities would be before defining a template for it. If any experienced modders see this post, your input would be very appreciated!
Last edited by neoChaos12 on Thu Jan 16, 2025 12:37 am, edited 2 times in total.
eugenekay
Fast Inserter
Fast Inserter
Posts: 161
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Basic mod template

Post by eugenekay »

There are a couple on Github / Factorio Mod portal that I have encountered. fgardt/factorio-mod-template seems to be the most complete & up-to-date.

Good Luck!
neoChaos12
Inserter
Inserter
Posts: 24
Joined: Fri Jan 03, 2025 8:43 am
Contact:

Re: Basic mod template

Post by neoChaos12 »

eugenekay wrote: Wed Jan 15, 2025 5:15 pm There are a couple on Github / Factorio Mod portal that I have encountered. fgardt/factorio-mod-template seems to be the most complete & up-to-date.

Good Luck!
This looks quite interesting. Thanks!
Although on close examination, it seems like less of a template and more of an automation wrapper to handle a bunch of publication tasks. Would you also happen to have some recommendations for simple mods I could look at as code examples? I imagine diving straight into a massive overhaul is definitely not the way to begin. ;)
dmikalova
Burner Inserter
Burner Inserter
Posts: 18
Joined: Thu Nov 26, 2020 7:48 am
Contact:

Re: Basic mod template

Post by dmikalova »

The wiki has a section on making mods including a full walkthrough on a basic mod.

https://wiki.factorio.com/Tutorial:Modding_tutorial
eugenekay
Fast Inserter
Fast Inserter
Posts: 161
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Basic mod template

Post by eugenekay »

neoChaos12 wrote: Thu Jan 16, 2025 12:19 am This looks quite interesting. Thanks!
Although on close examination, it seems like less of a template and more of an automation wrapper to handle a bunch of publication tasks. Would you also happen to have some recommendations for simple mods I could look at as code examples? I imagine diving straight into a massive overhaul is definitely not the way to begin. ;)
D’oh, I didn’t realize GitHub doesn’t show the “downstream” Repositories which use this Template under the Forks page. Here is one that adds Pipes capable of holding Plasma from fusion reactors, for example: OGorbitz/plasma-duct.
neoChaos12
Inserter
Inserter
Posts: 24
Joined: Fri Jan 03, 2025 8:43 am
Contact:

Re: Basic mod template

Post by neoChaos12 »

eugenekay wrote: Thu Jan 16, 2025 1:00 am
D’oh, I didn’t realize GitHub doesn’t show the “downstream” Repositories which use this Template under the Forks page. Here is one that adds Pipes capable of holding Plasma from fusion reactors, for example: OGorbitz/plasma-duct.
Yeah, I was quite baffled to see just a handful of forks, though looking through the profiles of people who starred that repo was quite fruitful too. Thanks for the recommendation!
dmikalova wrote: Thu Jan 16, 2025 12:49 am The wiki has a section on making mods including a full walkthrough on a basic mod.

https://wiki.factorio.com/Tutorial:Modding_tutorial
Haaaa... yeah, the wiki. To be honest, I found it a tad too intimidating. It's very detailed, well-structured and likely very useful. I just wanted to instead boot up a small script and Jack Sparrow my way through, since I'm doing this for fun rather than my job, for a change. Hopefully that's fair game. :-?
Post Reply

Return to “Modding discussion”