I have previously noted that it is possible to do playerdata by UUIDs, but now we are hitting a roadblock - how would we migrate existing data from names and IPs to UUIDs? Given this affects everyone in the community, I feel I should discuss this here.
Migrating data from Names & IPs to UUIDs - solutions?
Please Note: The TotalFreedom Forum has now been put into a read-only mode. Total Freedom has now closed down and will not be returning in any way, shape or form. It has been a pleasure to lead this community and I wish you all the best for your futures.
-
-
↩ FromTimeToTime Some names are registered to accounts that do not exist or aren't registered to an account anymore. I attempted to do some conversion in a fork of the TotalFreedomMod with an older copy of the TotalFreedomMod database (which contained like 4.3K player data entries), which took a long time to complete and produced questionably accurate results.
-
↩ videogamesm12 So the main problem is, how to handle players, deleted or cracked ones, who don't match a valid online account.
For instance, PlotSquared deals with this by displaying all invalid owners as "Unknown". The question is, do we want to retain the data for all the unknown players in TFM?
Additional note: does that mean bans, punishments etc. will finally save the UUID of the player?
-
↩ FromTimeToTime One approach might be to simply migrate all existing data to a separate table and then convert to the new system as necessary by doing a series of lookups, including name history.
-
What data exactly are we talking about? I know for example that homes and plots are already stored under UUIDs, and there is no reason to convert existing entries in the punishment log because the file is never read by machines.
-
↩ StevenNL2000 Player data in TFM. I know I asked about this before but name changes and the fact we were originally cracked complicates things.
-
Quote
↩ videogamesm12 Player data in TFM.
Sorry, I should have been more clear. What exactly does a player lose if their data is not migrated?
-
↩ StevenNL2000 Off the top of my head, a player would lose their coins, shop items, current ride mode, masterbuilder rank (if applicable), current login message, and tag.
-
It angers me that someone un did the uuid work around player data... We solved the issue ages ago.
In reality the best way to migrate I think from the last time we did it was to do a join check and match on username and then inject the uuid into their database entry on login. If they've already changed username then it's already lost...
-
Quote
↩ @'Ryan' It angers me that someone un did the uuid work around player data... We solved the issue ages ago.
The old implementation was not usable: every single time a player joined, the UUID-related code caused a lag spike that was a literal second in length.
-
↩ StevenNL2000 Not sure why it was that long, it was okay when originally designed. But either way just removing it wasn't really the answer here...
-
wild1145
July 16, 2022 at 11:50 PM Moved the thread from forum Imported from Flarum to forum Developers Developers Developers.