The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other How to find image offsets

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 February 21st, 2015 (6:02 AM). Edited February 22nd, 2015 by Professor Silver.
Professor Silver's Avatar
Professor Silver Professor Silver is offline
 
Join Date: May 2011
Posts: 2
Hi there. :)

I've gained some knowledge about Pokémon romhacking here and there and I'm currently working on the intro of FR. I've got quite some things done, but I still struggle to find the offsets of some of the images used there. Like the pictures of the buttons which are explained when starting the game for the first time or the Pikachu atop the introduction text.

So, my question is, how can I search for their offsets in order to edit them?

I know I could use unLZ-GBA or even TileMolester and just click my way through in the hope to find an image which resembles the one I'm searching for and try my luck if it was the right one or not, but this is everything but efficient and doesn't guarantee I'll ever find what I'm looking for. Same would be true for an online-search, albeit I have found many that way.
Another thing I know is to find some graphics via the VBA and its tile and memory viewer, but this doesn't work for many graphics, including the ones in the intro. I guess it's because the images have to be uncompressed to be found that way, yet I could be wrong.

So, can anybody give me advice or maybe even a tutorial if it exists or anything else how I can get my hands on those offsets to have a "happy editing"?
That would be awesome. :D
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 21st, 2015 (12:03 PM).
Joexv's Avatar
Joexv Joexv is offline
ManMadeOfGouda
joexv.github.io
 
Join Date: Oct 2012
Location: Oregon
Age: 25
Gender: Male
Nature: Sassy
Posts: 1,035
Best way to find an images offset is to open up vba and under tools clikc logging. and then check SWI. Then open your rom and you have to be fast bacuse things will move quite fast, but you will be looking for "LZ77UnCompWram" And everytime one of those pops up it will either be an image or a raw file. Right next to the LZ77 there will be 2 offsets. the first is the image offset the second is where in ram its been loaded.
__________________
New living flesh vessel who dis?
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old February 21st, 2015 (6:57 PM).
jiangzhengwenjzw's Avatar
jiangzhengwenjzw jiangzhengwenjzw is offline
now working on katam
 
Join Date: Sep 2012
Gender: Male
Posts: 175
If you know that SWI is a function of BIOS and it can be used to decrypt LZ77 data, the answer will be clear.
Just check SWI in logging and you will find the offsets of the LZ77 data in the ROM easily. (They're all 0x08xxxxxx)
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old February 22nd, 2015 (5:08 AM).
Professor Silver's Avatar
Professor Silver Professor Silver is offline
 
Join Date: May 2011
Posts: 2
Thanks you two, that was really helpful and the method is just amazing (especially compared to how I struggled before in my searches).
So yeah, that means the end of those buttons in the intro, I successfully removed them. :D

Maybe for the record if others are interested in that as well:
It seems like not all VBA versions can do it. I've used 1.8.0 - beta and 1.7.2 and both only showed me an empty screen in the logging window, no matter what I did.
As I was almost giving in, I decided to give the vba linked in the "Getting started" thread a try and yes, the VBA-M finally did what it is supposed to do. :)
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

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:10 AM.