Repository navigation
UORespawn v2.0.1.4 — Release Notes
Released: March 11, 2026
Type: Editor patch — bug fixes, performance improvements, code quality
No server script changes — server installation not required for this update
🐛 Bug Fixes
Log Entries Lost on App Exit
Logger.Shutdown() previously called Channel.Writer.Complete() but never awaited the background drain task. Any log messages still queued when the app closed were silently dropped. The drain task is now stored at construction and Shutdown() waits up to 5 seconds for it to flush before the process exits — no more missing tail entries in session logs.
Spawn Deduplication Guard Was Always Silent
SpawnDataService.AddBoxSpawn() contained a List.Contains() check intended to prevent duplicate entries. Because deserialized BoxSpawnEntity objects are never the same object reference, this check always returned false and was effectively dead code. The guard has been removed; entities are now added directly.
⚡ Performance
Map Images Preloaded at Startup
Previously, the first time you opened a Box Spawn, Region Spawn, or Vendor Spawn page after launch, the editor had to read multi-megabyte BMP files from disk, convert them to base64, and inject them into the canvas — all synchronously on first render. Depending on map size, this could produce a noticeable delay or blank canvas flash.
Now: During the background startup sequence (Step 13.5, after map files are verified and before the DataWatcher starts), all available map images are loaded and cached via MapImageCacheService. By the time the app signals ready, every map is already in memory. All three spawn-page components get instant cache hits on first render.
Settings Chance Properties Now Cached
TimedChance, CommonChance, UnCommonChance, and RareChance previously called Preferences.Get() on every single read. They now follow the same cached backing-field pattern already used by BoxColor, BoxLineSize, ScriptsCustomFolder, and other settings — loaded once at startup, returned from a nullable field on every subsequent read.
Map Preload Is Non-Blocking
MapImageCacheService.PreloadMaps() has been renamed to PreloadMapsAsync() and now wraps each map load in await Task.Run(). The multi-MB disk reads and base64 conversions happen on thread pool threads, leaving the UI thread free during startup.
🔧 Improvements
ActiveAccount Setter No Longer Blocks
Setting the active account triggered a synchronous SaveToFolder() file write inside the property setter — including at startup when the previously active account is restored. This is now handled by a background helper (SaveAccountTimestampInBackground) that dispatches to a thread-pool task with proper error logging. The setter returns immediately.
Application Identity Corrected
The project was shipping with MAUI template placeholder values:
| Property | Before | After |
|---|---|---|
ApplicationId |
com.companyname.uorespawnapp |
com.uorespawn.editor |
ApplicationDisplayVersion |
1.0 |
2.0.1.4 |
ApplicationVersion |
1 |
201 |
🧹 Code Quality
| File | Change |
|---|---|
ErrorHandler.cs |
ToastService setter narrowed from public set to internal set — prevents external code from replacing the wired-up service reference |
StringExtensions.cs |
Namespace corrected from root UORespawnApp to UORespawnApp.Scripts.Helpers matching folder location; _Imports.razor updated |
ServerSetupUtility.cs |
Removed stale v2.0.2+ version reference from class summary comment |
Settings.cs |
Removed stale pre-2.0.2 version reference from migration comment |
📋 Files Changed (Editor)
| File | Type |
|---|---|
Scripts/Utilities/Logger.cs |
Bug fix — drain task awaited in Shutdown() |
Scripts/Services/SpawnDataService.cs |
Bug fix — removed no-op Contains guard |
Scripts/Services/MapImageCacheService.cs |
Performance — PreloadMapsAsync with Task.Run |
Scripts/Services/BackgroundDataLoader.cs |
Performance — Step 13.5 map image preloading |
Scripts/Settings.cs |
Performance — cached backing fields for chance properties |
Scripts/Services/AccountService.cs |
Improvement — non-blocking ActiveAccount setter |
UORespawnApp.csproj |
Improvement — correct ApplicationId and version values |
Scripts/Utilities/ErrorHandler.cs |
Code quality — internal set on ToastService |
Scripts/Helpers/StringExtensions.cs |
Code quality — namespace corrected |
Components/_Imports.razor |
Code quality — added using for corrected namespace |
Scripts/Utilities/ServerSetupUtility.cs |
Code quality — stale comment removed |