+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  pointer table with duplicate pointers (NDS)
Pages: [1]
Author Topic: pointer table with duplicate pointers (NDS)  (Read 2 times)
Hyllian
Guest
« on: November 10, 2008, 08:54:03 pm »

Hi.

I'm trying to translate Castlevania POR (EUR).

The scripts in this game are separated in two files (overlay_0011.bin and overlay_0012.bin) and the pointer table (PT) is located in another file (overlay_0006.bin).

There are 1865 32bit-pointers in the pointer table. The first script has 1715 blocks and the second script has 150, so 1715+150 = 1865.

The problem: there are some pairs of pointers with the same values in the PT. I don't know which 150 pointers of the PT are correlated to the script2, because there are some pairs with the same values.

I'd like to know if you could help me to find a strategy to attack this problem.
« Last Edit: November 10, 2008, 09:07:21 pm by Hyllian »
Ryusui
Guest
« Reply #1 on: November 10, 2008, 09:16:00 pm »

Do the files contain pointers and nothing else? If they contain any incidental data, it may indicate which script the pointer is meant to correspond to.

Alternately, Death Note: The Kira Game uses two levels of pointer blocks: that is, it has pointers that point to pointers which point to strings. See if there isn't another pointer table the game uses that gives the addresses in the pointer table you found; it might contain the data you need to figure out which pointers correspond to which tables.
Tauwasser
Guest
« Reply #2 on: November 13, 2008, 07:38:56 am »

Maybe they are stored consecutively? Or maybe the function that calls them is different? Like, 2 functions that use the same table (and it's indices) but for different data files?

cYa,

Tauwasser
Hyllian
Guest
« Reply #3 on: November 20, 2008, 07:06:13 am »

Well, after some research I found the arrangement. This image explain better than words:

« Last Edit: November 20, 2008, 08:21:14 am by Hyllian »
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC