Git Hub, Factorio Mod Version

Place to post guides, observations, things related to modding that are not mods themselves.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2179
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Git Hub, Factorio Mod Version

Post by Ranakastrasz »

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.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Git Hub, Factorio Mod Version

Post by Adil »

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.
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.
Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: Git Hub, Factorio Mod Version

Post by Zeblote »

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!
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: Git Hub, Factorio Mod Version

Post by Choumiko »

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:
Image

Makes the repo look like https://github.com/Choumiko/SmallFixes
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2179
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Git Hub, Factorio Mod Version

Post by Ranakastrasz »

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
User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

Re: Git Hub, Factorio Mod Version

Post by Afforess »

The Marathon mod uses a makefile to package releases with the right name. This is another option.

https://github.com/Afforess/FactorioMod ... r/Makefile
User avatar
db48x
Fast Inserter
Fast Inserter
Posts: 108
Joined: Wed Mar 13, 2013 12:15 pm
Contact:

Re: Git Hub, Factorio Mod Version

Post by db48x »

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

Return to “Modding discussion”