The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script At what offset would I find Oak's Intro Text?

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 23rd, 2020 (6:49 PM).
Momoro's Avatar
Momoro Momoro is offline
I'm gonna put some dirt in your eye..
 
Join Date: Aug 2019
Location: Castelia City, Unova
Gender: Male
Posts: 269
Hi!

I am using C# to find offsets using the BinaryReader, but now I'm at a stump..

I am attempting to create an open-source Text Editor for Pokemon FireRed, but I can't seem to find the offsets for even a bit of text. (Besides BPRE)

If anyone could help, thanks!

Also, I can't seem to find the Advance-Text (A-Text) Source Code anywhere, so if someone could direct me to the correct site if it is even open-source, then THANK YOU!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 23rd, 2020 (6:50 PM).
Momoro's Avatar
Momoro Momoro is offline
I'm gonna put some dirt in your eye..
 
Join Date: Aug 2019
Location: Castelia City, Unova
Gender: Male
Posts: 269
I don't know if this is where I'm supposed to post this :D
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old February 23rd, 2020 (10:09 PM). Edited February 23rd, 2020 by DrFuji.
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
There are several parts to Oak's text which you can find at 0x1C5C78, 0x1C5D06, 0x1C5D12, 0x1C5D4B, 0x1C5DBD, 0x1C59D5, 0x1C5DEA, 0x1C5E13, 0x1C5E2E, 0x1C5EB5, 0x1C5EC5 and 0x1C5EF4. These pure text strings are split into multiple segments as it obviously doesn't take place during normal gameplay so there's a lot of ASM that's doing things like loading sprites and naming characters etc.

The third gen games don't use ASCII except for the BPRE header that you've found. They use a custom character table to display all of their in-game characters as there are characters such as [PK] [MN] and [.] (in XSE) that don't correspond to anything in ASCII. You can get an idea of which characters are assigned to which hexadecimal value by downloading XSE 1.1.1's source code and opening the 'modTextSapp.bas' file or checking out diegoiseawesome's XSE tutorial as he has most (but not all) of the hex values listed.

As far as I know, there's no source code for A-Text as it was made super long ago. Here in the Pokemon hacking community, open source tools only really became a thing in the early 2010's so I think you're straight out of luck.
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old February 27th, 2020 (10:15 PM).
Momoro's Avatar
Momoro Momoro is offline
I'm gonna put some dirt in your eye..
 
Join Date: Aug 2019
Location: Castelia City, Unova
Gender: Male
Posts: 269
Thanks for this! I was wondering though... Do you know what encoding I should use to get the text? I tried UTF-8, ASCII, etc. and I only seem to get "??????" when I try to read those offsets.. Thanks :)
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old February 28th, 2020 (11:32 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
Like I said, it's a custom character table made only for the third gen games so you're never going to find a table that works. You'll need to create your own table and use a hex editor that accepts custom tables.
__________________
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old March 11th, 2020 (12:09 AM).
Momoro's Avatar
Momoro Momoro is offline
I'm gonna put some dirt in your eye..
 
Join Date: Aug 2019
Location: Castelia City, Unova
Gender: Male
Posts: 269
Well, I know that I have to create my own table, but still.. Is there any way to create a table, and apply it to the BinaryReader? Or is that impossible? Thanks :)
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:18 AM.