Mods / Dotnet Mod Templates (Code and Content)

Tags: #Other
Author: jayu
Side: Both
Created: Mar 21st at 7:35 PM
Last modified: Sep 2nd at 11:51 PM
Downloads: 354
Follow Unfollow 29

For testers:
VSModTemplates-1.4.2.zip


Enjoy my work? You can support me on Ko-fi or Patreon. Thank you!

Support me on Ko-fi   Support me on Patreon

Find usage instructions in the repository README.md

Included Templates:

  • Code Mod Template
  • Content Mod Template

The Code Mod Template is based on the official modding templates, but with additional advanced options tailored to my needs. This will be kept updated. 

Content Mod Template

Setting up folder structures and copying modinfo files manually was tedious, so this template simplifies content mod creation. It allows you to work on content mods from the same IDE as code mods and is compatible with Rider, Visual Studio, VS Code, and other .NET-supported IDEs.

Features:

  • Pre-configured folder structure
  • Automated script to zip the mod folder
  • Script to launch the game and test the mod automatically
  • Pre-configured task setups for Rider and VS Code

 

If you have different needs and want to add more options or improvements to the template are welcome to contribute to the GitHub repository yourself.

Suggested with

image

Prettier Vintage Story

This is only for mod developers. A customized fork of prettier for compact yet readable json.

More modding tools and libraries

image

VTML Editor

Edit VTML in-game

image

ExtraCode

Adds extra classes and behaviors for content modders

image

BlockPatch Patcher

Dynamically patch block patches. Allows wildcards and multiplication of values.

Mod Version Downloads Released Changelog Download
1.4.2 87 Sep 2nd at 11:51 PM VSModTemplates-1.4.2.zip

Small content mod template fix: don't include solution file when zipping.


11 Comments (oldest first | newest first)

💬 Archadria, Oct 2nd at 7:42 AM

Jayu fantastic work!

💬 jayu , Aug 27th at 1:08 PM

Version 1.4.0 is now compatible with .NET8 for game versions >= 1.21.x

💬 jayu , Mar 25th at 6:26 PM (modified Aug 27th at 1:07 PM)

StellarRover nice to know someone is using these XD the content mod one might be more useful as official code mod templates exist

💬 jayu , Mar 25th at 6:25 PM

VS Mod Templates v1.3.2: has some important fixes, to the sample config and advanced harmony setup especially

  • [Code Template] Properly dispose config when config loader unloads
  • [Code Template] Slight improvement to mod logger in config loader
  • [Code Template] Static public fields to properties in core class
  • [Code Template] Improve advanced harmony setup
💬 StellarRover, Mar 25th at 5:46 PM

@jayu You are an absolute gem of a person for creating this, many thanks!

💬 jayu , Mar 25th at 12:57 AM

Released VS Mod Templates v1.3.0

  • [Both templates] Change default settings to more used configurations
  • [Both templates] Compress the template options
  • [Code template] Collapse settings to include VS libraries into a single one and set it to true by default
  • [Content template] Fix client and server launch scripts not working properly
  • [Content template] Fix asset folders not loading in content template, possibly need to add sample files inside
💬 jayu , Mar 22nd at 11:43 PM

Ruyeex uploaded new version with vs code tasks. Check the README.md for use as always.

💬 jayu , Mar 22nd at 12:43 AM

Ruyeex if it loads dotnet templates (which I assume it does since some people code mods in VS Code) then it should be able to load this. Just be aware that the procedure will be the same as creating a new code mod except you will have to select this template instead of the code one.

💬 Ruyeex, Mar 22nd at 12:12 AM

Can it work with VS Codium?
:)

💬 jayu , Mar 21st at 9:57 PM

It's not much at the moment, just a quick way to get started on a new content mod. I had it for code mods from the official modding templates, but didn't have it for content mods so I made one in the same format. This might be more useful for people that also make code mods as they will alredy have an IDE that can load this and dotnet installed. You don't need dotnet or such an IDE to make code mods (a simple text editor or VS Code works well enough) but I knew how to make a dotnet template and that's why it's like this.


I guess another utility is being able to quickly package the mod once you want to upload, if you set up a run configuration to run build.sh (the Rider settings for such configuration are already there by default).

 

CtrlAltSilent If you need help getting started, check out the wiki or ask in the VS Discord

💬 CtrlAltSilent, Mar 21st at 8:03 PM

Thank you for this. Haven't downloaded it yet but I was JUST looking into making mods. I'll keep you posted on how helpful it is!

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом