Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is a short list of codes for FR/LG grab ACE.
- This Pastebin contains the following codes
- -Change Trainer Gender
- -Change Trainer Name
- -Change Trainer Gender
- For all Non Japanese games
- Box codes
- Box 1: W R k n * ” … o [WRkn*”…o] * = V for Female and F for male (Lefty ")
- Box 2: _ _ _ … ” Q n _ [ …”Qn ] (Lefty ")
- Box 3: _ _ _ … ! n _ _ [ …!n ]
- Box 4: _ … ‘ R m _ _ _ [ …‘Rm ] (Righty ')
- Box 5: _ _ _ … _ _ _ _ [ … ]
- Box 6: _ _ _ _ _ _ … _ [ … ]
- Box 7: _ _ _ _ _ … _ _ [ … ]
- Box 8: _ _ _ _ … _ _ _ [ … ]
- Box 9: _ _ _ … _ _ _ _ [ … ]
- Box 10: _ _ _ _ _ … o a [ …oa]
- Box 11: … o _ _ _ _ _ _ […o ]
- All commands (with exit code and fillers):
- SBCS r12, r15, #0xd100
- MOVS r11, #0x* * = d for female and c for male
- 0x000000FF ; (filler)
- SBC r11, r11, #0xb
- 0x0000FF00 ; (filler)
- ADC r11, r11, #0x0
- 0x00FF0000 ; (filler)
- STRH r11, [r12, #0x30]
- ; ======== EXIT CODE ========
- 0xFF000000 ; (filler)
- 0x00000000 ; (filler)
- 0x00000000 ; (filler)
- 0x000000FF ; (filler)
- 0x00000000 ; (filler)
- 0x0000FF00 ; (filler)
- 0x00000000 ; (filler)
- 0x00FF0000 ; (filler)
- 0x00000000 ; (filler)
- 0xFF000000 ; (filler)
- 0x00000000 ; (filler)
- 0x00000000 ; (filler)
- 0x000000FF ; (filler)
- MOVS r0, #0x0
- MOVS r15, #0x354
- _____________________________________________________________________________________________________________
- -Change Trainer Name
- For all Non Japanese Games
- 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.
- 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
- for all non-Japanese Versions
- Box 1: W R k n m A … o [WRknmA…o]
- Box 2: _ _ _ 0 A Q n _ [ 0AQn ]
- Box 3: _ _ / ” R m _ _ [ /”Rm ] (Lefty ")
- Box 4: _ B ” R m _ _ _ [ B”Rm ]
- Box 5: D ” R m _ _ _ _ [D”Rm ]
- Box 6: _ _ _ _ _ _ … _ [ … ]
- Box 7: _ _ _ _ _ … _ _ [ … ]
- Box 8: _ _ _ _ … _ _ _ [ … ]
- Box 9: _ _ _ … _ _ _ _ [ … ]
- Box 10: _ _ _ _ _ … o a [ …oa]
- Box 11: … o _ _ _ _ _ _ […o ]
- SBCS r12, r15, #0xd100
- MOVS r11, #0x38400
- 0x000000FF ; (filler)
- SBC r11, r11, #0x28400
- 0x0000FF00 ; (filler)
- STRH r11, [r12, #0x2a]
- 0x00FF0000 ; (filler)
- STRH r11, [r12, #0x2c]
- 0xFF000000 ; (filler)
- STRH r11, [r12, #0x2e]
- ; ======== EXIT CODE ========
- 0x00000000 ; (filler)
- 0x000000FF ; (filler)
- 0x00000000 ; (filler)
- 0x0000FF00 ; (filler)
- 0x00000000 ; (filler)
- 0x00FF0000 ; (filler)
- 0x00000000 ; (filler)
- 0xFF000000 ; (filler)
- 0x00000000 ; (filler)
- 0x00000000 ; (filler)
- 0x000000FF ; (filler)
- MOVS r0, #0x0
- MOVS r15, #0x354
- 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
- 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
- If new name is 2 characters
- Box 1: W R k n * B … o [WRkn*B…o] * = 2nd Letter
- Box 2: _ _ _ * … ! n _ [ *…!n ] * = 1st Letter
- Box 3: _ _ , ” R m _ _ [ ,”Rm ] (Lefty ")
- Box 4: _ _ _ _ … _ _ _ [ … ]
- Box 5: _ _ _ … _ _ _ _ [ … ]
- Box 6: _ _ _ _ _ _ … _ [ … ]
- Box 7: _ _ _ _ _ … _ _ [ … ]
- Box 8: _ _ _ _ … _ _ _ [ … ]
- Box 9: _ _ _ … _ _ _ _ [ … ]
- Box 10: _ _ _ _ _ … o a [ …oa]
- Box 11: … o _ _ _ _ _ _ […o ]
- If new name is 4 characters
- Box 1: W R k n * B … o [WRkn*B…o] * = 2nd Letter
- Box 2: _ _ _ * … ! n _ [ *…!n ] * = 1st Letter
- Box 3: _ _ , ” R m _ _ [ ,”Rm ] (Lefty ")
- Box 4: _ * B … o _ _ _ [ *B…o ] * = 4th Letter
- Box 5: * … ! n / ” R m [*…!n/”Rm] * = 3rd Letter (Lefty ")
- Box 6: _ _ _ _ _ _ … _ [ … ]
- Box 7: _ _ _ _ _ … _ _ [ … ]
- Box 8: _ _ _ _ … _ _ _ [ … ]
- Box 9: _ _ _ … _ _ _ _ [ … ]
- Box 10: _ _ _ _ _ … o a [ …oa]
- Box 11: … o _ _ _ _ _ _ […o ]
- if new name is 6 or more characters.
- 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.
- Box 1: W R k n * B … o [WRkn*B…o] * = 2nd Letter
- Box 2: _ _ _ * … ! n _ [ *…!n ] * = 1st Letter
- Box 3: _ _ , ” R m _ _ [ ,”Rm ] (Lefty ")
- Box 4: _ * B … o _ _ _ [ *B…o ] * = 4th Letter
- Box 5: * … ! n / ” R m [*…!n/”Rm] * = 3rd Letter (Lefty ")
- Box 6: _ _ _ * B … o _ [ *B…o ] * = 6th Letter
- Box 7: _ _ * … ! n _ _ [ *…!n ] * = 5th Letter
- Box 8: _ B ” R m _ _ _ [ B”Rm ] (Lefty ")
- Box 9: _ _ _ … _ _ _ _ [ … ]
- Box 10: _ _ _ _ _ … o a [ …oa]
- Box 11: … o _ _ _ _ _ _ […o ]
- 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
- 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 * = ’
- Box 2: _ _ _ ! B … o _ [ *B…o ] * = Last Letter
- Box 3: _ _ * … ! n _ _ [ R…!n ] * = 2nd to last Letter
- Box 4: _ … … R m _ _ _ [ ……Rm ]
- Box 5: _ _ _ … _ _ _ _ [ … ]
- Box 6: _ _ _ _ _ _ … _ [ … ]
- Box 7: _ _ _ _ _ … _ _ [ … ]
- Box 8: _ _ _ _ … _ _ _ [ … ]
- Box 9: _ _ _ … _ _ _ _ [ … ]
- Box 10: _ _ _ _ _ … o a [ …oa]
- Box 11: … o _ _ _ _ _ _ […o
- codes for
- e-sh4rk.github.io/CodeGenerator/index_frlg.html?game=lg
- Name Setup Code
- @@ title = "Change Trainer Name Setup"
- @@ author = "Theocatic"
- @@ exit = "GrabACEExit"
- char = 0xFFFF
- @@
- sbcs r12, r15, #0xD100
- movs r11, {char} ?
- strh r11, [r12, #0x2A]
- strh r11, [r12, #0x2C]
- strh r11, [r12, #0x2E]
- Change name Code
- @@ title = "Change TID SID (Grab ACE)"
- @@ author = "Theocatic"
- @@ exit = "GrabACEExit"
- ; A list of all characters can be found at https://github.com/pret/pokefirered/blob/master/include/characters.h
- ;Reference chart for Letters
- ; A = BB | G = C1 | M = C7 | S = CD | Y = D3 | e = D9 | k = DF | q = E5 | w = EB
- ; B = BC | H = C2 | N = C8 | T = CE | Z = D4 | f = DA | l = E0 | r = E6 | x = EC
- ; C = BD | I = C3 | O = C9 | U = CF | a = D5 | g = DB | m = E1 | s = E7 | y = ED
- ; D = BE | J = C4 | P = CA | V = D0 | b = D6 | h = DC | n = E2 | t = E8 | z = EE
- ; E = BF | K = C5 | Q = CB | W = D1 | c = D7 | i = DD | o = E3 | u = E9 |
- ; F = C0 | L = C6 | R = CC | X = D2 | d = D8 | j = DE | p = E4 | v = EA |
- ; Reference chart for Special Characters note that special characters may make the code too long
- ; Space = 00 | 4 = A5 | ? = AC | , = B8
- ; 9 = AA | 3 = A4 | . = AD | … = B0
- ; 8 = A9 | 2 = A3 | - = AE | / = BA
- ; 7 = A8 | 1 = A2 | Male =-B5 |
- ; 6 = A7 | 0 = A1 | Female = B6
- ; 5 = A6 | ! = AB | Poke = B7
- ; Set Each Letter according to the chart above. All of these must have 0x at the beginning
- ; Empty Characters should be set to FF
- L1 = 0xCE
- L2 = 0xBF00 ;Must have 00 at the end
- L3 = 0xCD
- L4 = 0xCE00 ;Must have 00 at the end
- L5 = 0xFF
- L6 = 0xFF00 ; must have 00 at the end
- ; These are set automatically
- name1 = L2 + L1
- name2 = L4 + L3
- name3 = L5 + L6
- @@
- sbcs r12, r15, #0xD100
- ;first 2 characters of name
- movs r11, {name1} ?
- strh r11, [r12, #0x28]
- ; 3rd and 4th characters of name
- movs r11, {name2} ?
- strh r11, [r12, #0x2A]
- ;5th and 6th characters of name
- movs r11, {name3}?
- strh r11, [r12, #0x2C]
- Set Last Letter Code
- @@ title = "Change TID SID (Grab ACE)"
- @@ author = "Theocatic"
- @@ exit = "GrabACEExit"
- ; A list of all characters can be found at https://github.com/pret/pokefirered/blob/master/include/characters.h
- ;Reference chart for Letters
- ; A = BB | G = C1 | M = C7 | S = CD | Y = D3 | e = D9 | k = DF | q = E5 | w = EB
- ; B = BC | H = C2 | N = C8 | T = CE | Z = D4 | f = DA | l = E0 | r = E6 | x = EC
- ; C = BD | I = C3 | O = C9 | U = CF | a = D5 | g = DB | m = E1 | s = E7 | y = ED
- ; D = BE | J = C4 | P = CA | V = D0 | b = D6 | h = DC | n = E2 | t = E8 | z = EE
- ; E = BF | K = C5 | Q = CB | W = D1 | c = D7 | i = DD | o = E3 | u = E9 |
- ; F = C0 | L = C6 | R = CC | X = D2 | d = D8 | j = DE | p = E4 | v = EA |
- ; Reference chart for Special Characters note that special characters may make the code too long
- ; Space = 00 | 4 = A5 | ? = AC | , = B8
- ; 9 = AA | 3 = A4 | . = AD | … = B0
- ; 8 = A9 | 2 = A3 | - = AE | / = BA
- ; 7 = A8 | 1 = A2 | Male =-B5 |
- ; 6 = A7 | 0 = A1 | Female = B6
- ; 5 = A6 | ! = AB | Poke = B7
- Letter6 = 0xAB
- Letter7 = 0xAB00 ; 00 must be at the end of this
- ;this will point to the second to last character.
- ;0x28 = 1 0x29 = 2 0x2A = 3 0x2B = 4 0x2C = 5 0x2D = 6
- LetterPosition = 0x29
- ; set automatically
- Letters = Letter6 + Letter7
- @@
- sbcs r12, r15, #0xD100
- adc r12, {LetterPosition} ?
- movs r11, {Letters} ?
- strh r11, [r12]
Advertisement
Add Comment
Please, Sign In to add comment