Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
B.1 Registering Content via Code
Updated 5 months 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 new 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 dawnlibmod -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.3 Weathers
- C.4 Enemies
- C.5 Inside/Outside Hazards
- C.6 Ship Upgrades/Decors
- C.7 Items
- C.8 Additional TileSets
- C.9 Terminal Commands
- C.A.1 Footsteps
- C. Interiors
- C. Moons
- D.1 Achievements
- D.2 Vehicles
- D.3 Entity Replacements
- E.1 DawnLib SourceGenerator
- F.1 Utility Scripts
- F.2 Unity Editor Tricks
- . Interiors Code Setup
- . Interiors Editor Setup
- . Moons Code Setup
- . Moons Editor Setup