ScarletTemplate 1.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet new install ScarletTemplate::1.2.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

ScarletTemplate

A modular .NET template for creating V Rising mods with optional dependencies.

πŸš€ Quick Start

Installation

Install the template from NuGet:

dotnet new install ScarletTemplate

Usage

Create a new V Rising mod project:

dotnet new scarlettemplate -n MyMod

πŸ“¦ What's Included

Dependencies

  • ScarletCore: Core framework for V Rising mods with integrated command system
  • BepInEx: Mod framework for Unity games
  • VRising.Unhollowed.Client: V Rising game bindings

πŸ“ Generated Project Structure

MyMod/
β”œβ”€β”€ MyMod.csproj           # Project file with conditional dependencies
β”œβ”€β”€ MyMod.sln              # Solution file
β”œβ”€β”€ Plugin.cs              # Main plugin class with conditional code
β”œβ”€β”€ MyPluginInfo.cs        # Auto-generated plugin metadata
β”œβ”€β”€ nuget.config           # NuGet sources (BepInEx, Samboy Feed)
└── LICENSE                # MIT License

πŸ’‘ Examples

Basic Plugin

[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
[BepInDependency("markvaaz.ScarletCore")]
public class Plugin : BasePlugin
{
    public override void Load()
    {
        Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} loaded!");
    }
}

Commands with ScarletCore

using ScarletCore.Commanding;

[CommandGroup("mymod", Language.English, adminOnly: false)]
[CommandGroupAlias("meuplugin", Language.Portuguese)]
public static class MyCommands
{
    [Command("hello", Language.English, description: "Say hello")]
    [CommandAlias("ola", Language.Portuguese, description: "Dizer olΓ‘")]
    public static void HelloCommand(CommandContext ctx)
    {
        ctx.ReplySuccess($"Hello {ctx.User.CharacterName}!");
    }

    [Command("info", Language.English, description: "Get player info")]
    [CommandAlias("informacao", Language.Portuguese, description: "Obter informaΓ§Γ΅es")]
    public static void InfoCommand(CommandContext ctx, PlayerData player)
    {
        ctx.ReplySuccess($"Player: {player.Name}, Level: {player.Level}");
    }
}

πŸ”§ Development

Prerequisites

  • .NET 6.0 SDK or later
  • V Rising Dedicated Server (for testing)

Building

dotnet build

Installation Path

The template automatically copies built mods to:

C:\Program Files (x86)\Steam\steamapps\common\VRisingDedicatedServer\BepInEx\plugins

πŸ“‹ Requirements

  • .NET 6.0+
  • V Rising Dedicated Server
  • BepInEx 6.0+

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.2 156 1/7/2026
1.2.1 162 1/4/2026
1.2.0 163 1/2/2026
1.1.2 408 11/12/2025
1.1.1 324 11/7/2025
1.1.0 313 11/7/2025
1.0.11 483 6/13/2025
1.0.0 158 1/2/2026