Guest User

Untitled

a guest
Sep 22nd, 2019
916
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Pokemon Masters lmd animation file specification
  2. pointer = position in file related to pointer location
  3. string = int32 char count + chars
  4.  
  5. offset - data type - description
  6. 0 - int32 - 14
  7. 4 - 4bytes string - must by "LMD0"
  8. 24 - int32 - pointer
  9. 28 - int32 - pointer to "format info"
  10. 100 - float - animation duration in seconds
  11. 104 - int32 - pointer to file name string
  12. 116 - int32 - bones count
  13. 120 - bones * 4 - pointers to "bone" struct
  14.  
  15. "format info"
  16. 0 - int32 - num determining format
  17. ==4 => +24 bytes 08 00 0C 00 04 00 08 00 08 00 00 00
  18. ==8 => +0 bytes
  19. 8(+24) - int32 - pointer to version string
  20. 12(+24) - int32 content pointer (always 4?)
  21. int32 - pointer to "content name struct"
  22. format seems: 4 -> animation; 8 -> model
  23.  
  24.  
  25. "content name struct"
  26. 0 - int32 - count
  27. 4 - int32 - pointers string name
  28.  
  29. "bone"
  30. 0 - 4 bytes - entity id
  31. 4 - int32 - pointer to name string
  32. 8 - 4 bytes - constant (7D 3F B5 3F)
  33. 12 - int32 - 1
  34. 16 - int32 - 7
  35. 20 - int32 - pointer to "anim component pointers"
  36.  
  37. "anim component pointers"
  38. 0 - 4 bytes - entity id
  39. 4 - int32 - pointer to "unknown anim component" has "transform struct" with unknown purpose; stride 1 element (int32 element)
  40. 8 - int32 - pointer to "unknown anim component" has "transform struct" with unknown purpose; stride 3 elements
  41. 12 - int32 - pointer to rotation "transform struct" (in quaternion)
  42. 16 - int32 - pointer to translation "transform struct"
  43.  
  44. "transform struct"
  45. 0 - 4 bytes - entity id
  46. 4 - int32 - pointer to "time table"
  47. 4 - int32 - 4 (pointer to element count?)
  48. 8 - int32 - count of elements
  49. 12 - float - element
  50. Rotation stored in quaternion (4 floats)
  51. Tralslation stored in vector3 (3 floats)
  52.  
  53. "time table"
  54. 0 - int32 - timestamp count
  55. 4 - float - timestamp
  56. timestamp range from 0 to 1
RAW Paste Data