ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Draconius GO
Closed Thread
 
Thread Tools
  #24226    
Old March 16th, 2013 (10:29 AM).
ArthurWaine ArthurWaine is offline
     
    Join Date: Jul 2012
    Gender: Male
    Posts: 21
    Hey Guys! Quick question here: was wondering if there was non-hex editing way to change the name of BILL'S PC in Firered? And if there isn't, perhaps a quick pointer on how this would be done (from my very limited hex editing knowledge, this shouldn't be too hard, I imagine). Thanks!

    Relevant Advertising!

      #24227    
    Old March 16th, 2013 (11:19 AM).
    karatekid552's Avatar
    karatekid552 karatekid552 is offline
    What happens if I push it?....
       
      Join Date: Nov 2012
      Location: Do you really want to know? Really?
      Gender: Male
      Nature: Bold
      Posts: 1,766
      Quote:
      Originally Posted by ArthurWaine View Post
      Hey Guys! Quick question here: was wondering if there was non-hex editing way to change the name of BILL'S PC in Firered? And if there isn't, perhaps a quick pointer on how this would be done (from my very limited hex editing knowledge, this shouldn't be too hard, I imagine). Thanks!
      A-Text would be the non-hex editor way to go. It can be buggy though.

      To do it with Hex editing, download GoldFinger Hex Editor and a .tbl text file. This will allow you to read the text. Then load both the .tbl and FireRed into GoldFinger and search for your text. Then edit it. If you need more room, you will have to repoint the text.
      __________________

      Paired with Simba
        #24228    
      Old March 16th, 2013 (3:43 PM). Edited March 16th, 2013 by iDowngrade.
      iDowngrade iDowngrade is offline
         
        Join Date: Jan 2013
        Gender: Male
        Posts: 34
        Guys, how do i edit existing ingame scripts?
        I need to remove the oak starting part of fire red, thanks.

        And what's the script for a box that asks me instead of just yes/no...
        Custom options, like

        Instead of yes no
        Hum...
        Ho-oh or lugia
          #24229    
        Old March 16th, 2013 (4:20 PM).
        Reygok's Avatar
        Reygok Reygok is offline
        Beginning Hacker
           
          Join Date: Sep 2009
          Gender: Male
          Posts: 60
          iDowngrade, read http://www.pokecommunity.com/showthread.php?t=164276
          In there, nearly everything about scripting is explained.

          My question: I need a new offset for my new pokémon's moveset, how much space do I need?

          Thanks in advance for all answers
          Reygok
            #24230    
          Old March 16th, 2013 (4:35 PM).
          miksy91's Avatar
          miksy91 miksy91 is offline
          Dark Energy is back in action! ;)
             
            Join Date: Oct 2008
            Location: A small country in the North
            Gender: Male
            Nature: Relaxed
            Posts: 1,438
            Quote:
            Originally Posted by Reygok View Post
            My question: I need a new offset for my new pokémon's moveset, how much space do I need?

            Thanks in advance for all answers
            Reygok
            There are more than 256 different moves in Gen III games. And what I refer this by is that 0x100 as hexadecimal number stands for 256 in decimal. And in other words, we can't describe all the moves by just using one single byte, we need another (or at least part of it).

            So basically, each move takes 2 bytes space. And pokemon's level value is only (at maximum) one byte long (which it most likely is) so there could be a structure such as this one built in the game for each pokemon:
            [Level] [Move parameter 1] [Move parameter 2] [Level] [Move parameter 1] [Move parameter 2] [Level] ...

            So each move takes three bytes, the level the pokemon learns the certain move at along with two bytes describing the move the pokemon learns. So if you for example make a certain pokemon learn 10 different moves, that takes (10 * 3 = ) 30 bytes (and 0x1E bytes in hex).
            And if that move data would be stored in offset 0x740005 in the rom for instance, the move data would end at offset 0x740005 + 0x1E - 0x1 = 0x740022

            Spoiler:

            Why did I subtract 0x1 from (0x740005 + 0x1E) there? Well the logic is exactly the same as in this following example.

            Think about reading pages 1 and 2 of a certain book. How many pages have you read? 2-1 = 1 ? No, you've read 2 pages, or 2-1 + 1 pages.


            This whole thing is just an assumption because I don't know if the structure really is like that. But you can easily check it out with a hex editor by looking for the move learning data of a certain pokemon.
            __________________
            My Rom Hack



            Fixing bugs in a ROM hack
            CP of encountered pokemon in GO

            Learn how to hack GB/C games:

            Check my GameBoy/Color hacking videos in Youtube
            -The video set uses Pokemon Silver (U) rom for demonstrations
              #24231    
            Old March 16th, 2013 (5:35 PM).
            iDowngrade iDowngrade is offline
               
              Join Date: Jan 2013
              Gender: Male
              Posts: 34
              Quote:
              Originally Posted by Reygok View Post
              iDowngrade, read http://www.pokecommunity.com/showthread.php?t=164276
              In there, nearly everything about scripting is explained.

              My question: I need a new offset for my new pokémon's moveset, how much space do I need?

              Thanks in advance for all answers
              Reygok
              Did you even read my question?
              None of that information had anything to be with it
                #24232    
              Old March 16th, 2013 (6:05 PM). Edited March 16th, 2013 by karatekid552.
              karatekid552's Avatar
              karatekid552 karatekid552 is offline
              What happens if I push it?....
                 
                Join Date: Nov 2012
                Location: Do you really want to know? Really?
                Gender: Male
                Nature: Bold
                Posts: 1,766
                Quote:
                Originally Posted by iDowngrade View Post
                Guys, how do i edit existing ingame scripts?
                I need to remove the oak starting part of fire red, thanks.

                And what's the script for a box that asks me instead of just yes/no...
                Custom options, like

                Instead of yes no
                Hum...
                Ho-oh or lugia
                1. Most ingame scripts can be found in A-Map which will open it if you define a script editor in the options menu.

                2. You are looking to create a new multi-choice box. I haven't looked much into this but I know that there are a bunch of preset ones that can be edited with a couple programs in the Toolbox. I also believe you can create your own, but I haven't needed to yet, so I don't know how to.

                Edit: Multi-choice boxes are included in diegoisawesome's tut (well, not how to make new ones, maybe in part 3 which I didn't search yet) so don't get snippy with Reygok. I constantly refer back to that tut, in fact I downloaded it. I also noticed that there is a few preset multi-choice boxes listed in the tut that are blank. Use one of the tools to edit them.

                Edit2: Nope, nothing on making your own, so just edit one of the blank ones.
                __________________

                Paired with Simba
                  #24233    
                Old March 16th, 2013 (6:11 PM). Edited March 16th, 2013 by iDowngrade.
                iDowngrade iDowngrade is offline
                   
                  Join Date: Jan 2013
                  Gender: Male
                  Posts: 34
                  Ok guys i keep getting the floating pointer thingy and i cant see the missing pointer

                  Script
                  Spoiler:
                  #org $multitest
                  lock
                  faceplayer
                  checkflag 0x1300
                  if 0x01 goto $given
                  msgbox2 $message
                  waitmsgbox2
                  multi 0x0 0x0 0x26 0x0
                  copyvar 0x8000 LASTRESULT
                  compare 0x8000 0
                  if 1 goto $vaporeon
                  compare 0x8000 1
                  if 1 goto $jolteon
                  compare 0x8000 2
                  if 1 goto $flareon
                  compare 0x8000 3
                  if 1 goto $espeon
                  compare 0x8000 4
                  if 1 goto $umbreon
                  compare 0x8000 5
                  if 1 goto $eevee
                  compare 0x8000 6
                  if 1 goto $exit
                  compare 0x8000 7
                  release
                  end

                  #org $vaporeon
                  setvar 0x8005 0x1
                  vardisplay 0 0x8005
                  message $vapdog
                  $vapdog 1 = Oh, so da WATER doggie!\nVaporeon!, there we go!
                  boxset 0x6
                  givepokemon 134 5 0x00
                  setflag 0x1300
                  release
                  end

                  #org $jolteon
                  setvar 0x8005 0x2
                  vardisplay 0 0x8005
                  message $joltdog
                  $joltdog 1 = Oh, so da THUNDER doggie!\nJolteon!, there we go!
                  boxset 0x6
                  givepokemon 135 5 0x00
                  setflag 0x1300
                  release
                  end

                  #org $flareon
                  setvar 0x8005 0x3
                  vardisplay 0 0x8005
                  message $flamedog
                  $flamedog 1 = Oh, so da FIRE doggie!\nFlareon!, there we go!
                  boxset 0x6
                  givepokemon 136 5 0x00
                  setflag 0x1300
                  release
                  end

                  #org $espeon
                  setvar 0x8005 0x4
                  vardisplay 0 0x8005
                  message $psydog
                  $psydog 1 = Oh, so da PSYCHIC doggie!\nEspeon!, there we go!
                  boxset 0x6
                  givepokemon 196 5 0x00
                  setflag 0x1300
                  release
                  end

                  #org $umbreon
                  setvar 0x8005 0x5
                  vardisplay 0 0x8005
                  message $darkdog
                  $darkdog 1 = Oh, so da DARK doggie!\nUmbreon!, there we go!
                  boxset 0x6
                  givepokemon 197 5 0x00
                  setflag 0x1300
                  release
                  end

                  #org $eevee
                  setvar 0x8005 0x6
                  vardisplay 0 0x8005
                  message $doggie
                  $doggie 1 = Not sure yet about your doggie?\nThen Eevee is your choice!\pThere we go!
                  boxset 0x6
                  givepokemon 197 5 0x00
                  setflag 0x1300
                  release
                  end

                  #org $exit
                  setvar 0x8005 0x7
                  vardisplay 0 0x8005
                  message $okie
                  $okie 1 = Remember you get one choice.\nAnyways, you can always\pPick an EEVEE and then\nEvolve it later!
                  boxset 0x6
                  release
                  end


                  +Thanks Karate, youre always there to help!

                  EDIT: I keep getting Invalid Command while opening a script!
                    #24234    
                  Old March 16th, 2013 (6:19 PM).
                  karatekid552's Avatar
                  karatekid552 karatekid552 is offline
                  What happens if I push it?....
                     
                    Join Date: Nov 2012
                    Location: Do you really want to know? Really?
                    Gender: Male
                    Nature: Bold
                    Posts: 1,766
                    Quote:
                    Originally Posted by iDowngrade View Post
                    Ok guys i keep getting the floating pointer thingy and i cant see the missing pointer

                    Script
                    Spoiler:
                    #org $multitest
                    lock
                    faceplayer
                    checkflag 0x1300
                    if 0x01 goto $given
                    msgbox2 $message
                    waitmsgbox2
                    multi 0x0 0x0 0x26 0x0
                    copyvar 0x8000 LASTRESULT
                    compare 0x8000 0
                    if 1 goto $vaporeon
                    compare 0x8000 1
                    if 1 goto $jolteon
                    compare 0x8000 2
                    if 1 goto $flareon
                    compare 0x8000 3
                    if 1 goto $espeon
                    compare 0x8000 4
                    if 1 goto $umbreon
                    compare 0x8000 5
                    if 1 goto $eevee
                    compare 0x8000 6
                    if 1 goto $exit
                    compare 0x8000 7
                    release
                    end

                    #org $vaporeon
                    setvar 0x8005 0x1
                    vardisplay 0 0x8005
                    message $vapdog
                    $vapdog 1 = Oh, so da WATER doggie!\nVaporeon!, there we go!
                    boxset 0x6
                    givepokemon 134 5 0x00
                    setflag 0x1300
                    release
                    end

                    #org $jolteon
                    setvar 0x8005 0x2
                    vardisplay 0 0x8005
                    message $joltdog
                    $joltdog 1 = Oh, so da THUNDER doggie!\nJolteon!, there we go!
                    boxset 0x6
                    givepokemon 135 5 0x00
                    setflag 0x1300
                    release
                    end

                    #org $flareon
                    setvar 0x8005 0x3
                    vardisplay 0 0x8005
                    message $flamedog
                    $flamedog 1 = Oh, so da FIRE doggie!\nFlareon!, there we go!
                    boxset 0x6
                    givepokemon 136 5 0x00
                    setflag 0x1300
                    release
                    end

                    #org $espeon
                    setvar 0x8005 0x4
                    vardisplay 0 0x8005
                    message $psydog
                    $psydog 1 = Oh, so da PSYCHIC doggie!\nEspeon!, there we go!
                    boxset 0x6
                    givepokemon 196 5 0x00
                    setflag 0x1300
                    release
                    end

                    #org $umbreon
                    setvar 0x8005 0x5
                    vardisplay 0 0x8005
                    message $darkdog
                    $darkdog 1 = Oh, so da DARK doggie!\nUmbreon!, there we go!
                    boxset 0x6
                    givepokemon 197 5 0x00
                    setflag 0x1300
                    release
                    end

                    #org $eevee
                    setvar 0x8005 0x6
                    vardisplay 0 0x8005
                    message $doggie
                    $doggie 1 = Not sure yet about your doggie?\nThen Eevee is your choice!\pThere we go!
                    boxset 0x6
                    givepokemon 197 5 0x00
                    setflag 0x1300
                    release
                    end

                    #org $exit
                    setvar 0x8005 0x7
                    vardisplay 0 0x8005
                    message $okie
                    $okie 1 = Remember you get one choice.\nAnyways, you can always\pPick an EEVEE and then\nEvolve it later!
                    boxset 0x6
                    release
                    end


                    +Thanks Karate, youre always there to help!
                    ARE YOU USING POKESCRIPT???? Wow... Okay... What is the exact error message as I am not familiar with the errors in Pokescript?

                    Also, if your are going to shorten my username, use "kid", karate is just weird....:p haha, you're welcome.
                    __________________

                    Paired with Simba
                      #24235    
                    Old March 16th, 2013 (6:47 PM).
                    Renegade's Avatar
                    Renegade Renegade is offline
                    Time for real life...
                       
                      Join Date: Nov 2011
                      Location: United States
                      Gender: Male
                      Nature: Careful
                      Posts: 998
                      I have a question. Hope someone can answer!

                      Pokemon Ruby: When I step into a map, the "name" of the map doesn't come down onto the screen when I enter into the map (In-game). Does anybody know why this is happening? Thank you in advance.
                      __________________
                        #24236    
                      Old March 16th, 2013 (7:58 PM).
                      BlackWhiteRobin's Avatar
                      BlackWhiteRobin BlackWhiteRobin is offline
                         
                        Join Date: Sep 2012
                        Age: 19
                        Gender: Male
                        Nature: Quirky
                        Posts: 539
                        Quote:
                        Originally Posted by CrystalStatic View Post
                        I have a question. Hope someone can answer!

                        Pokemon Ruby: When I step into a map, the "name" of the map doesn't come down onto the screen when I enter into the map (In-game). Does anybody know why this is happening? Thank you in advance.
                        Can you make your question clearer?
                        __________________

                          #24237    
                        Old March 16th, 2013 (11:53 PM).
                        ShyRayq's Avatar
                        ShyRayq ShyRayq is offline
                        Unprofessional Unprofessional
                           
                          Join Date: Aug 2007
                          Gender: Male
                          Nature: Adamant
                          Posts: 1,533
                          Hey guys, just wondering something.
                          So, I create a new item in one of the blanks spots. Specifically between Stick "0xE1" and Red Scarf "0xFE"
                          Then, I make an NPC give the item with giveitem. But nothing happens.
                          If anyone can help explain why this is, it would be greatly appreciated.
                          __________________
                          3DS Friend Code: 5069-3944-3902
                          IGN: Peter; (X, Y, OR, AS, S, M)
                          Friend Safari: (Fighting) Throh, Meditite, Breloom
                          Living Pokedex Complete: LG, E, Pl, B, B2, Y, OR, M
                          Big thanks especially to DestinedJagold, Xerneas_X, Elements1 and ~RNC~

                          PM me if you want to trade, or add my FC.
                            #24238    
                          Old March 16th, 2013 (11:59 PM).
                          BlackWhiteRobin's Avatar
                          BlackWhiteRobin BlackWhiteRobin is offline
                             
                            Join Date: Sep 2012
                            Age: 19
                            Gender: Male
                            Nature: Quirky
                            Posts: 539
                            Quote:
                            Originally Posted by Dragoon View Post
                            Hey guys, just wondering something.
                            So, I create a new item in one of the blanks spots. Specifically between Stick "0xE1" and Red Scarf "0xFE"
                            Then, I make an NPC give the item with giveitem. But nothing happens.
                            If anyone can help explain why this is, it would be greatly appreciated.
                            Here's a tut:
                            http://www.pokecommunity.com/showthread.php?t=258426
                            __________________

                              #24239    
                            Old March 17th, 2013 (12:01 AM).
                            Satoshi Ookami's Avatar
                            Satoshi Ookami Satoshi Ookami is offline
                            Memento Mori
                            • Gold Tier
                             
                            Join Date: Jul 2008
                            Location: Abyss of Time, Great Seal
                            Age: 25
                            Gender: Male
                            Nature: Calm
                            Posts: 14,508
                            Quote:
                            Originally Posted by robin22gongon View Post
                            Can you make your question clearer?
                            It's probably the name of map that is always shown on the left topmost corner.

                            @CrystalStatic: Go to header tab of map and set the "show name" possibility
                            __________________
                            ROM hacking FAQ - Read before asking how to play a hack.

                            Anime List | PSN Trophy List
                              #24240    
                            Old March 17th, 2013 (1:32 AM).
                            ShyRayq's Avatar
                            ShyRayq ShyRayq is offline
                            Unprofessional Unprofessional
                               
                              Join Date: Aug 2007
                              Gender: Male
                              Nature: Adamant
                              Posts: 1,533
                              Quote:
                              Originally Posted by robin22gongon View Post
                              I know of this tutorial, however, even creating a rough item, using descriptions and images already in the game, the NPC does not give me the item.

                              I know that the NPC should because I have already created an evolutionary stone. But just this random item is not being given to me.
                              __________________
                              3DS Friend Code: 5069-3944-3902
                              IGN: Peter; (X, Y, OR, AS, S, M)
                              Friend Safari: (Fighting) Throh, Meditite, Breloom
                              Living Pokedex Complete: LG, E, Pl, B, B2, Y, OR, M
                              Big thanks especially to DestinedJagold, Xerneas_X, Elements1 and ~RNC~

                              PM me if you want to trade, or add my FC.
                                #24241    
                              Old March 17th, 2013 (2:14 AM). Edited March 17th, 2013 by Reygok.
                              Reygok's Avatar
                              Reygok Reygok is offline
                              Beginning Hacker
                                 
                                Join Date: Sep 2009
                                Gender: Male
                                Posts: 60
                                Quote:
                                Originally Posted by miksy91 View Post
                                There are more than 256 different moves in Gen III games. And what I refer this by is that 0x100 as hexadecimal number stands for 256 in decimal. And in other words, we can't describe all the moves by just using one single byte, we need another (or at least part of it).

                                [...]

                                This whole thing is just an assumption because I don't know if the structure really is like that. But you can easily check it out with a hex editor by looking for the move learning data of a certain pokemon.
                                Thanks miksy, I'll try with that size

                                Edit: Okay, that did not work out the way I assumed it would. I'm using the Pokémon Editor in 0xRH's GBA Pokémon Game Editor to add new moves to my newly created pokémon. It now only has Tackle, by default, and I can't figure out how to add new ones. Does anybody know how to do that ?

                                Thanks in advance
                                Reygok
                                  #24242    
                                Old March 17th, 2013 (5:33 AM). Edited March 17th, 2013 by iDowngrade.
                                iDowngrade iDowngrade is offline
                                   
                                  Join Date: Jan 2013
                                  Gender: Male
                                  Posts: 34
                                  Quote:
                                  Originally Posted by karatekid552 View Post
                                  ARE YOU USING POKESCRIPT???? Wow... Okay... What is the exact error message as I am not familiar with the errors in Pokescript?

                                  Also, if your are going to shorten my username, use "kid", karate is just weird....:p haha, you're welcome.
                                  Lol, ok karatekid.
                                  The full error message is "Floating pointer must be pushed" Anyways, i think it means that i made an offset and didnt make an use of it(Im not sure), and i'll try with XSE then...

                                  Ok, i found the floating pointer and everything, now i inserted the script and the game crashes, new

                                  Script:
                                  Spoiler:

                                  #org $multitest
                                  lock
                                  faceplayer
                                  checkflag 0x1300
                                  if 0x01 goto $given
                                  compare 0x8000 8
                                  msgbox2
                                  waitmsgbox2
                                  multi 0x0 0x0 0x26 0x0
                                  copyvar 0x8000 LASTRESULT
                                  compare 0x8000 0
                                  if 1 goto $vaporeon
                                  compare 0x8000 1
                                  if 1 goto $jolteon
                                  compare 0x8000 2
                                  if 1 goto $flareon
                                  compare 0x8000 3
                                  if 1 goto $espeon
                                  compare 0x8000 4
                                  if 1 goto $umbreon
                                  compare 0x8000 5
                                  if 1 goto $eevee
                                  compare 0x8000 6
                                  if 1 goto $exit
                                  compare 0x8000 7
                                  release
                                  end

                                  #org $vaporeon
                                  setvar 0x8005 0x1
                                  vardisplay 0 0x8005
                                  message $vapdog
                                  $vapdog 1 = Oh, so da WATER doggie!\nVaporeon!, there we go!
                                  boxset 0x6
                                  givepokemon 134 5 0x00
                                  setflag 0x1300
                                  release
                                  end

                                  #org $jolteon
                                  setvar 0x8005 0x2
                                  vardisplay 0 0x8005
                                  message $joltdog
                                  $joltdog 1 = Oh, so da THUNDER doggie!\nJolteon!, there we go!
                                  boxset 0x6
                                  givepokemon 135 5 0x00
                                  setflag 0x1300
                                  release
                                  end

                                  #org $flareon
                                  setvar 0x8005 0x3
                                  vardisplay 0 0x8005
                                  message $flamedog
                                  $flamedog 1 = Oh, so da FIRE doggie!\nFlareon!, there we go!
                                  boxset 0x6
                                  givepokemon 136 5 0x00
                                  setflag 0x1300
                                  release
                                  end

                                  #org $espeon
                                  setvar 0x8005 0x4
                                  vardisplay 0 0x8005
                                  message $psydog
                                  $psydog 1 = Oh, so da PSYCHIC doggie!\nEspeon!, there we go!
                                  boxset 0x6
                                  givepokemon 196 5 0x00
                                  setflag 0x1300
                                  release
                                  end

                                  #org $umbreon
                                  setvar 0x8005 0x5
                                  vardisplay 0 0x8005
                                  message $darkdog
                                  $darkdog 1 = Oh, so da DARK doggie!\nUmbreon!, there we go!
                                  boxset 0x6
                                  givepokemon 197 5 0x00
                                  setflag 0x1300
                                  release
                                  end

                                  #org $eevee
                                  setvar 0x8005 0x6
                                  vardisplay 0 0x8005
                                  message $doggie
                                  $doggie 1 = Not sure yet about your doggie?\nThen Eevee is your choice!\pThere we go!
                                  boxset 0x6
                                  givepokemon 197 5 0x00
                                  setflag 0x1300
                                  release
                                  end

                                  #org $exit
                                  setvar 0x8005 0x7
                                  vardisplay 0 0x8005
                                  message $okie
                                  $okie 1 = Remember you get one choice.\nAnyways, you can always\pPick an EEVEE and then\nEvolve it later!
                                  boxset 0x6
                                  release
                                  end

                                  #org $given
                                  setvar 0x8005 0x8
                                  vardisplay 0 0x8005
                                  message $done
                                  $done 1 = There it is!/nYour own POKeMON!/pLet your journey begin!
                                  boxset 0x6
                                  release
                                  end
                                    #24243    
                                  Old March 17th, 2013 (9:11 AM).
                                  Renegade's Avatar
                                  Renegade Renegade is offline
                                  Time for real life...
                                     
                                    Join Date: Nov 2011
                                    Location: United States
                                    Gender: Male
                                    Nature: Careful
                                    Posts: 998
                                    Quote:
                                    Originally Posted by Ash493 View Post
                                    It's probably the name of map that is always shown on the left topmost corner.

                                    @CrystalStatic: Go to header tab of map and set the "show name" possibility
                                    I tried that and it still isn't working... I also went to some of the original cities (Lilycove City, ect) and the name doesn't show up there, either.
                                      #24244    
                                    Old March 17th, 2013 (9:47 AM). Edited March 17th, 2013 by karatekid552.
                                    karatekid552's Avatar
                                    karatekid552 karatekid552 is offline
                                    What happens if I push it?....
                                       
                                      Join Date: Nov 2012
                                      Location: Do you really want to know? Really?
                                      Gender: Male
                                      Nature: Bold
                                      Posts: 1,766
                                      Quote:
                                      Originally Posted by Reygok View Post
                                      Thanks miksy, I'll try with that size

                                      Edit: Okay, that did not work out the way I assumed it would. I'm using the Pokémon Editor in 0xRH's GBA Pokémon Game Editor to add new moves to my newly created pokémon. It now only has Tackle, by default, and I can't figure out how to add new ones. Does anybody know how to do that ?

                                      Thanks in advance
                                      Reygok
                                      I'm just going to going to tell you how to expand movesets in PGE. The only problem with this is that all old moves will be deleted so you will have to reinsert them.

                                      I shall assume you have the move editor tab of P.E. open.

                                      1. Click "Insert Attacks at Offset".

                                      2. Type in the address of some free space (use FSF and just search for 1000 bytes, well more than enough). Copy the address into a notepad or such as we will we need it later.

                                      3. Type in the number of attacks you want your Pokémon to learn. (In decimal)

                                      4. Click insert.

                                      5. Now paste the address we saved earlier into the box labeled "Level-up Attack Pointer" and click "repoint". Save the original address, you may want it later.

                                      6. Now you have a brand new *clean* moveset that you can edit however you wish. If you want the old moveset in there because it sucks entering them all in again, you will have to copy it from the old location and paste it over the new location in a hex editor.

                                      7. To do that, open HxD and go to the original address of the level-up attack pointer.

                                      [miksy91: your guess on how moves are stored was an educated one... but wrong:/. That is how most people would think they are stored, myself included, but they are actually squished into 2 bytes by some formula instead of 3. I'm trying to figure out the formula right now... But it is weird....]

                                      8. Find out the orginal number of attacks by some means, multiply that by two, and select that many bytes.

                                      9. Copy and paste-WRITE to our new level-up attack pointer that we found using FSF.

                                      Done!

                                      Edit: I figured out the formula!

                                      Okay, for moves that are numbered 255 and below, they are stored [move number] [level x 2].

                                      For moves above 255, they are stored [move number - 255] [level x 2 + 1]

                                      So, as you can see, if the level byte is odd, it knows to read from the set of moves above 255 and if it is even, it reads from the set of moves below 255. Quite the thought that went into this one!
                                      __________________

                                      Paired with Simba
                                        #24245    
                                      Old March 17th, 2013 (9:50 AM).
                                      Magnificent Magilou's Avatar
                                      Magnificent Magilou Magnificent Magilou is online now
                                      Perfalmost Victory!
                                      • Platinum Tier
                                       
                                      Join Date: Nov 2010
                                      Age: 31
                                      Gender: Female
                                      Nature: Naughty
                                      Posts: 650
                                      Back with yet another question. I've been reading the tutorials on making a world map and importing it into my game. However, it seems... really complicated when it comes to importing it and such... Is there an easier way to explain what I need to do?
                                      __________________
                                        #24246    
                                      Old March 17th, 2013 (9:56 AM). Edited March 17th, 2013 by karatekid552.
                                      karatekid552's Avatar
                                      karatekid552 karatekid552 is offline
                                      What happens if I push it?....
                                         
                                        Join Date: Nov 2012
                                        Location: Do you really want to know? Really?
                                        Gender: Male
                                        Nature: Bold
                                        Posts: 1,766
                                        Quote:
                                        Originally Posted by Dragoon View Post
                                        I know of this tutorial, however, even creating a rough item, using descriptions and images already in the game, the NPC does not give me the item.

                                        I know that the NPC should because I have already created an evolutionary stone. But just this random item is not being given to me.
                                        Can we see the script as it is compiled in game?

                                        Also, is your bag full? Without a special check to see if it is, the game will just skip that command if it is indeed full, and won't say a thing.

                                        Quote:
                                        Originally Posted by iDowngrade View Post
                                        Lol, ok karatekid.
                                        The full error message is "Floating pointer must be pushed" Anyways, i think it means that i made an offset and didnt make an use of it(Im not sure), and i'll try with XSE then...

                                        Ok, i found the floating pointer and everything, now i inserted the script and the game crashes, new

                                        Script:
                                        Spoiler:

                                        #org $multitest
                                        lock
                                        faceplayer
                                        checkflag 0x1300
                                        if 0x01 goto $given
                                        compare 0x8000 8
                                        msgbox2
                                        waitmsgbox2
                                        multi 0x0 0x0 0x26 0x0
                                        copyvar 0x8000 LASTRESULT
                                        compare 0x8000 0
                                        if 1 goto $vaporeon
                                        compare 0x8000 1
                                        if 1 goto $jolteon
                                        compare 0x8000 2
                                        if 1 goto $flareon
                                        compare 0x8000 3
                                        if 1 goto $espeon
                                        compare 0x8000 4
                                        if 1 goto $umbreon
                                        compare 0x8000 5
                                        if 1 goto $eevee
                                        compare 0x8000 6
                                        if 1 goto $exit
                                        compare 0x8000 7
                                        release
                                        end

                                        #org $vaporeon
                                        setvar 0x8005 0x1
                                        vardisplay 0 0x8005
                                        message $vapdog
                                        $vapdog 1 = Oh, so da WATER doggie!\nVaporeon!, there we go!
                                        boxset 0x6
                                        givepokemon 134 5 0x00
                                        setflag 0x1300
                                        release
                                        end

                                        #org $jolteon
                                        setvar 0x8005 0x2
                                        vardisplay 0 0x8005
                                        message $joltdog
                                        $joltdog 1 = Oh, so da THUNDER doggie!\nJolteon!, there we go!
                                        boxset 0x6
                                        givepokemon 135 5 0x00
                                        setflag 0x1300
                                        release
                                        end

                                        #org $flareon
                                        setvar 0x8005 0x3
                                        vardisplay 0 0x8005
                                        message $flamedog
                                        $flamedog 1 = Oh, so da FIRE doggie!\nFlareon!, there we go!
                                        boxset 0x6
                                        givepokemon 136 5 0x00
                                        setflag 0x1300
                                        release
                                        end

                                        #org $espeon
                                        setvar 0x8005 0x4
                                        vardisplay 0 0x8005
                                        message $psydog
                                        $psydog 1 = Oh, so da PSYCHIC doggie!\nEspeon!, there we go!
                                        boxset 0x6
                                        givepokemon 196 5 0x00
                                        setflag 0x1300
                                        release
                                        end

                                        #org $umbreon
                                        setvar 0x8005 0x5
                                        vardisplay 0 0x8005
                                        message $darkdog
                                        $darkdog 1 = Oh, so da DARK doggie!\nUmbreon!, there we go!
                                        boxset 0x6
                                        givepokemon 197 5 0x00
                                        setflag 0x1300
                                        release
                                        end

                                        #org $eevee
                                        setvar 0x8005 0x6
                                        vardisplay 0 0x8005
                                        message $doggie
                                        $doggie 1 = Not sure yet about your doggie?\nThen Eevee is your choice!\pThere we go!
                                        boxset 0x6
                                        givepokemon 197 5 0x00
                                        setflag 0x1300
                                        release
                                        end

                                        #org $exit
                                        setvar 0x8005 0x7
                                        vardisplay 0 0x8005
                                        message $okie
                                        $okie 1 = Remember you get one choice.\nAnyways, you can always\pPick an EEVEE and then\nEvolve it later!
                                        boxset 0x6
                                        release
                                        end

                                        #org $given
                                        setvar 0x8005 0x8
                                        vardisplay 0 0x8005
                                        message $done
                                        $done 1 = There it is!/nYour own POKeMON!/pLet your journey begin!
                                        boxset 0x6
                                        release
                                        end
                                        The only problems I can see:

                                        1. You are using flags over 900. Won't cause a crash, but will cause bad eggs and broken vars as they overwrite pc and var RAM space.

                                        2. Your multichoice box isn't using preparemsg. This command will be used around it in XSE. I don't know if it is the same in Pokescript, but it may be. I noticed you used msgbox2, is that the same? Also, shouldn't there be a message attached to that command: {i.e. msgbox2 $msgforchoice} ?

                                        Hope you can get this right, it looks like a fun script!

                                        Quote:
                                        Originally Posted by CrystalStatic View Post
                                        I tried that and it still isn't working... I also went to some of the original cities (Lilycove City, ect) and the name doesn't show up there, either.
                                        I have had this problem before....... but I can't remember what I did!!! Ugggh, I wish I could help:/.
                                        __________________

                                        Paired with Simba
                                          #24247    
                                        Old March 17th, 2013 (11:13 AM). Edited March 17th, 2013 by miksy91.
                                        miksy91's Avatar
                                        miksy91 miksy91 is offline
                                        Dark Energy is back in action! ;)
                                           
                                          Join Date: Oct 2008
                                          Location: A small country in the North
                                          Gender: Male
                                          Nature: Relaxed
                                          Posts: 1,438
                                          Quote:
                                          Originally Posted by karatekid552 View Post
                                          Edit: I figured out the formula!

                                          Okay, for moves that are numbered 255 and below, they are stored [move number] [level x 2].

                                          For moves above 255, they are stored [move number - 255] [level x 2 + 1]

                                          So, as you can see, if the level byte is odd, it knows to read from the set of moves above 255 and if it is even, it reads from the set of moves below 255. Quite the thought that went into this one!
                                          Yeah, looking at the pattern like that, it doesn't make much sense. But even so, there is some rational solution to why Gamefreak wanted to program the move learning pattern like that, and I believe that is the fact that Gen III games won't allow the level of the encountered pokemon being higher than 127 (or "100").

                                          This leaves the highest bit of the level value unused which can be used as part of the move learning routine. Now instead of 8 bits, 9 bits can be used to describe each move, by using the highest bit of the level value as one. This kind of a method allows 512 moves to be stored in the game.

                                          But you're right about the fact that the pattern doesn't look that user-friendly. But the fact is that it doesn't have to, not while being viewed with a hex editor. Because the original games were programmed by creating a disassembly, a "text document" holding all the in-game data that could be compiled into a rom file using an asm compiler (unless they simply wrote the game using a real programming language, can't really tell). This kind of a game developing method leaves more possibilities into actual game developing, without having to pay attention to all existing structures so much.
                                          __________________
                                          My Rom Hack



                                          Fixing bugs in a ROM hack
                                          CP of encountered pokemon in GO

                                          Learn how to hack GB/C games:

                                          Check my GameBoy/Color hacking videos in Youtube
                                          -The video set uses Pokemon Silver (U) rom for demonstrations
                                            #24248    
                                          Old March 17th, 2013 (11:36 AM).
                                          Reygok's Avatar
                                          Reygok Reygok is offline
                                          Beginning Hacker
                                             
                                            Join Date: Sep 2009
                                            Gender: Male
                                            Posts: 60
                                            Huge thanks to you kid, I tried around a bit myself, but it did not work, now I have new attacks :D
                                              #24249    
                                            Old March 17th, 2013 (12:27 PM).
                                            iDowngrade iDowngrade is offline
                                               
                                              Join Date: Jan 2013
                                              Gender: Male
                                              Posts: 34
                                              Ok, tried it, still crashing.
                                              BTW thanks for the compliment on my script :D

                                              New script
                                              Spoiler:

                                              #org $multitest
                                              lock
                                              faceplayer
                                              checkflag 0x700
                                              if 0x01 goto $given
                                              compare 0x8000 8
                                              preparemsg 0x800013
                                              waitmsg
                                              multi 0x0 0x0 0x26 0x0
                                              copyvar 0x8000 LASTRESULT
                                              compare 0x8000 0
                                              if 1 goto $vaporeon
                                              compare 0x8000 1
                                              if 1 goto $jolteon
                                              compare 0x8000 2
                                              if 1 goto $flareon
                                              compare 0x8000 3
                                              if 1 goto $espeon
                                              compare 0x8000 4
                                              if 1 goto $umbreon
                                              compare 0x8000 5
                                              if 1 goto $eevee
                                              compare 0x8000 6
                                              if 1 goto $exit
                                              compare 0x8000 7
                                              release
                                              end

                                              #org $vaporeon
                                              setvar 0x8005 0x1
                                              vardisplay 0 0x8005
                                              message $vapdog
                                              $vapdog 1 = Oh, so da WATER doggie!\nVaporeon!, there we go!
                                              boxset 0x6
                                              givepokemon 134 5 0x00
                                              setflag 0x700
                                              release
                                              end

                                              #org $jolteon
                                              setvar 0x8005 0x2
                                              vardisplay 0 0x8005
                                              message $joltdog
                                              $joltdog 1 = Oh, so da THUNDER doggie!\nJolteon!, there we go!
                                              boxset 0x6
                                              givepokemon 135 5 0x00
                                              setflag 0x700
                                              release
                                              end

                                              #org $flareon
                                              setvar 0x8005 0x3
                                              vardisplay 0 0x8005
                                              message $flamedog
                                              $flamedog 1 = Oh, so da FIRE doggie!\nFlareon!, there we go!
                                              boxset 0x6
                                              givepokemon 136 5 0x00
                                              setflag 0x700
                                              release
                                              end

                                              #org $espeon
                                              setvar 0x8005 0x4
                                              vardisplay 0 0x8005
                                              message $psydog
                                              $psydog 1 = Oh, so da PSYCHIC doggie!\nEspeon!, there we go!
                                              boxset 0x6
                                              givepokemon 196 5 0x00
                                              setflag 0x700
                                              release
                                              end

                                              #org $umbreon
                                              setvar 0x8005 0x5
                                              vardisplay 0 0x8005
                                              message $darkdog
                                              $darkdog 1 = Oh, so da DARK doggie!\nUmbreon!, there we go!
                                              boxset 0x6
                                              givepokemon 197 5 0x00
                                              setflag 0x700
                                              release
                                              end

                                              #org $eevee
                                              setvar 0x8005 0x6
                                              vardisplay 0 0x8005
                                              message $doggie
                                              $doggie 1 = Not sure yet about your doggie?\nThen Eevee is your choice!\pThere we go!
                                              boxset 0x6
                                              givepokemon 197 5 0x00
                                              setflag 0x700
                                              release
                                              end

                                              #org $exit
                                              setvar 0x8005 0x7
                                              vardisplay 0 0x8005
                                              message $okie
                                              $okie 1 = Remember you get one choice.\nAnyways, you can always\pPick an EEVEE and then\nEvolve it later!
                                              boxset 0x6
                                              release
                                              end

                                              #org $given
                                              setvar 0x8005 0x8
                                              vardisplay 0 0x8005
                                              message $done
                                              $done 1 = There it is!/nYour own POKeMON!/pLet your journey begin!
                                              boxset 0x6
                                              release
                                              end


                                              Ugh, maybe gba editing does not suits me, all i can get right is change pokemon...

                                              Should have known im just 12 and my mind cant get this stuff, even though i do java coding D:
                                                #24250    
                                              Old March 17th, 2013 (12:48 PM).
                                              karatekid552's Avatar
                                              karatekid552 karatekid552 is offline
                                              What happens if I push it?....
                                                 
                                                Join Date: Nov 2012
                                                Location: Do you really want to know? Really?
                                                Gender: Male
                                                Nature: Bold
                                                Posts: 1,766
                                                Quote:
                                                Originally Posted by iDowngrade View Post
                                                Ok, tried it, still crashing.
                                                BTW thanks for the compliment on my script :D

                                                New script
                                                Spoiler:

                                                #org $multitest
                                                lock
                                                faceplayer
                                                checkflag 0x700
                                                if 0x01 goto $given
                                                compare 0x8000 8
                                                preparemsg 0x800013
                                                waitmsg
                                                multi 0x0 0x0 0x26 0x0
                                                copyvar 0x8000 LASTRESULT
                                                compare 0x8000 0
                                                if 1 goto $vaporeon
                                                compare 0x8000 1
                                                if 1 goto $jolteon
                                                compare 0x8000 2
                                                if 1 goto $flareon
                                                compare 0x8000 3
                                                if 1 goto $espeon
                                                compare 0x8000 4
                                                if 1 goto $umbreon
                                                compare 0x8000 5
                                                if 1 goto $eevee
                                                compare 0x8000 6
                                                if 1 goto $exit
                                                compare 0x8000 7
                                                release
                                                end

                                                #org $vaporeon
                                                setvar 0x8005 0x1
                                                vardisplay 0 0x8005
                                                message $vapdog
                                                $vapdog 1 = Oh, so da WATER doggie!\nVaporeon!, there we go!
                                                boxset 0x6
                                                givepokemon 134 5 0x00
                                                setflag 0x700
                                                release
                                                end

                                                #org $jolteon
                                                setvar 0x8005 0x2
                                                vardisplay 0 0x8005
                                                message $joltdog
                                                $joltdog 1 = Oh, so da THUNDER doggie!\nJolteon!, there we go!
                                                boxset 0x6
                                                givepokemon 135 5 0x00
                                                setflag 0x700
                                                release
                                                end

                                                #org $flareon
                                                setvar 0x8005 0x3
                                                vardisplay 0 0x8005
                                                message $flamedog
                                                $flamedog 1 = Oh, so da FIRE doggie!\nFlareon!, there we go!
                                                boxset 0x6
                                                givepokemon 136 5 0x00
                                                setflag 0x700
                                                release
                                                end

                                                #org $espeon
                                                setvar 0x8005 0x4
                                                vardisplay 0 0x8005
                                                message $psydog
                                                $psydog 1 = Oh, so da PSYCHIC doggie!\nEspeon!, there we go!
                                                boxset 0x6
                                                givepokemon 196 5 0x00
                                                setflag 0x700
                                                release
                                                end

                                                #org $umbreon
                                                setvar 0x8005 0x5
                                                vardisplay 0 0x8005
                                                message $darkdog
                                                $darkdog 1 = Oh, so da DARK doggie!\nUmbreon!, there we go!
                                                boxset 0x6
                                                givepokemon 197 5 0x00
                                                setflag 0x700
                                                release
                                                end

                                                #org $eevee
                                                setvar 0x8005 0x6
                                                vardisplay 0 0x8005
                                                message $doggie
                                                $doggie 1 = Not sure yet about your doggie?\nThen Eevee is your choice!\pThere we go!
                                                boxset 0x6
                                                givepokemon 197 5 0x00
                                                setflag 0x700
                                                release
                                                end

                                                #org $exit
                                                setvar 0x8005 0x7
                                                vardisplay 0 0x8005
                                                message $okie
                                                $okie 1 = Remember you get one choice.\nAnyways, you can always\pPick an EEVEE and then\nEvolve it later!
                                                boxset 0x6
                                                release
                                                end

                                                #org $given
                                                setvar 0x8005 0x8
                                                vardisplay 0 0x8005
                                                message $done
                                                $done 1 = There it is!/nYour own POKeMON!/pLet your journey begin!
                                                boxset 0x6
                                                release
                                                end


                                                Ugh, maybe gba editing does not suits me, all i can get right is change pokemon...

                                                Should have known im just 12 and my mind cant get this stuff, even though i do java coding D:
                                                Nope, your just missing a key step! I looked at thethethethe's pokescript tut and found this:

                                                Quote:
                                                ____________________________________________________________________
                                                Multi Command
                                                This isn’t completed but it has the important part. I’m having problems adding the message underneath it. I’ll add it when I do find it out.
                                                CODE


                                                msgbox2 $pointer
                                                #raw 66

                                                multi 0xE 0×0 0x1E 0×0
                                                copyvar 0×8000 LASTRESULT
                                                compare 0×8000 0
                                                if 1 goto $option1
                                                compare 0×8000 1
                                                if 1 goto $option2
                                                compare 0×8000 2
                                                if 1 goto $option3
                                                compare 0×8000 3
                                                if 1 goto $option4
                                                compare 0×8000 4
                                                if 1 goto $option5
                                                compare 0×8000 0x7F
                                                if 1 goto $canceled
                                                end

                                                #org $option1
                                                setvar 0×8005 0×1
                                                #raw 0×83 0×0 0×05 0×80
                                                givepokemon 1 5 0
                                                message $display
                                                boxset 0×6
                                                end

                                                #org $option2
                                                setvar 0×8005 0×2
                                                #raw 0×83 0×0 0×05 0×80
                                                givepokemon 4 5 0
                                                message $display
                                                boxset 0×6
                                                end

                                                #org $option3
                                                setvar 0×8005 0×3
                                                #raw 0×83 0×0 0×05 0×80
                                                givepokemon 7 5 0
                                                message $display
                                                boxset 0×6
                                                end

                                                #org $option4
                                                setvar 0×8005 0×4
                                                #raw 0×83 0×0 0×05 0×80
                                                givepokemon 152 5 0
                                                message $display
                                                boxset 0×6
                                                end

                                                #org $option5
                                                setvar 0×8005 0×5
                                                #raw 0×83 0×0 0×05 0×80
                                                givepokemon 155 5 0
                                                message $display
                                                boxset 0×6
                                                end

                                                #org $canceled
                                                message $cancel
                                                boxset 0×6
                                                end

                                                #org $display
                                                $display 1 = You chose option: \v\h02

                                                #org $cancel
                                                $cancel 1 = You pressed the B Button

                                                Well if you’ve read through the rest of this a lot of this should be self explanatory by now.

                                                msgbox2 is a command that needs to be added to the commands file in Pokescript for this script to work. #raw 66 has to be there to allow this command to work. Since the site won’t allow me to upload this file, you’ll have to add it yourself.

                                                Code:
                                                addcmmd msgbox2 #67
                                                addparm 8 ‘pointer to text


                                                multi 0xE 0×0 0x1E 0×0 0xE 0×0 are the X/Y coordinates on the screen. These are the top left hand corner. 0x1E is the the actual box chosen. The multi command doesn’t actually create a box but merely displays an already existing box inbuilt into the rom. i.e. the Game Corner coins, Drink machine. I’m not 100% sure of the point of the final numbersbut I assume its a filler to prevent the game from freezing.
                                                The amount of compares is based on the amount of options in the box. These are unchangeable unless you of course re-point the data of the multi box to an empty space and create new text.
                                                The next part is pretty basic. If you don’t understand it, it should be explained earlier on. compare 0×8000 0x7F is the only real important part of the following lines. The 0x7F displays that you can cancel by pressing the B button. If this isn’t there, you will only be able to quit the box by choosing an option.
                                                And another important part is that the ‘option’s’ don’t work unless the setvar is there. I don’t know why.
                                                You must have forgotten to add the command to the database and/or you should try the #raw 66.

                                                I would suggest switching to XSE as more people will be able to help you, but whatever you do, don't throw in the towel.
                                                __________________

                                                Paired with Simba
                                                Closed Thread

                                                Quick Reply

                                                Join the conversation!

                                                Create an account to post a reply in this thread, participate in other discussions, and more!

                                                Create a PokéCommunity Account

                                                Sponsored Links
                                                Thread Tools

                                                Posting Rules
                                                You may not post new threads
                                                You may not post replies
                                                You may not post attachments
                                                You may not edit your posts

                                                BB code is On
                                                Smilies are On
                                                [IMG] code is On
                                                HTML code is Off

                                                Forum Jump


                                                All times are GMT -8. The time now is 9:33 AM.