Skip to content

UORespawn

Choose a tag to compare

@Kita72 Kita72 released this 04 Mar 12:07
· 55 commits to master since this release

UORespawn v2.0.1.0 Release Notes

Release Date: Mar 04, 2026


๐ŸŽฏ Highlights

This release focuses on architecture modernization with a new Dependency Injection (DI) services layer, comprehensive thread safety improvements, and UI polish including a new trigger dashboard and improved navigation.


โœจ New Features

Dependency Injection Architecture

The codebase now uses proper DI services for cleaner architecture and better testability:

Service Purpose
SpawnDataService Centralized spawn data management with thread-safe operations
SessionService DI-injectable session with map image caching
MapImageCacheService LRU cache for map images (max 6 maps, lazy loading)

Backward Compatible: Existing code using Utility.BoxSpawns etc. continues to work - it now delegates to the new services automatically.

Thread Safety Improvements

All critical operations are now properly synchronized:

  • Session: Protected MapId, LinkedServerPath, ServerMode with .NET 9+ Lock
  • DataWatcher: Thread-safe file monitoring start/stop
  • SpawnDataService: All spawn dictionary operations protected

File Operations

New FileUtility class provides robust file operations:

  • Retry logic (3 attempts with 100ms delays)
  • Handles transient file locks gracefully
  • Proper exception handling and logging

Trigger Dashboard

TileSpawnComponent now shows active triggers visually:

  • Weather icon (โ˜๏ธ) when IsWeather is enabled
  • Time icon (๐Ÿ•) when IsTimed is enabled
  • Subtle dashboard that appears only when triggers are active

๐ŸŽจ UI/UX Improvements

Navigation Reordered

The NavMenu is now organized more logically:

  1. Spawn Packs (top - quick access)
  2. Spawn Section (Box, Tile, Region, Vendor)
  3. Settings
  4. Instructions
  5. Theme Toggle

Map Selector Moved

  • Map selector moved from NavMenu to page headers
  • Now appears directly in Box, Region, and Vendor spawn editors
  • Cleaner navigation without map-specific controls

Icon Updates

Page New Icon Old Icon
Box Spawns bi-bounding-box bi-box
Tile Spawns bi-grid-3x3-gap bi-geo-alt

Styling Fixes

  • Tile name color: Blue (#6ea8fe) in frequency card header
  • NavMenu spacing: Proper gap between active pack and nav items
  • CSS warning fixed: Removed invalid crisp-edges value

๐Ÿ”ง Technical Details

New Services (DI Singletons)

MauiProgram.cs:
โ”œโ”€โ”€ SpawnDataService (spawn dictionaries)
โ”œโ”€โ”€ SessionService (session + map caching)
โ””โ”€โ”€ MapImageCacheService (base64 image cache)

New Files

File Purpose
SpawnDataService.cs Thread-safe spawn data management
SessionService.cs DI-injectable session wrapper
MapImageCacheService.cs LRU map image caching
FileUtility.cs Retry-enabled file operations
ViewportConstants.cs Centralized viewport dimensions (800ร—600)
FrequencyButtonsComponent.razor Reusable frequency selector

Architecture Pattern

Components โ†’ Utility (static) โ†’ DI Services
                 โ†“                    โ†“
            Backward Compatible   Thread-Safe

The delegation pattern allows gradual migration to full DI while maintaining backward compatibility.


๐Ÿ“‹ Full Changelog

See CHANGELOG.md for complete details.


๐Ÿš€ Upgrade Instructions

  1. Download UORespawn-v2.0.1.0.zip
  2. Extract and replace your existing UORespawn application
  3. Your settings and spawn packs will be preserved
  4. If linked to a server, the editor will prompt to update server files if needed

๐ŸŽฏ Highlights

This release introduces XML Spawner Management directly from the map editor, along with a comprehensive Light/Dark Theme Polish pass that ensures consistent theming across all components.


โœจ New Features

XML Spawner Management

You can now add and delete XML spawners directly from the Box Spawn and Region Spawn map editors!

Add XML Spawner

  • Right-click on the map to open the "Add XML Spawner" option
  • Side-by-side modal with bestiary browser (left) and selected spawns (right)
  • HomeRange slider (10-250) to set spawn radius
  • MaxCount slider (1-100) to set maximum creatures
  • Favorites support for quick access to frequently-used creatures
  • Click creatures to instantly add them to your spawner

Delete XML Spawner

  • Right-click on an existing spawner (green circle) to delete it
  • Confirmation modal shows spawner details before removal
  • Immediate server sync for real-time deletion

๐ŸŽจ UI/UX Improvements

Complete Light/Dark Theme Polish

Every component now properly responds to theme changes:

Component Improvements
MiniMap Header, body, and icons now theme-aware
Spawn Packs Stats tiles, modals, toggle buttons themed
Vendor Spawn List items, location markers, search inputs
Box/Region Lists Spawn items, hover states, text colors

Navigation & Branding

  • Logo = Home - Click the logo to navigate home (Home button removed)
  • More Nav Space - Freed up a slot for future features
  • Better Light Mode - Brand area uses softer gray (#3a3a3a)
  • Bigger Logo - Maximized to fill the brand area (5.5rem)
  • Centered Logo - Fixed off-center alignment issue

๐Ÿ”ง Technical Details

New Components

  • AddXmlSpawnerModal.razor - Side-by-side creature picker with sliders
  • DeleteXmlSpawnerModal.razor - Confirmation dialog for spawner removal
  • XmlSpawnerCommandService - Handles server communication for XML spawners

Theme Updates

  • Light theme CSS added to 5+ component stylesheets
  • Centralized theme utilities in app.css
  • SVG icons with theme-appropriate fill colors
  • Removed unused Home icon CSS definitions

๐Ÿ’ก Tips

  • XML Spawners: Great for adding spawners in specific locations without editing spawn boxes

  • Theme Toggle: Use the Dark/Light Mode button at the bottom of the nav menu

  • Favorites: Star frequently-used creatures in the bestiary for faster access

  • Trigger Dashboard: Look for weather/time icons when editing tile spawns with triggers enabled

  • Map Selector: Now in the page header - easier access while editing

  • Performance: Map image caching means faster switching between maps


๐Ÿ—๏ธ For Developers

If you're extending UORespawn:

  • Prefer DI injection over Utility static access in new code
  • SpawnDataService is the source of truth for spawn data
  • SessionService manages the current editing session
  • All services are thread-safe - safe to use from any context

Thank you for using UORespawn! ๐ŸŽฎ