Theocatic

FR/LG Grab ACE Trainer codes

Nov 30th, 2024 (edited)
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.18 KB | None | 0 0
  1. This is a short list of codes for FR/LG grab ACE.
  2.  
  3. This Pastebin contains the following codes
  4.  
  5. -Change Trainer Gender
  6. -Change Trainer Name
  7.  
  8.  
  9.  
  10. -Change Trainer Gender
  11.  
  12. For all Non Japanese games
  13. Box codes
  14.  
  15. Box 1: W R k n * ” … o [WRkn*”…o] * = V for Female and F for male (Lefty ")
  16. Box 2: _ _ _ … ” Q n _ [ …”Qn ] (Lefty ")
  17. Box 3: _ _ _ … ! n _ _ [ …!n ]
  18. Box 4: _ … ‘ R m _ _ _ [ …‘Rm ] (Righty ')
  19. Box 5: _ _ _ … _ _ _ _ [ … ]
  20. Box 6: _ _ _ _ _ _ … _ [ … ]
  21. Box 7: _ _ _ _ _ … _ _ [ … ]
  22. Box 8: _ _ _ _ … _ _ _ [ … ]
  23. Box 9: _ _ _ … _ _ _ _ [ … ]
  24. Box 10: _ _ _ _ _ … o a [ …oa]
  25. Box 11: … o _ _ _ _ _ _ […o ]
  26.  
  27. All commands (with exit code and fillers):
  28. SBCS r12, r15, #0xd100
  29. MOVS r11, #0x* * = d for female and c for male
  30. 0x000000FF ; (filler)
  31. SBC r11, r11, #0xb
  32. 0x0000FF00 ; (filler)
  33. ADC r11, r11, #0x0
  34. 0x00FF0000 ; (filler)
  35. STRH r11, [r12, #0x30]
  36. ; ======== EXIT CODE ========
  37. 0xFF000000 ; (filler)
  38. 0x00000000 ; (filler)
  39. 0x00000000 ; (filler)
  40. 0x000000FF ; (filler)
  41. 0x00000000 ; (filler)
  42. 0x0000FF00 ; (filler)
  43. 0x00000000 ; (filler)
  44. 0x00FF0000 ; (filler)
  45. 0x00000000 ; (filler)
  46. 0xFF000000 ; (filler)
  47. 0x00000000 ; (filler)
  48. 0x00000000 ; (filler)
  49. 0x000000FF ; (filler)
  50. MOVS r0, #0x0
  51. MOVS r15, #0x354
  52. _____________________________________________________________________________________________________________
  53. -Change Trainer Name
  54. For all Non Japanese Games
  55. This is a 2-3 step code. If your desired name is 6 characters or less you can get 1 code from the esh4rk ACE generator codes below.
  56.  
  57. Code 1 which sets up the name to be changed. Needed because names need to end in a specific value or the game crashes. This will shorten your name temporarily
  58. for all non-Japanese Versions
  59.  
  60. Box 1: W R k n m A … o [WRknmA…o]
  61. Box 2: _ _ _ 0 A Q n _ [ 0AQn ]
  62. Box 3: _ _ / ” R m _ _ [ /”Rm ] (Lefty ")
  63. Box 4: _ B ” R m _ _ _ [ B”Rm ]
  64. Box 5: D ” R m _ _ _ _ [D”Rm ]
  65. Box 6: _ _ _ _ _ _ … _ [ … ]
  66. Box 7: _ _ _ _ _ … _ _ [ … ]
  67. Box 8: _ _ _ _ … _ _ _ [ … ]
  68. Box 9: _ _ _ … _ _ _ _ [ … ]
  69. Box 10: _ _ _ _ _ … o a [ …oa]
  70. Box 11: … o _ _ _ _ _ _ […o ]
  71.  
  72. SBCS r12, r15, #0xd100
  73. MOVS r11, #0x38400
  74. 0x000000FF ; (filler)
  75. SBC r11, r11, #0x28400
  76. 0x0000FF00 ; (filler)
  77. STRH r11, [r12, #0x2a]
  78. 0x00FF0000 ; (filler)
  79. STRH r11, [r12, #0x2c]
  80. 0xFF000000 ; (filler)
  81. STRH r11, [r12, #0x2e]
  82. ; ======== EXIT CODE ========
  83. 0x00000000 ; (filler)
  84. 0x000000FF ; (filler)
  85. 0x00000000 ; (filler)
  86. 0x0000FF00 ; (filler)
  87. 0x00000000 ; (filler)
  88. 0x00FF0000 ; (filler)
  89. 0x00000000 ; (filler)
  90. 0xFF000000 ; (filler)
  91. 0x00000000 ; (filler)
  92. 0x00000000 ; (filler)
  93. 0x000000FF ; (filler)
  94. MOVS r0, #0x0
  95. MOVS r15, #0x354
  96.  
  97.  
  98. Code 2 depends on how many characters you have in your desired new name. If desired new name is an odd number of characters you will need a 3rd code provided below
  99. If name is 1 character long or if you wish to use special unelectable characters refer to the code for e-sh4rk's Ace code generator
  100.  
  101.  
  102. If new name is 2 characters
  103. Box 1: W R k n * B … o [WRkn*B…o] * = 2nd Letter
  104. Box 2: _ _ _ * … ! n _ [ *…!n ] * = 1st Letter
  105. Box 3: _ _ , ” R m _ _ [ ,”Rm ] (Lefty ")
  106. Box 4: _ _ _ _ … _ _ _ [ … ]
  107. Box 5: _ _ _ … _ _ _ _ [ … ]
  108. Box 6: _ _ _ _ _ _ … _ [ … ]
  109. Box 7: _ _ _ _ _ … _ _ [ … ]
  110. Box 8: _ _ _ _ … _ _ _ [ … ]
  111. Box 9: _ _ _ … _ _ _ _ [ … ]
  112. Box 10: _ _ _ _ _ … o a [ …oa]
  113. Box 11: … o _ _ _ _ _ _ […o ]
  114.  
  115.  
  116. If new name is 4 characters
  117. Box 1: W R k n * B … o [WRkn*B…o] * = 2nd Letter
  118. Box 2: _ _ _ * … ! n _ [ *…!n ] * = 1st Letter
  119. Box 3: _ _ , ” R m _ _ [ ,”Rm ] (Lefty ")
  120. Box 4: _ * B … o _ _ _ [ *B…o ] * = 4th Letter
  121. Box 5: * … ! n / ” R m [*…!n/”Rm] * = 3rd Letter (Lefty ")
  122. Box 6: _ _ _ _ _ _ … _ [ … ]
  123. Box 7: _ _ _ _ _ … _ _ [ … ]
  124. Box 8: _ _ _ _ … _ _ _ [ … ]
  125. Box 9: _ _ _ … _ _ _ _ [ … ]
  126. Box 10: _ _ _ _ _ … o a [ …oa]
  127. Box 11: … o _ _ _ _ _ _ […o ]
  128.  
  129. if new name is 6 or more characters.
  130. Note if your new name is 6 characters long you only need this code, but any name with 7 characters will need a 3rd code.
  131.  
  132. Box 1: W R k n * B … o [WRkn*B…o] * = 2nd Letter
  133. Box 2: _ _ _ * … ! n _ [ *…!n ] * = 1st Letter
  134. Box 3: _ _ , ” R m _ _ [ ,”Rm ] (Lefty ")
  135. Box 4: _ * B … o _ _ _ [ *B…o ] * = 4th Letter
  136. Box 5: * … ! n / ” R m [*…!n/”Rm] * = 3rd Letter (Lefty ")
  137. Box 6: _ _ _ * B … o _ [ *B…o ] * = 6th Letter
  138. Box 7: _ _ * … ! n _ _ [ *…!n ] * = 5th Letter
  139. Box 8: _ B ” R m _ _ _ [ B”Rm ] (Lefty ")
  140. Box 9: _ _ _ … _ _ _ _ [ … ]
  141. Box 10: _ _ _ _ _ … o a [ …oa]
  142. Box 11: … o _ _ _ _ _ _ […o ]
  143.  
  144. If your new name is an odd amount of characters set all of the characters before the odd name and use the following code to set the last letter. You will need to re enter the second to last character for simplicity
  145.  
  146. Box 1: W R k n * G ? n [WRkn*G?n] * depends on position of last letter if last letter is 3rd * = 3 if last letter is 5th * = ? if last letter is 7th * = ’
  147. Box 2: _ _ _ ! B … o _ [ *B…o ] * = Last Letter
  148. Box 3: _ _ * … ! n _ _ [ R…!n ] * = 2nd to last Letter
  149. Box 4: _ … … R m _ _ _ [ ……Rm ]
  150. Box 5: _ _ _ … _ _ _ _ [ … ]
  151. Box 6: _ _ _ _ _ _ … _ [ … ]
  152. Box 7: _ _ _ _ _ … _ _ [ … ]
  153. Box 8: _ _ _ _ … _ _ _ [ … ]
  154. Box 9: _ _ _ … _ _ _ _ [ … ]
  155. Box 10: _ _ _ _ _ … o a [ …oa]
  156. Box 11: … o _ _ _ _ _ _ […o
  157.  
  158.  
  159. codes for
  160. e-sh4rk.github.io/CodeGenerator/index_frlg.html?game=lg
  161.  
  162. Name Setup Code
  163. @@ title = "Change Trainer Name Setup"
  164. @@ author = "Theocatic"
  165. @@ exit = "GrabACEExit"
  166.  
  167.  
  168. char = 0xFFFF
  169.  
  170.  
  171. @@
  172.  
  173. sbcs r12, r15, #0xD100
  174. movs r11, {char} ?
  175. strh r11, [r12, #0x2A]
  176. strh r11, [r12, #0x2C]
  177. strh r11, [r12, #0x2E]
  178.  
  179.  
  180. Change name Code
  181.  
  182. @@ title = "Change TID SID (Grab ACE)"
  183. @@ author = "Theocatic"
  184. @@ exit = "GrabACEExit"
  185.  
  186. ; A list of all characters can be found at https://github.com/pret/pokefirered/blob/master/include/characters.h
  187. ;Reference chart for Letters
  188. ; A = BB | G = C1 | M = C7 | S = CD | Y = D3 | e = D9 | k = DF | q = E5 | w = EB
  189. ; B = BC | H = C2 | N = C8 | T = CE | Z = D4 | f = DA | l = E0 | r = E6 | x = EC
  190. ; C = BD | I = C3 | O = C9 | U = CF | a = D5 | g = DB | m = E1 | s = E7 | y = ED
  191. ; D = BE | J = C4 | P = CA | V = D0 | b = D6 | h = DC | n = E2 | t = E8 | z = EE
  192. ; E = BF | K = C5 | Q = CB | W = D1 | c = D7 | i = DD | o = E3 | u = E9 |
  193. ; F = C0 | L = C6 | R = CC | X = D2 | d = D8 | j = DE | p = E4 | v = EA |
  194.  
  195.  
  196. ; Reference chart for Special Characters note that special characters may make the code too long
  197. ; Space = 00 | 4 = A5 | ? = AC | , = B8
  198. ; 9 = AA | 3 = A4 | . = AD | … = B0
  199. ; 8 = A9 | 2 = A3 | - = AE | / = BA
  200. ; 7 = A8 | 1 = A2 | Male =-B5 |
  201. ; 6 = A7 | 0 = A1 | Female = B6
  202. ; 5 = A6 | ! = AB | Poke = B7
  203.  
  204.  
  205.  
  206. ; Set Each Letter according to the chart above. All of these must have 0x at the beginning
  207. ; Empty Characters should be set to FF
  208.  
  209. L1 = 0xCE
  210. L2 = 0xBF00 ;Must have 00 at the end
  211. L3 = 0xCD
  212. L4 = 0xCE00 ;Must have 00 at the end
  213. L5 = 0xFF
  214. L6 = 0xFF00 ; must have 00 at the end
  215.  
  216. ; These are set automatically
  217. name1 = L2 + L1
  218. name2 = L4 + L3
  219. name3 = L5 + L6
  220.  
  221. @@
  222.  
  223. sbcs r12, r15, #0xD100
  224.  
  225. ;first 2 characters of name
  226. movs r11, {name1} ?
  227. strh r11, [r12, #0x28]
  228.  
  229. ; 3rd and 4th characters of name
  230. movs r11, {name2} ?
  231. strh r11, [r12, #0x2A]
  232.  
  233. ;5th and 6th characters of name
  234. movs r11, {name3}?
  235. strh r11, [r12, #0x2C]
  236.  
  237.  
  238. Set Last Letter Code
  239. @@ title = "Change TID SID (Grab ACE)"
  240. @@ author = "Theocatic"
  241. @@ exit = "GrabACEExit"
  242.  
  243. ; A list of all characters can be found at https://github.com/pret/pokefirered/blob/master/include/characters.h
  244. ;Reference chart for Letters
  245. ; A = BB | G = C1 | M = C7 | S = CD | Y = D3 | e = D9 | k = DF | q = E5 | w = EB
  246. ; B = BC | H = C2 | N = C8 | T = CE | Z = D4 | f = DA | l = E0 | r = E6 | x = EC
  247. ; C = BD | I = C3 | O = C9 | U = CF | a = D5 | g = DB | m = E1 | s = E7 | y = ED
  248. ; D = BE | J = C4 | P = CA | V = D0 | b = D6 | h = DC | n = E2 | t = E8 | z = EE
  249. ; E = BF | K = C5 | Q = CB | W = D1 | c = D7 | i = DD | o = E3 | u = E9 |
  250. ; F = C0 | L = C6 | R = CC | X = D2 | d = D8 | j = DE | p = E4 | v = EA |
  251.  
  252.  
  253. ; Reference chart for Special Characters note that special characters may make the code too long
  254. ; Space = 00 | 4 = A5 | ? = AC | , = B8
  255. ; 9 = AA | 3 = A4 | . = AD | … = B0
  256. ; 8 = A9 | 2 = A3 | - = AE | / = BA
  257. ; 7 = A8 | 1 = A2 | Male =-B5 |
  258. ; 6 = A7 | 0 = A1 | Female = B6
  259. ; 5 = A6 | ! = AB | Poke = B7
  260.  
  261.  
  262. Letter6 = 0xAB
  263. Letter7 = 0xAB00 ; 00 must be at the end of this
  264.  
  265. ;this will point to the second to last character.
  266. ;0x28 = 1 0x29 = 2 0x2A = 3 0x2B = 4 0x2C = 5 0x2D = 6
  267. LetterPosition = 0x29
  268.  
  269.  
  270. ; set automatically
  271. Letters = Letter6 + Letter7
  272.  
  273. @@
  274.  
  275. sbcs r12, r15, #0xD100
  276. adc r12, {LetterPosition} ?
  277. movs r11, {Letters} ?
  278.  
  279. strh r11, [r12]
Advertisement
Add Comment
Please, Sign In to add comment