ROM Hack Wizardry DS pointer/table help needed

Status
Not open for further replies.

AshenPhoenix

Active Member
OP
Newcomer
Joined
Mar 14, 2009
Messages
27
Trophies
0
XP
169
Country
Hi

I was curious how easy this game would be to translate since all the text is in ordinary text files, but I'm having trouble figuring out
how the pointer files are built up.

Here's a text example:
2ziplcj.jpg


and here is the table file for it:
14in0h0.jpg


Hoping someone can see some connection between the files
wink.gif
 

rastsan

8 baller, Death Wizard,
Member
Joined
May 28, 2008
Messages
1,002
Trophies
0
Location
toronto
Website
rastsan.wordpress.com
XP
398
Country
Canada
check out the rom hacking wip here on gba temp or type pointer in the search on hte top of the page, I know not easy to follow but you will get it. Basicly its a number that points to the text so relatively speaking where is the text in the rom or in the single file sometimes the pointers will be in the file with the text and sometimes not so...
so look in hex for a number that pints to the location of the text
 

AshenPhoenix

Active Member
OP
Newcomer
Joined
Mar 14, 2009
Messages
27
Trophies
0
XP
169
Country
Mmm... I've read that long ago, and I've worked with pointer tables and made a text extractor/inserter with pointer recalculation for another game.
I'm just stumped as to how this table worked. But thanks for trying to help
smile.gif


And to clarify, these are two separate files, and their entire contents are as seen on these screen shots.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
34,947
Trophies
2
Website
trastindustries.com
XP
24,438
Country
United Kingdom
Very odd table "unicode" 0D0A-> 000D 000A for what I guess is a new line.

Pointers, I find it easier if you change the hex editor so the column width is approximately the same as the pointers (I would say exactly but sometimes the header means the pointers can end up on different lines).

Still trying to see the end of line/section marks in the text. I assume it is not compressed or it has already been uncompressed. Several candidates in the the new line, 00 09 00 or my personal favourite is 5c 00 (in your text conversion it comes out as a yen sign with a subscript p) as it seems to correspond the roughly arabic numbers counting up (I count nine such incidences) and when they do not appear the text is fairly short (all able to appear on one screen?), I will also note the " appearing alongside the yen sign and in some of the smaller sections as well.

The pointers are not plain leading me to call either relative or offset type and more likely relative. By the looks of the repeating numbers the pointer file may also house some text formatting/ownership as well (another reason for lining things up).
Going the other way and looking at the pointers the text file finishes at 2CD, I see nothing like that in the end of the text


0086
00CE
0128
0163
01AA
0203
0244
0270
02BA

Relative differences between them are
48
5A
3B
47
59
41
2C
4A
Nothing obvious there.


Ignoring the header (ASCII section) of the pointers gives about 170 (C5-1B) to play with- assuming 168 that means for the 14 "sections" in the text there are 12 per pointer although this can narrow if there are other things in there.

I shall have to play around with this one further.
 

AshenPhoenix

Active Member
OP
Newcomer
Joined
Mar 14, 2009
Messages
27
Trophies
0
XP
169
Country
Here's a shot at how the txt file looks in JWPce:
15dqir9.jpg


Saving in JWPce ruins the file though, since for some reason it converts spaces to what the game uses for linebreaks or something. ie 000A is turned into 000D 000A. Trying to run the game after this will only give you the first line of text, then a bunch of empty text boxes until the next text file. Adding text manually with a hexeditor works just fine though. Not sure if CT2 can insert/remove bytes? Wanted to try adding characters manually since JWPce is messing up text formatting. And all text files end with an empty section like section 14 in this file.
 

AshenPhoenix

Active Member
OP
Newcomer
Joined
Mar 14, 2009
Messages
27
Trophies
0
XP
169
Country
Hmmm, not sure really what those table files are for. I left the table file unedited and went ahead and "translated" the beginning dialog.
I don't know japanese though so it's google translate and some editing.
I thought it would crash but as long as I keep the same amount of lines, it works.

143l5z7.jpg
 
Status
Not open for further replies.
General chit-chat
Help Users
  • KenniesNewName @ KenniesNewName:
    The PS tablet
    Gift
  • mthrnite tempBOT: @ mthrnite
    switches the box from tv to game
    Gift
  • T @ trimesh:
    Not so sure about that - the tendency for "graphics uber alles" tends to lead to very high power consumption
    Gift
  • KenniesNewName @ KenniesNewName:
    If you look at what's now portability graphics are catching up to console quality
    Gift
  • KenniesNewName @ KenniesNewName:
    Nintendy is a huge example of not everyone caring about powerful specs most that do will be hardcore PC players anyway
    Gift
  • T @ trimesh:
    The thing is that the IATA rules impose a pretty hard limit of 100Wh on battery sizes for lithium batteries - and it doesn't look like Li is going away soon
    Gift
  • T @ trimesh:
    So if you want (say) 4 hours of runtime you need a maximum system-level power consumption of 25W
    Gift
  • KenniesNewName @ KenniesNewName:
    Yeah but we already have AAA titles looking fine on tablet form 1080p displays
    Gift
  • KenniesNewName @ KenniesNewName:
    Human eye can only tell so much of a difference
    Gift
  • T @ trimesh:
    For reference, the PS5 is rated at 350W and the Xbox series X at 275W - and that's console only, without any display
    Gift
  • KenniesNewName @ KenniesNewName:
    But the future always holds performance never know what the aliens will donate from their left over tech
    Gift
  • T @ trimesh:
    Maybe :) - but batteries have turned out to be a pretty hard problem
    Gift
  • KenniesNewName @ KenniesNewName:
    Like I said most that will truly care will already be hard core gaming pcers
    Gift
  • T @ trimesh:
    And DF subscribers :)
    Gift
  • KenniesNewName @ KenniesNewName:
    I bet you could find a neighbor with a ps5 and they'd have no idea what the word spec means
    Gift
  • T @ trimesh:
    Yeah probably - people on forums seem to care a lot, but they are heavily self-selected
    Gift
  • KenniesNewName @ KenniesNewName:
    Most on forums try to get a good learning of actual tech
    Gift
  • Dark_Phoras @ Dark_Phoras:
    Papaya, so good
    Gift
  • KenniesNewName @ KenniesNewName:
    Only 13 more titles to go on ps3 yay
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I still have a remnant of the taste of the papaya
    Gift
  • Dark_Phoras @ Dark_Phoras:
    @KenniesNewName June will come sooner than the end of that process
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    PS3 had horrible speeds off the drive
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    I always wondered why, but I am pretty sure it was trying to reduce costs
    Gift
  • Gift
  • Gift
    Veho @ Veho: https://i.imgur.com/lvNtPqI.jpg