[Tool] Fix mod name lowercase (convert mod to 0.10.8)

Place to get help with not working mods / modding interface.
Post Reply
OBAMA MCLAMA
Filter Inserter
Filter Inserter
Posts: 337
Joined: Fri May 30, 2014 4:23 am
Contact:

[Tool] Fix mod name lowercase (convert mod to 0.10.8)

Post by OBAMA MCLAMA »

While working on McLauncher, i created a program to make the process of adding mods to the download database easier.

I salvaged around some parts and decided i would share it. (the convert mod part)
Download V1.0 ConvertMod

How to use:
Save ConvertMod.jar anywhere, but preferably in your factorio directory.
When you open convert mod, Click Set Path and find the folder of the mod you want to convert. (must be a folder)
Select the mod folder, and click open at the bottom right of the GUI.
Click convert once.
It will display some information about the mod. (i left this in there just for show)
And it should work from my understanding! So far i have tested this on 4 different mods and it works first time.

What it does:
Lowercase the mod folder name.
replace spaces with dashes.
remove's the version at the end of the folder name. (sorry to those that want it, i know 0.11.0 will require it)
changes info.json to the mod folder name.
goes through every lua folder in the mod directory, and changes __MOD NAME__ to __mod-name__. (fixes pointers basically)

What it does not do:
add a version at the end of the mod folder name to make it 0.11.0 ready.


The changes are irreversible, Meaning if something happens while converting the mod, Sorry.
I am only sharing this to make it easier for the people who don't know how.
When i stream twitch i always answer questions and try to help, come visit me.

Post Reply

Return to “Modding help”