WAReborn / WorldsAdriftReborn

63 stars 15 forks source link

Generate valid UID's for CharacterCreationData #17

Open sp00ktober opened 1 year ago

sp00ktober commented 1 year ago

Once in game you can press the 'O' button to open up a specific UI. This will then call some checks on the players character UID which need to be fullfilled in order to not get an error message.

The method which parses the UID is in System.Guid.ParseGuid1() and the UID is set here: https://github.com/sp00ktober/WorldsAdriftReborn/blob/fa5dfe9138f930e78ebda642119eb99f4318d8c7/WorldsAdriftServer/Helper/CharacterSelection/Character.cs#L51

MonoToast commented 1 year ago

It is possible to generate a new GUID using

Guid guid = Guid.NewGuid();

then replacing that line with

return new CharacterCreationData(1, guid.ToString(), characterName, "serverName?", serverIdentifier, cosmetics, colors, true, false, false);

But after doing that this issue crops up for Socal Menu

Image

Assuming that this needs to be handled via another API call to the REST server have to look further into it

sp00ktober commented 1 year ago

Looks good, thanks for the investigation!

CalamityTheMadSoothsayer commented 6 months ago

Handled during Character Creation / Storage