The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Hex help please! :D

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 27th, 2014 (1:45 PM).
ItsPokeRyan's Avatar
ItsPokeRyan ItsPokeRyan is offline
 
Join Date: Jun 2013
Location: Ohio
Gender: Male
Nature: Relaxed
Posts: 14
Okay I just started rom hacking like 3 days ago so im new and no almost nothing :( but anyways i have been looking all over the internet for the past hour and a half and cant find anything. Can anyone tell me what exactly is a pointer and what its does? I'm trying to add fairy type into fire red so i was following the tut by shy rayq but i cant seem to find an answer to my question on that thread or any other one. Im probably just looking in the wrong spots for my answer though
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 27th, 2014 (1:51 PM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
A pointer is a string of hex in the ROM that 'points' at further information.

For example, when scripting you give a pointer to the 'event' to point it towards the script.

Pointers are often written as 0x8XXXXXX in programs, but when actually looking in the rom you find the pairs of letters are backwards.

Therefore, information stored at: 08123456 is pointed at with the hex code 56 34 12 08 - not entirely backwards, but the order of the pairs is reversed! Hope this helped, typing on my phone so reaching the end of my attention span :P.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 27th, 2014 (2:18 PM).
ItsPokeRyan's Avatar
ItsPokeRyan ItsPokeRyan is offline
 
Join Date: Jun 2013
Location: Ohio
Gender: Male
Nature: Relaxed
Posts: 14
Quote:
Originally Posted by Magic View Post
A pointer is a string of hex in the ROM that 'points' at further information.

For example, when scripting you give a pointer to the 'event' to point it towards the script.

Pointers are often written as 0x8XXXXXX in programs, but when actually looking in the rom you find the pairs of letters are backwards.

Therefore, information stored at: 08123456 is pointed at with the hex code 56 34 12 08 - not entirely backwards, but the order of the pairs is reversed! Hope this helped, typing on my phone so reaching the end of my attention span :P.
So if i have DC 5D E9 08 it would be 08E95DDC ?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old May 27th, 2014 (2:24 PM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Essentially! So if you see DC 5D E9 08 in hex, in your editor, then go to (08) E9 5D DC you'll find what it is pointing at :).
__________________
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old May 27th, 2014 (2:31 PM). Edited May 27th, 2014 by Christos.
ItsPokeRyan's Avatar
ItsPokeRyan ItsPokeRyan is offline
 
Join Date: Jun 2013
Location: Ohio
Gender: Male
Nature: Relaxed
Posts: 14
Thank you! i have one more question though if you don't mind

"Now find DC5DE908 by using Ctrl + F or whatever your program uses.

Press okay, then you get it. Now replace it with your pointer. But first, we need it in a format the game understands.

So in my case, I've got 00 00 80 08, which is quite bland. Anyway, now replace the original pointer with the new one. There's only 1 case so that's the only one."

Okay so in the tut this is the part i am at and what i am stuck on is what am i supposed to change in HxD like i found where the pointer is at but what am i supposed to change in it?



This is my screen idk if it will help you any ?
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old May 27th, 2014 (2:38 PM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
They want you to change the DC 5D E9 08 to 00 00 80 08. Presumably because they have inserted something new at the location 0x8800000.

I can't see the image I'm afraid!
__________________
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old May 27th, 2014 (2:41 PM).
ItsPokeRyan's Avatar
ItsPokeRyan ItsPokeRyan is offline
 
Join Date: Jun 2013
Location: Ohio
Gender: Male
Nature: Relaxed
Posts: 14
Thank you so much :D sorry for any annoyance. I really appreciate your help but i have one last simple question i changed the hex and the numbers turned red is that supposed to happen ?
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old May 27th, 2014 (3:02 PM).
Shiny Quagsire's Avatar
Shiny Quagsire Shiny Quagsire is offline
I'm Still Alive, Elsewhere
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 25
Gender: Male
Nature: Jolly
Posts: 697
Quote:
Originally Posted by ItsPokeRyan View Post
Thank you so much :D sorry for any annoyance. I really appreciate your help but i have one last simple question i changed the hex and the numbers turned red is that supposed to happen ?
Yes, this shows you what bytes you modified and which ones you didn't. When you save (Ctrl+S) they should return back to the normal color.
__________________



Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old May 27th, 2014 (3:08 PM).
ItsPokeRyan's Avatar
ItsPokeRyan ItsPokeRyan is offline
 
Join Date: Jun 2013
Location: Ohio
Gender: Male
Nature: Relaxed
Posts: 14
Quote:
Originally Posted by Shiny Quagsire View Post
Yes, this shows you what bytes you modified and which ones you didn't. When you save (Ctrl+S) they should return back to the normal color.
Thanks i was worried i made a mistake haha!
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
Ad Content
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:12 AM.