-How- unique is ObjectToString? Are copies of the same creature the same string? If I use CopyObject for instance, the copy = original? Are players given unique ObjectToString's? If player 1 logs in and player 2 logs in after. IF player 1 leaves is player 2 now considered player 1?
ObjectToString
Débuté par
Highv Priest
, janv. 01 2013 08:32
#1
Posté 01 janvier 2013 - 08:32
#2
Posté 01 janvier 2013 - 08:52
100% unique, within any given run of the game.Highv Priest wrote...
-How- unique is ObjectToString?...
No....Are copies of the same creature the same string?...
Yes.... If I use CopyObject for instance, the copy = original?...
Yes....Are players given unique ObjectToString's?...
Player 2 will be the First Player as far as GetFirstPC() goes. But he will not have the Object ID that player 1 had. If Player 1 logs back in he should get his old ID back. I have no Idea who the first PC would be though....If player 1 logs in and player 2 logs in after. IF player 1 leaves is player 2 now considered player 1?
Player Information is keept in the Turd allowing them to be one of the few things that can leave the game and come back with the same ID.
When the Game loads the module gets ID 0. the First Area gets ID 1 the second area gets ID 2 ect...
After that each object is given the next ID as they are created, If an item is destroyed the ID is invalid and never used again.
PC's are given ID's at that top of the range
Modifié par Lightfoot8, 01 janvier 2013 - 08:54 .
#3
Posté 01 janvier 2013 - 08:55
its unique per server instance
if you copy object, it gets new ID and objectToString simply returns this ID in string
as far players related, their id (might - not sure if always atm) change when relog and there is little discrepancy but I dont recall any details, I do rely on this and no problem
if you copy object, it gets new ID and objectToString simply returns this ID in string
as far players related, their id (might - not sure if always atm) change when relog and there is little discrepancy but I dont recall any details, I do rely on this and no problem
#4
Posté 01 janvier 2013 - 08:58
Hmm, I may have to double check on the PC ID's at some point.





Retour en haut






