Skip to content

Latest commit

 

History

4,737 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path of Terraria

Getting Started

  1. Terraria is not included as a nuget package so we need to use the included tModLoader.targets file for pulling in the correct dependencies 2) In the PathOfTerraria.csproj we see this line: <Import Project="..\tModLoader.targets" /> - I have this setup so you can use this project outisde of the steam tModLoader folder. So the easiest way to get this to the place it's expecting (1 level up) simply copy the tmodloader.targets file from your steam tModLoader folder to the folder right above the root of this project.
  2. We use Subworld Library for subworlds.
    • It is an ordinary Workshop dependency. The namespace is SubworldLibrary.
    • lib/SubworldLibrary.dll is a compile-time reference only; tModLoader resolves the real mod at load time from modReferences in build.txt.
    • Extract SubworldLibrary.dll from the installed SubworldLibrary.tmod to refresh the reference after a library update.
    • We previously maintained a fork, SubworldLibraryCommunityFork, carrying multiplayer traversal and player-visibility fixes. Upstream has since addressed those, so the fork was retired.
    1. In Visual Studio right click on "Dependencies" (NOT the same folder as where the .dll is, it's a non-existent folder that appears in the solution explorer) and click "Add Project Reference" and select the .dll file
    2. In Rider right click on "Dependencies" (NOT the same folder as where the .dll is, it's a non-existent folder that appears in the solution explorer) and click "Reference..." and select the .dll file
  3. You should now be ready to launch the project. Simply hit play in your IDE and it should launch Terraria with the mod loaded.

Additional Tooling

There are several mods that can help us do local development. I recommend the following:

  1. Dragonlens - https://steamcommunity.com/sharedfiles/filedetails/?id=2939737748
  2. Structurehelper - https://steamcommunity.com/sharedfiles/filedetails/?id=2790924965

Project Notes

  • All images are stored in the /Assets folder for consolidation. They are not in the same folder as the .cs files as tmodloader example mod has.

Releases

Packages

Used by

Contributors

Languages