ScarletTemplate 1.2.0
There is a newer version of this package available.
See the version list below for details.
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
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
π Links
-
.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.