How anegostudios/vsmodexamples works
Main Components
a. Code Mods Framework
• Use a large container to represent the .NET 7 development environment
• Build system components (CakeBuild)
• Mod loading and integration points with the game
b. JSON Mods Framework
• Separate container for pure JSON-based modifications
• Asset management structure
Key Architectural Elements
[Vintage Story Game Engine]
• ↑
[Mod Loading System]
• ↙ ↘
[Code Mods] [JSON Mods]
• Build System (CakeBuild)
• Mod Components:
• ModSystem Classes
• Assets
• Configuration
• Common Patterns:
• Block Modifications
• Item Systems
• UI Overlays
• Entity Behaviors
• Blue: Core game integration points
• Green: Code-based mod components
• Yellow: Asset-based components
• Orange: Build and deployment systems
Important Details
a. Mod Structure Pattern:
• Standard layout each mod follows:
• ModSystem class
• Assets folder
• Configuration files
• Build scripts
b. Integration Points:
• Where mods hook into the game
• Asset loading paths
• Configuration loading points
Implementation Patterns
• Common patterns found across mods:
• Block modifications (CustomShapeBlock, MovingBlocks)
• UI overlays (HudOverlaySample)
• Network interactions (NetworkApiTest)
• Entity behaviors (Figure mod)
Development Flow
• Source code → Build → Game integration
• Asset creation → Direct game loading