Mods / Vintage Mod Templates [Code][Content]

Tags: #Other
Author: jayu
Side: Both
Created: Mar 21st at 7:35 PM
Last modified: Mar 25th at 6:23 PM
Downloads: 135
Follow Unfollow 12

Latest release:
VSModTemplates-1.3.2.zip


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.

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.3.2
51 Mar 25th at 6:23 PM Show VSModTemplates-1.3.2.zip
v1.3.0
11 Mar 24th at 10:44 PM Show VSModTemplates-1.3.0.zip
v1.2.4
26 Mar 23rd at 4:44 PM Show VSModTemplates-1.2.3.zip
v1.1.2
17 Mar 22nd at 11:40 PM Show VSContentModTemplate.zip
v1.0.0
29 Mar 21st at 7:36 PM Show VSContentModTemplate.zip

9 Comments (oldest first | newest first)

💬 jayu , Mar 25th at 6:26 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)