B.1 Registering Content via Code
Updated 3 weeks ago- Start by making a folder somewhere on your pc to store the template, open something with an IDE like VSCode or VS and clone this github repository onto that folder https://github.com/TeamXiaolan/DawnLib.ModTemplates.
- And then navigate to a terminal and type
dotnet net install . - From there you can start using the template, do this by making a folder, preferrably something like your mod's name, for example, call the folder
CodeRebirth(that's my mod's name, it's just an example). - Then, if using Rider, and you know how to use C# templates, then um do it? I don't have Rider so I have no idea.
- But, if using VSCode or VS, type into the terminal the two commands:
dotnet new sln --name CodeRebirthdotnet new duskmod -M com.github.xuuxiaolan.coderebirth -MM "PATH\TO\MMHOOK\FOLDER" -B "PATH\TO\MODMANAGER\PLUGINS\FOLDER" --name CodeRebirth-Mis the mod guid,-MMis the folder to mmhook files-Bis folder to the bepinex plugin folder. also make sure to include--nameotherwise it just dumps it wherever!?- Finally, enter the project's folder you made with these commands and type in the final command:
dotnet tool install -g tcliand from there you can do builds and stuff.
Pages
- A. Unity Setup
- B.1 Registering Content via Code
- B.2 Registering via Unity Editor
- C.1 Moons
- C.2 Interiors
- C.3 Weathers
- C.4 Enemies
- C.5 Inside/Outside Hazards
- C.6 Ship Upgrades/Decors
- C.7 Items
- C.8 Additional TileSets
- D.1 Achievements
- D.2 Vehicles
- D.3 Entity Replacements
- E.1 DawnLib SourceGenerator
- F.1 Utility Scripts
- F.2 Unity Editor Tricks