TheNinth

on the storage of pet names in Cube World

Jul 25th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. I just found out some sweet stuff about the way pet names are stored
  2. The name is stored in the place customisations would be
  3. But at the last byte of what Level of a spirit cube would be is one character
  4. The same pattern continues for 15 characters
  5. Character 1 for a currently equipped Pet is stored at pPlayerBase +1073
  6. and the next is +103f and the next +1047 and so on and so forth
  7. Here's where it gets interesting
  8. At pPlayerBase+1134, is a number
  9. The number determines how many characters of those 15 should be used
  10. If you type a /petname "spankyman"
  11. +1134 gets changed to 9
  12. But when you then set the /petname to "spu"
  13. +1134 gets changed to 3, and the now garbage characters remain
  14. so the data would be "spunkyman", but the pet name would be "spu"
  15. And if +1134 is changed to anything over 16 the name appears blank
Advertisement
Add Comment
Please, Sign In to add comment