Make a backup before using this tool, either by using git and committing your code, or by copying your mod's source code to some other place
This tool lets you port 1.3
mods to 1.4
, it is not perfect, but it can port many things.
How to use:
- Download the tModPorter repo, open
tModPorter.sln
and build the solution. - Install tModLoader 1.4 (you can find more info about this on the tModLoader discord)
- Open tModLoader 1.4, go to the Mod Sources menu and click the
Open Sources
button to open the Mod Sources folder - Copy your mod's source to the Mod Sources folder (i.e. copy
ModLoader/Mod Sources/MyMod
toModLoader/Beta/Mod Sources/MyMod
) - Open tModLoader again and go to the Mod Sources menu. You will see your mod with a little exclamation mark (saying
Upgrade .csproj file
). Click that button so that your mod can work with the 1.4 classes (and tModPorter can correctly port your mod). - Drag and drop your mod's .csproj file (usually named
YourModName.csproj
) to the tModPorter .exe file (that you either got from building tModPorter yourself, or from a release if there's one available)
The tModPorter exe should be in tModPorter/tModPorter/bin/Debug/net5.0/tModPorter.exe
You need to install .NET 5 SDK to build tModPorter