UndertaleEngine icon indicating copy to clipboard operation
UndertaleEngine copied to clipboard

Save files break when inserting new objects.

Open TML233 opened this issue 2 years ago • 1 comments

Save file breaks due to object index reordering, such as items, phones and battle fight panels.

Add a string to resource id mapping. When saving save files, convert the resource id to string. When loading save files, convert string to resource id.

TML233 avatar Dec 16 '23 17:12 TML233

Changing the fight target object flag to a string worked for me (I then used asset_get_index to convert the string into an asset)

Animeliqite avatar Dec 16 '23 17:12 Animeliqite

This should be fixed by GameMaker's update since resources are handle instead of real now If you string() it, it won't show a number as before (I can't confirm it since I replaced save file with object/room_get_name long time ago, so it needs to be confirm)

SheepYhangCN avatar Aug 07 '24 09:08 SheepYhangCN

This should be fixed by GameMaker's update since resources are handle instead of real now If you string() it, it won't show a number as before (I can't confirm it since I replaced save file with object/room_get_name long time ago, so it needs to be confirm)

ref can still be change after you added new resources so this issue still be a issue

SheepYhangCN avatar Aug 07 '24 15:08 SheepYhangCN