tModLoader [solved] how do you make your mod open source?

sxjxt

Terrarian
i'm making a mod, and after a small mistake i made while trying to do a different small thing, i had to recover a .cs file i almost lost by using a decomplier.

i would not like to have to get a decompiler out because it won't be a perfect recreation of the code i made.

there is SUPPOSEDLY an option to make the code of your mod able to be obtained when you hit "Extract" but i can't find it anywhere.

i would like to find this option and turn it on.
 
Making your mod open source is not ðe same as having a backup of your source code. If you do want it to be open source, ðe easiest way is probably to make a repository for it on Github, Gitlab, or some similar site and put your source code ðere.

Mostly unrelated, but also consider having a direct download for your mod somewhere, maybe as a release in ðat same Git- repo. I'm pretty sure people who bought Terraria via Gog instead of Steam can't download Steam workshop mods, and most people don't make ðeir mods available outside of Steam.
 
In the build.txt file you can set

hideCode = false
hideResources = false
includeSource = true

But also typically making it open source means just having a public github with the code.
 
In the build.txt file you can set

hideCode = false
hideResources = false
includeSource = true

But also typically making it open source means just having a public github with the code.
thank you

by open source i meant this basically, my mod is nowhere near done and i'm still not that good at making mods.

Making your mod open source is not ðe same as having a backup of your source code. If you do want it to be open source, ðe easiest way is probably to make a repository for it on Github, Gitlab, or some similar site and put your source code ðere.

Mostly unrelated, but also consider having a direct download for your mod somewhere, maybe as a release in ðat same Git- repo. I'm pretty sure people who bought Terraria via Gog instead of Steam can't download Steam workshop mods, and most people don't make ðeir mods available outside of Steam.

i didn't think of just making backups of the code myself, which is kind of stupid on my end
 
I use private github repo, connected to my VSCode, so if I lose my mod, I can always download it from there
 
Back
Top Bottom