G3NG4R

Entralink Forest Data Structure

Dec 1st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. The Entralink Forest data area has 2132 (0x854) bytes
  2.  
  3. Save Offsets
  4. BW 0x22C00
  5. B2W2 0x22A00
  6.  
  7. Encryption
  8. The initial seed is taken from the data at 0x84C.
  9. New seeds are calculated via LCRNG.
  10. The upper 16 bits are XORed against the data to encrypt/decrypt (words).
  11. seed = (0x41C64E6D * seed + 0x6073);
  12. data = data ^ (seed >> 16);
  13.  
  14. General Structure
  15. 0x000 - 0x84B encrypted data
  16. 0x84C - 0x84F initial encryption seed
  17. 0x850 - 0x851 update counter
  18. 0x852 - 0x853 checksum from 0x000 - 0x84F (CRC16-CCITT)
  19.  
  20. Decrypted Data Structure (0x000 - 0x84B)
  21. 3 x 20 Pokemon in each area from 1 - 8.
  22. 3 x 10 Pokemon in 9th area.
  23. 20 Pokemon in the deepest area.
  24. So they let you store a total of 530 Pokemon there!
  25.  
  26. 0x000 deepest area
  27. 0x050 9th area center
  28. 0x078 9th area left
  29. 0x0A0 9th area right
  30. 0x0C8 1st area center
  31. 0x118 1st area left
  32. 0x168 1st area right
  33. 0x1B8 2nd area center
  34. 0x208 2nd area left
  35. 0x258 2nd area right
  36. 0x2A8 3rd area center
  37. 0x2F8 3rd area left
  38. 0x348 3rd area right
  39. 0x398 4th area center
  40. 0x3E8 4th area left
  41. 0x438 4th area right
  42. 0x488 5th area center
  43. 0x4D8 5th area left
  44. 0x528 5th area right
  45. 0x578 6th area center
  46. 0x5C8 6th area left
  47. 0x618 6th area right
  48. 0x668 7th area center
  49. 0x6B8 7th area left
  50. 0x708 7th area right
  51. 0x758 8th area center
  52. 0x7A8 8th area left
  53. 0x7F8 8th area right
  54. 0x848 unlock area 9 (0x01 to unlock)
  55. 0x849 unlock areas 3 - 8 (0x01 - 0x06) (area 1 & 2 and the deepest area are unlocked by default -> 0x00)
  56. 0x84A 0x00
  57. 0x84B 0x00
  58.  
  59.  
  60. Pokemon Structure (4 bytes)
  61. Bits
  62. 00-10 species
  63. 11-20 special move
  64. 21-22 gender (0 -> male, 1 -> female, 2 -> genderless)
  65. 23-27 form (see below)
  66. 28-31 animation (see below)
  67.  
  68. Form Bits
  69. Unown
  70. 0 A
  71. ...
  72. 25 Z
  73. 26 !
  74. 27 ?
  75.  
  76. Deoxys
  77. 0 Normal
  78. 1 Attack
  79. 2 Defense
  80. 3 Speed
  81.  
  82. Burmy/Wormadam
  83. 0 Plant
  84. 1 Sand
  85. 2 Trash
  86.  
  87. Shellos/Gastrodon
  88. 0 West
  89. 1 East
  90.  
  91. Rotom
  92. 0 Normal
  93. 1 Heat
  94. 2 Wash
  95. 3 Frost
  96. 4 Fan
  97. 5 Mow
  98.  
  99. Giratina
  100. 0 Altered
  101. 1 Origin
  102.  
  103. Shaymin
  104. 0 Land
  105. 1 Sky
  106.  
  107. Basculin
  108. 0 Red
  109. 1 Blue
  110.  
  111. Deerling/Sawsbuck
  112. 0 Winter
  113. 1 Spring
  114. 2 Summer
  115. 3 Autumn
  116.  
  117. Meloetta
  118. 0 Aria
  119. 1 Pirouette
  120.  
  121.  
  122. Animations
  123. 0 randomly turning around
  124. 2 randomly walking
  125. 4 randomly walking
  126. 6 walking up/down
  127. 8 walking left/right
  128. 10 walking left/right and randomly looking up/down
  129. 12 turning around clockwise
  130. 14 turning around counterclockwise
  131. All odd numbers are invalid for animations and will make the Pokemon invisible.
Advertisement
Add Comment
Please, Sign In to add comment