Skip to content

Fix: Resolved outfit saving/loading issues for legacy & migrated databases (#4)#5

Open
CheloLima wants to merge 3 commits into
RMSCRIPTS-DEV:mainfrom
CheloLima:main
Open

Fix: Resolved outfit saving/loading issues for legacy & migrated databases (#4)#5
CheloLima wants to merge 3 commits into
RMSCRIPTS-DEV:mainfrom
CheloLima:main

Conversation

@CheloLima
Copy link
Copy Markdown

This PR addresses Issue #4, where outfits fail to save due to missing columns or strict legacy column constraints (e.g., from older clothing systems).

Key Features:

  • Auto-Migration: Added a startup check to automatically create components and props columns if they are missing in the player_outfits table.
  • Legacy Compatibility Fix: Automatically modifies the outfitId column to be nullable, preventing SQL insertion errors during migration from older versions.
  • Fallback Loading: Implemented a fallback in server.lua to load legacy outfits from the single skin column if the newer separate columns are empty.
  • Forward Compatibility: Newly saved outfits are now written to both the new columns (components, props) and the legacy skin column to ensure no data is lost.

This ensures a smooth experience for all users, regardless of whether they are performing a fresh install or migrating from an older system.

CheloLima added 3 commits May 8, 2026 21:13
Add Auto SQL DB Fix (Migration)
Fixed PlayerOutfit Saves :-)
Fixes new getOutfitForPLayer for old Skin Menus...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant