[DiscordArchive] What's the purpose of low GUIDs? Why not just use a regular GUID?
[DiscordArchive] What's the purpose of low GUIDs? Why not just use a regular GUID?
Archived author: ritzmenardi • Posted: 2023-06-21T16:09:24.365000+00:00
Original source
What's the purpose of low GUIDs? Why not just use a regular GUID?
Archived author: Foe • Posted: 2023-06-21T16:13:35.016000+00:00
Original source
In general? They're a smaller datatype and gives good enough identification as long as you're not mixing unit/object types
Archived author: ritzmenardi • Posted: 2023-06-21T16:16:17.953000+00:00
Original source
So they're unique among all current instantiations? For example player:GetGUIDLow() would return a unique player lowGUID but it might collide with WorldObject:GetGUIDLow()?
Archived author: Foe • Posted: 2023-06-21T16:17:04.153000+00:00
Original source
depends on the worldobject, if the worldobject is a player object then it wouldn't collide, but it could technically collide with a creature or gameobject object
Archived author: Foe • Posted: 2023-06-21T16:21:15.566000+00:00
Original source
emulators handle guids differently than Blizz does, but Blizz' structure makes it more apparent how they are built, and we handle them somewhat similarly
Creature-0-4170-0-41-68662-00000F4B37
This would be a full GUID for an creature, where you have the identifier and other identification prior to the low GUID
If you use a player GUID as a comparison, the player GUID would look something like this
Player-970-00000F4B37
Both are easily distinguishable as a full GUID, but they share the same low GUID