ROM Hack Travel COACH – EUROPE 1 ptxt files

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,373
Country
United Kingdom
I have not hacked the game myself but two things are possible.

When you say garbled are there random symbols/characters not like the ones you put in or are they just shifted around like:
http://img117.imageshack.us/my.php?image=char2al0.jpg

If it is the latter then the chances are the pointers are not correct. Pointers post if you needed it:
Pointers are just an index of the starts of sentences/paragraphs and it is used in nearly all occasions (some are fixed length but there are workarounds there, this is usually for menus though and even more rare is the end of section flag (here there is something the game parses and then starts a new line)). Typically they will be at the start of the text file or in a very similarly named file in the same directory, on rare occasions pointers can be in the binary (the ARM9 for the DS).
The will usually be a long string of numbers (you may have to flip them ABCD->DCBA or 0F76 -> 67F0) which may have "junk" between them (this junk can also be length of section, whether the text is bold/underlined or something like that).

When you change the length of the text naturally the pointer will now point to the wrong place.
Repointing is just changing the pointers to err point to the new position of the text.

There are several different styles of pointer, rather than type them out though (I am halfway through making a final version but have not done pointers yet) can I get you to go to the hacking docs:
(page search for "pointers")
http://gbatemp.net/index.php?showtopic=73394

A simple example of plain pointers (linked in the topic):
http://gbatemp.net/index.php?showtopic=70192&st=41

The easiest way for me is to use a spreadsheet with hex capabilities (open office has hex2dec and the like built in and MS office if you add in the engineering pack has the option). Copy and paste the old pointer table (it will usually be simple enough to calculate so a list of where the pointers are can be useful) in along with the actual position of the original text to figure out how they match up (you might want to do a simple test).
Now you have the method the original pointers use you can reapply it to the edited text and get the new pointers.
Second to this is character limits. Often games will only allow 60 characters per line and will do odd things (scatter files across lines, post on top the other characters, crash....)

If the characters are garbled then your have the encoding wrong. Often this is something trivial like starting the characters at a point that is not 16bit aligned (or that they are 16 bit aligned and the game does not want/expect this; hex editors are notorious for aligning unicode while games just use a single FF or something to mark the end of the line, workaround in that case is use ASCII and just skip every other character (which will likely be a 00) or get a better editor). To test, get the original file and just change two or three characters (if you come the end of the sentence/section stop) in whatever way you like. If it works then it is likely pointers that are your problem. If it does not then it is likely the encoding is wrong
 

Whizz

When things don't go right, go left.
OP
Member
Joined
Nov 20, 2007
Messages
628
Trophies
0
Location
Turn around...
Website
Visit site
XP
202
Country
Netherlands
FAST6191 said:
I have not hacked the game myself but two things are possible.

When you say garbled are there random symbols/characters not like the ones you put in or are they just shifted around like:
http://img117.imageshack.us/my.php?image=char2al0.jpg

Thanks for your reply. Something seems to go wrong with either the unpacking or the repacking. I took the rom, unpacked it, repacked it and I had the same result as before. Original works fine.

2ugc3ed.png


Is there some way to get past this problem?
 

thedicemaster

Well-Known Member
Member
Joined
Apr 26, 2008
Messages
2,432
Trophies
0
XP
303
Country
Netherlands
i guess you'll have some extra work.


most likely it uses exact locations within the nds file, and since repacking removes some empty spaces files get a different location.
to fix it you'd either need to be able to change the location where it takes it's data from, or you'd need to apply any changes directly into the NDS using a hex editor.
 

Whizz

When things don't go right, go left.
OP
Member
Joined
Nov 20, 2007
Messages
628
Trophies
0
Location
Turn around...
Website
Visit site
XP
202
Country
Netherlands
Thanks for the reply.

I tried editting the rom, same result. However when I tried a trimmed version I was able to change some letters. When I try to edit whole lines I run into the pointer problem Fast mentioned. I just read the info and it seems to be a bit more difficult than I first expected...

the ptxt files I mentioned earlier start with:
CODE............t...|...............................P...............................$.......
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    You need to setup a time lapse camera, be neat
  • BigOnYa @ BigOnYa:
    I actually use a pic of it on my pc desktop cause its cool looking
  • Xdqwerty @ Xdqwerty:
    Apparently the pro versión of pizza boy is back aswell
  • Xdqwerty @ Xdqwerty:
    Gonna download the update
  • Xdqwerty @ Xdqwerty:
    Only 2 antiviruses detected the APK as a virus on virustotal so it Must be safe
  • Xdqwerty @ Xdqwerty:
    Cuz false positive
  • Xdqwerty @ Xdqwerty:
    Wait
  • Xdqwerty @ Xdqwerty:
    Eh nvm
  • BakerMan @ BakerMan:
    sadly, the clouds are setting in now

    hey BigOnYa the clouds are coming from the south, maybe check again
  • Xdqwerty @ Xdqwerty:
    Good night it's 11 pm
  • BakerMan @ BakerMan:
    night
  • BigOnYa @ BigOnYa:
    @BakerMan Nuh I'm in for the night playing Fallout 4, ill look tomorrow night
  • BigOnYa @ BigOnYa:
    Ok had let dog out, and yea still can't see it, oh well. Maybe tom night.
  • K3Nv2 @ K3Nv2:
    Ballocks these drives aren't allowing raid
  • BigOnYa @ BigOnYa:
    That sucks, well you will get double the space then atleast.
  • K3Nv2 @ K3Nv2:
    @Sicklyboy needs to come back
  • BigOnYa @ BigOnYa:
    Did you try Raid 10?
  • K3Nv2 @ K3Nv2:
    I did raid69
  • K3Nv2 @ K3Nv2:
    The physical disk keeps disabling in bios
  • BakerMan @ BakerMan:
    hey ken did you see the aurora tonight?
  • BakerMan @ BakerMan:
    also sorry it was too cloudy, that sucks
  • SylverReZ @ SylverReZ:
    @K3Nv2, This chat is sponsored by Raid Shadow Legends.
  • K3Nv2 @ K3Nv2:
    So I guess raid0 doesn't allow mismatched storage oh well
    +1
  • K3Nv2 @ K3Nv2:
    In other news GeForce experience is still shit
    K3Nv2 @ K3Nv2: In other news GeForce experience is still shit