Multiverse-Inventories icon indicating copy to clipboard operation
Multiverse-Inventories copied to clipboard

Name change profile migration not working correctly

Open dumptruckman opened this issue 6 years ago • 18 comments

It seems that when a player changes their name their inventories data is not being properly migrated. In addition to making this work, some improvements would be needed. We need to create a migrated profile directory to store backups of profiles that get migrated. That way in case anything goes wrong we can manually restore data from the backups.

dumptruckman avatar Jun 17 '19 02:06 dumptruckman

I assume this is due to storing inventories in

worlds/{WORLD}/{PLAYER_NAME}.json

instead of

worlds/{WORLD}/{PLAYER_UUID}.json

even though the mapping exists in

players/{PLAYER_UUID}.json

Migration would be unnecessary if inventory data were stored by UUID and then mapped back to the player name.

SlimeDog avatar Jan 29 '20 19:01 SlimeDog

Still a bug. Just caught it on my server. Went to find old players files, and are gone due to it knowing to switch to the UUID but the name didnt carry the files over...I'm guessing?

Ichikuro avatar Apr 02 '20 04:04 Ichikuro

Sorry to revive old post. I too had/have this issue with players.

winnipeg21 avatar Aug 12 '20 05:08 winnipeg21

I think it's safe to say that everyone does. Note that there is a PR pending.

SlimeDog avatar Aug 12 '20 05:08 SlimeDog

True, didn't see the PR on my phone lmao

winnipeg21 avatar Aug 12 '20 05:08 winnipeg21

I have the same issue, still no fix?

Thefirstalpha avatar Sep 23 '20 14:09 Thefirstalpha

There is a test build here if you want to try https://github.com/Multiverse/Multiverse-Inventories/pull/362#issuecomment-648521734

benwoo1110 avatar Sep 23 '20 15:09 benwoo1110

This PR #428 should have elevated most of the migration issue, do update to the latest test build to try. Appreciate anyone that happens to change their player name to report how it went.

benwoo1110 avatar Mar 15 '21 07:03 benwoo1110

Thanks. I don't have any name changes pending. Hopefully, someone will.

SlimeDog avatar Mar 15 '21 23:03 SlimeDog

Just had an issue with this, luckily I was able to restore their inventory from a backup, but does anyone have a solution to this?

untuned avatar Nov 15 '22 17:11 untuned

@untuned what version of MV Inventories were you using? This should be fixed as of 4.2.3, but if not, I had another unmerged change that could help.

nicegamer7 avatar Nov 17 '22 00:11 nicegamer7

@untuned what version of MV Inventories were you using? This should be fixed as of 4.2.3, but if not, I had another unmerged change that could help.

[21:09:35 INFO]: Multiverse-Inventories version 4.2.4-SNAPSHOT-b524
[21:09:35 INFO]: Author: dumptruckman

untuned avatar Nov 17 '22 02:11 untuned

so can we assume that mv inventories still can't deal with name changes?

seema84 avatar Nov 02 '23 22:11 seema84

im using the last released version Multiverse-Inventories_4.2.6 i saw players inventories are saved with their name.. and or ith theire uuids?..

its confusing.. me

Here you see its stored by name.. image

and here by uuid...? image

so if i change the name... does it convert this or renmae the files? or does it snyc with the players information stored in uuid?

its confusing me a bit..

what might i can asume what will happen... player changes his name. and logs in world a he has his inventory and all fine.. now he change to world b that has a seperate inventory...

because of the namechange the plugin might not see this other inventory anymore because it was made for the old name?

or does it rename all playername files from all worlds when player logs in? would be a fair deal, even if direct uuid support would be better...

CloudeLecaw avatar Nov 06 '23 06:11 CloudeLecaw

im using the last released version Multiverse-Inventories_4.2.6 i saw players inventories are saved with their name.. and or ith theire uuids?..

its confusing.. me

Here you see its stored by name.. image

and here by uuid...? image

so if i change the name... does it convert this or renmae the files? or does it snyc with the players information stored in uuid?

its confusing me a bit..

what might i can asume what will happen... player changes his name. and logs in world a he has his inventory and all fine.. now he change to world b that has a seperate inventory...

because of the namechange the plugin might not see this other inventory anymore because it was made for the old name?

or does it rename all playername files from all worlds when player logs in? would be a fair deal, even if direct uuid support would be better...

name changing wipes your inventory :/

VipelyRS avatar Mar 19 '24 00:03 VipelyRS

awww thats sad to hear.. people love name changing :-(

CloudeLecaw avatar Mar 19 '24 04:03 CloudeLecaw