Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

Draconius GO
Reply
 
Thread Tools
  #1    
Old November 14th, 2009 (1:44 PM). Edited April 15th, 2010 by Logan.
BlitŻ's Avatar
BlitŻ BlitŻ is offline
guahh my dog is so cute
  • Crystal Tier
 
Join Date: Feb 2009
Location: Bay Area, Califronia.
Age: 22
Gender: Male
Nature: Jolly
Posts: 472
.:: Intro
Hello everybody, My name is Fan King, and this is my second tutorial ;D

I wanted to make this after seeing people ask a lot : "Where is the palette offset for___" And simply enough, i got annoyed, xD. Looking up palette offsets is as simple as 123, or ABC. I hope this will at least, stop the mass of questions of where to find the palettes.

.:: Materials
These are the things you will need
  1. A hex editor, you can use any one, as long as it has a search function. To get one, search "hex editor" in google and download on that pops up.
  2. A rom of any kind, in theory you can palette edit any rom with this, but in this tutorial, I'll be using the english version of an Pokemon Fire Red rom. To get one of these, either go to you favrotie rom downloading site or search it on google.
  3. Visual Boy Advance, which I'm guessing that everyone here has, considering that it's an emulator, yada yada..
  4. Knowledge on how to work simple things in these programs, but I will try to explain them as best as I can, any questions, please reply to the thread.
.:: Getting Started
First off load your rom in Visual Boy Advance. Manuever yourself to the screen you want palette edited. In my case, I will be palette editing the Oak intro Background:

I'll be changing this, to this:

(This if for my hack, Pokemon Aether..No stealing Palettes or the Sprite, or the idea of it either!)
(Also, I'm not going to be teaching how to insert sprites over the oak)

.:: Using VBA To Find the Offset

Now in VBA, on the header bar thing, lick Tools, then Palette Viewer..


Now let's go look around the Palette Vewier.


Now, I'll explain the different parts of this.

  1. Background: In here, is shows you every color that is currently being shown and/or rregistered in VBA. You can clik on the colors to view, It's RGB color value, and along with the inverted GBA color code, I'll explain on how to make it correct later in the tutorial.
  2. Sprite: This is the colors currently shown on a different layer then the background. I'm not excatly sure how else to describe it, altough you can also click on the colors shown here and look at the RGB and the GBA color code.
  3. This is just a little box showing what color is currently shown in a close up view..
  4. This is the place where once you click on the color, it shows the RGB, inverted GBA Color Code, and the address from where it's stored in the rom. The address is not where it is in the hex editor, so you can't just go to that address. I'm not excatly sure about this either, but I know it has to do with the different parts of the game engine
  5. You can click on this and export that palette. Often, you can use this when having images that you export out of Unlz that are in grayscale, and import the palette that you saved to make it how it is in game.
.:: Using the Palette Viewer To Find Your Color Code

Now if we want to find where the colors for this image in the rom, we simply click on the color...


Move your eyeballs down to the where it says value..


Now look where it says Value: 0x4228

In VBA, it switches the code as it is in the rom. So seeing it as 4228, you would have to put in 2842 when you're searching it. See what you have to do to get this is switch the first to number with the last two. So 4228= 42 48 + swtich = 28 42= 2842

So yeah, you have your color code, awesome!

.:: Finding Your Colors Inside the Rom

So, now you have your one color code. To find it in the rom, you'll need to make a string of the codes to search. So, pick 5 or so colors, and switch the numbers around.

This is what I got for the first 5 colors besides the black in the Palette: 2842 4A46 8D4E D056 135F
Note: When searching it in the rom, don't use any spaces!

So, open up your hex editor, maunuaver yourself to the search function, either by going Ctrl + F or by finding it.

Punch in the code you got earlier, and you should find it in the rom with no mistake. If there is one, then you messed up an earlier steps or messed up with getting the code.

As you can see, i got the offset 460560.

You can always check if you found the right offset in the rom by comparing what comes after in the hex editor to what is the next color in the Palette Viewer

Viola! You have your offset!

.:: Ending Note
So, you got your offset! Congrats! Now there are two edit it. Either type in the offset in APE, or just Hex edit it.

So, thank you for reading this tutorial. I hope that this ends people questions in finding palette offsets.

Remember, don't steal anything that I showed here for my hack!

~ Fan King

__________________
Reply With Quote

Relevant Advertising!

  #2    
Old November 14th, 2009 (2:16 PM).
~Teh Panda~'s Avatar
~Teh Panda~ ~Teh Panda~ is offline
Sea of Dreams - Redux
  • Silver Tier
 
Join Date: Aug 2007
Posts: 906
Very nice and simple tutorial Fan King!
I will be needing this for some editing in my hack
__________________




Mystic still in work to let you know...
Reply With Quote
  #3    
Old November 14th, 2009 (2:18 PM).
BlitŻ's Avatar
BlitŻ BlitŻ is offline
guahh my dog is so cute
  • Crystal Tier
 
Join Date: Feb 2009
Location: Bay Area, Califronia.
Age: 22
Gender: Male
Nature: Jolly
Posts: 472
Quote:
Originally Posted by ~Teh Panda~ View Post
Very nice and simple tutorial Fan King!
I will be needing this for some editing in my hack
xD, thanks. I try for the tutorials I make to be simple and easy, so everybody can do it.
__________________
Reply With Quote
  #4    
Old November 14th, 2009 (2:24 PM).
SharpPoint's Avatar
SharpPoint SharpPoint is offline
Suicune used Surf!
     
    Join Date: Jul 2009
    Location: Stalker...
    Gender: Male
    Nature: Adamant
    Posts: 479
    Nice tutorial. Neat and easy to follow. Good job!
    Reply With Quote
      #5    
    Old November 14th, 2009 (5:01 PM).
    colcolstyles's Avatar
    colcolstyles colcolstyles is offline
    Yours truly
    • Crystal Tier
     
    Join Date: May 2008
    Location: The Bay Area
    Gender: Male
    Nature: Lonely
    Posts: 1,590
    What advantage does this method have over exporting a palette, loading it into APE, and using APE's "Load by Searching" function to locate the palette? If you say that we should use APE to change the palette, why should we waste our time searching for the palette's location with a hex editor when APE can do the same thing but faster and when we're going to have to use APE in the end anyway?

    Also, your title is deceiving because this won't work for LZ77 compressed palettes.
    __________________

    Brother of Vrai
    Reply With Quote
      #6    
    Old November 15th, 2009 (2:19 AM).
    Haku.'s Avatar
    Haku. Haku. is offline
    (FLAME)...H....A...K..U
       
      Join Date: Jan 2008
      Location: Singapore :D
      Gender: Male
      Nature: Quiet
      Posts: 386
      well no need to look for the bg pallete . just search in page 13 of the section.
      On topic now. I still cant find the offset for the start menu. Maybe there isn't .
      __________________

      Reply With Quote
        #7    
      Old November 15th, 2009 (6:25 AM).
      BlitŻ's Avatar
      BlitŻ BlitŻ is offline
      guahh my dog is so cute
      • Crystal Tier
       
      Join Date: Feb 2009
      Location: Bay Area, Califronia.
      Age: 22
      Gender: Male
      Nature: Jolly
      Posts: 472
      Quote:
      Originally Posted by xmouvelianx View Post
      well no need to look for the bg pallete . just search in page 13 of the section.
      On topic now. I still cant find the offset for the start menu. Maybe there isn't .
      What do you mean by start menu? Do you mena the press start menu, and in that case please be more percise.
      __________________
      Reply With Quote
        #8    
      Old November 18th, 2009 (7:57 AM).
      liuyanghejerry's Avatar
      liuyanghejerry liuyanghejerry is offline
         
        Join Date: Jan 2008
        Location: China,Xi'an
        Nature: Calm
        Posts: 219
        Well,in fact, LZ77 palettes should be find as these steps:
        1.Find the address in the RAM
        2.Export that palette you need
        3.Use a LZ77 tool to compress the exported palette
        4.Open the compressed palette you make in a hex editor
        5.Select few bytes AFTER the LZ77 header,and search them in ROM
        6.You find it.If not,try another few bytes,or a shorten ones.
        7.Still no good idea to edit it.
        __________________
        Zel,thethethethe,LU-HO,Darthatron,HackMew,ZodiacDaGreat,Juan,score_under,JPAN,Tamah-chan,I really appreciate your kindness and your help!:D
        Reply With Quote
          #9    
        Old November 18th, 2009 (8:52 AM).
        hi sir tomato my password is syvniti's Avatar
        hi sir tomato my password is syvniti hi sir tomato my password is syvniti is offline
        gggggggggggggggggg
           
          Join Date: Jan 2007
          Location: My user name _ asciii_ +&h1!" lulz
          Posts: 581
          "in theory you can palette edit any rom with this" - No.
          *Thumbs Down*
          __________________
          THE CAKE IS A LIE!!!!!!!!!!!!!!!!!!!!!!!
          Reply With Quote
            #10    
          Old November 18th, 2009 (7:22 PM).
          BlitŻ's Avatar
          BlitŻ BlitŻ is offline
          guahh my dog is so cute
          • Crystal Tier
           
          Join Date: Feb 2009
          Location: Bay Area, Califronia.
          Age: 22
          Gender: Male
          Nature: Jolly
          Posts: 472
          Quote:
          Originally Posted by hi sir tomato my password is syvniti View Post
          "in theory you can palette edit any rom with this" - No.
          *Thumbs Down*

          Okay, correction on my mistake, you can edit the colors of a GBA rom, considering that they all, as far as I've seen, go into the GBA color value.
          __________________
          Reply With Quote
            #11    
          Old November 19th, 2009 (7:00 AM).
          hi sir tomato my password is syvniti's Avatar
          hi sir tomato my password is syvniti hi sir tomato my password is syvniti is offline
          gggggggggggggggggg
             
            Join Date: Jan 2007
            Location: My user name _ asciii_ +&h1!" lulz
            Posts: 581
            Quote:
            Originally Posted by Fan King View Post
            Okay, correction on my mistake, you can edit the colors of a GBA rom, considering that they all, as far as I've seen, go into the GBA color value.
            I'm not that *****y:d
            My point is that the palletes are not always storred in the rom as they are when they're loaded into the ram.
            __________________
            THE CAKE IS A LIE!!!!!!!!!!!!!!!!!!!!!!!
            Reply With Quote
              #12    
            Old November 19th, 2009 (9:02 AM).
            Haku.'s Avatar
            Haku. Haku. is offline
            (FLAME)...H....A...K..U
               
              Join Date: Jan 2008
              Location: Singapore :D
              Gender: Male
              Nature: Quiet
              Posts: 386
              Thats why i can't find the pallete offset for the menu when you press start.
              Wsted 2 hours..
              __________________

              Reply With Quote
                #13    
              Old November 19th, 2009 (9:13 AM).
              HackMew's Avatar
              HackMew HackMew is offline
              Mewtwo Strikes Back
              • Crystal Tier
               
              Join Date: Jun 2006
              Posts: 1,314
              Quote:
              Originally Posted by xmouvelianx View Post
              Thats why i can't find the pallete offset for the menu when you press start.
              Wsted 2 hours..
              Yeah, and also because you didn't use APE's partial search feature. You don't need to search 16 colors at once, but you can search less and check each time if it's the right palette. Sometimes, you need to do that, or you won't find what you're looking for. Don't forget the Palette Viewer merely shows what's currently in the RAM, and that doesn't mean the palettes are stored exactly like that inside the ROM. As you noticed.
              __________________
              Reply With Quote
                #14    
              Old October 7th, 2012 (12:04 AM).
              Dragon master legend's's Avatar
              Dragon master legend's Dragon master legend's is offline
                 
                Join Date: Oct 2012
                Location: Pakistan
                Gender: Male
                Nature: Modest
                Posts: 8
                hey can you tell me how to do this in pokemon ruby
                Reply With Quote
                  #15    
                Old July 26th, 2013 (3:54 PM).
                supersoursky's Avatar
                supersoursky supersoursky is offline
                Co-Leader of Dark Illusion
                   
                  Join Date: Dec 2012
                  Location: Philippines
                  Age: 18
                  Gender: Male
                  Nature: Lax
                  Posts: 42
                  simply awesome leaned something
                  __________________
                  Co-leader of the hack Dark Illusion
                  Graphic monsta of the hack Dark Illusion
                  Misc. Editor of the hack Dark Illusion


                  Hacks im currently working on :
                  Pokemon Dark Illusion
                  Pokemon Dark Illusion
                  HTML code:
                  Quote:
                  gf90Jh7.png
                  Supports are appreciated
                  Reply With Quote
                    #16    
                  Old January 10th, 2017 (7:30 AM).
                  Ayonn-'s Avatar
                  Ayonn- Ayonn- is offline
                  The Unbelivable
                     
                    Join Date: May 2014
                    Location: FRANCE
                    Gender: Male
                    Nature: Jolly
                    Posts: 199
                    Quote:
                    Originally Posted by liuyanghejerry View Post
                    Well,in fact, LZ77 palettes should be find as these steps:
                    1.Find the address in the RAM
                    2.Export that palette you need
                    3.Use a LZ77 tool to compress the exported palette
                    4.Open the compressed palette you make in a hex editor
                    5.Select few bytes AFTER the LZ77 header,and search them in ROM
                    6.You find it.If not,try another few bytes,or a shorten ones.
                    7.Still no good idea to edit it.


                    How can I do this for the Bag BG ????
                    __________________
                    In current project...
                    Reply With Quote
                      #17    
                    Old January 23rd, 2017 (10:48 PM).
                    liuyanghejerry's Avatar
                    liuyanghejerry liuyanghejerry is offline
                       
                      Join Date: Jan 2008
                      Location: China,Xi'an
                      Nature: Calm
                      Posts: 219
                      Quote:
                      Originally Posted by Ayonn- View Post
                      How can I do this for the Bag BG ????
                      Sorry, this was an answer years ago, and I cannot recall how to do this exactly.
                      __________________
                      Zel,thethethethe,LU-HO,Darthatron,HackMew,ZodiacDaGreat,Juan,score_under,JPAN,Tamah-chan,I really appreciate your kindness and your help!:D
                      Reply With Quote
                      Reply

                      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 2:20 AM.