I have recently attempted to start using GitHub for my mods. However, I am unsure how to actually go about doing this.
The main issue is that I have no idea how to manage version numbers, due to how it interacts with GitHub.
I have to change the version number each time I update, which involves both the folder name and the info file. However, this prevents GitHub from being able to see the new folder. If I use my development factorio install's mod directory, then it replaces all the v13 with v14, with no information on what changes occured.
I know other people have done this, but I don't know how. I would seriously like to learn how to use automated source control, but this issue makes it infeasible.
Git Hub, Factorio Mod Version
- Ranakastrasz
- Smart Inserter
- Posts: 2179
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Git Hub, Factorio Mod Version
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Git Hub, Factorio Mod Version
Well I've seen it being handled like this. There is releases page, along with unusuably named source code zips there can be placed any arbitrary file. So it's basically using file hosting but using github.
Rsending91 seems to ignore github sharing capabilities completelly.
Rsending91 seems to ignore github sharing capabilities completelly.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: Git Hub, Factorio Mod Version
You could have your repo folder elsewhere and just make a symlink to the actual mod folder in appdata. Now you can rename it without affecting the repo at all!
Re: Git Hub, Factorio Mod Version
Not sure i get the problem, but i'm not versioning the root folder of the mod, so git(hub) doesn't care about the folder name:

Makes the repo look like https://github.com/Choumiko/SmallFixes

Makes the repo look like https://github.com/Choumiko/SmallFixes
- Ranakastrasz
- Smart Inserter
- Posts: 2179
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Git Hub, Factorio Mod Version
Ok, those make sense, will try it out.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Git Hub, Factorio Mod Version
The Marathon mod uses a makefile to package releases with the right name. This is another option.
https://github.com/Afforess/FactorioMod ... r/Makefile
https://github.com/Afforess/FactorioMod ... r/Makefile
Re: Git Hub, Factorio Mod Version
I use a Makefile as well, and mine pulls the mod name and version number from the same manifest that factorio uses; this makes new versions simple.
https://github.com/db48x/original-music ... r/Makefile
https://github.com/db48x/original-music ... r/Makefile