ROM Hack Need Help: Chrono Trigger Translation

Whivel

Member
Newcomer
Joined
Apr 9, 2009
Messages
14
Trophies
1
XP
63
Country
Italy
hex.jpg

i think we are talking about different thing, however
4byte = 00 00 00 00
4byte = T E X T
this is clear.

next there are 4bytes (???) and then 4bytes (msg file length).
after this, there are groups of 4byte, pointing to entrytext.

in this example the unknow value is 0432000.
if you analize the file as i said, you can see that "header" (as i definited) length is 0x324.

if i analize as you said 0432 is a number of entry and 0000 is a unknow value (unused), right?
 

Crosser

Active Member
Newcomer
Joined
Mar 1, 2009
Messages
26
Trophies
0
Age
37
Location
Italy
Website
gemini.aerdan.org
XP
111
Country
Italy
Wait a second, I noticed an error in the structure I posted. This is the actual one:
Code:
typedef struct TOSE_TEXT
{
ÂÂÂÂu32 magic[2];
ÂÂÂÂu32 entries:8;
ÂÂÂÂu32 total:24;
ÂÂÂÂu32 filesize;
} TOSE_TEXT;
That 4 byte "???" value is supposed to be just the total of strings (not the substrings) in the file, which is actually ignored by the game for some reason.

QUOTE said:
if you analize the file as i said, you can see that "header" (as i definited) length is 0x324.
The entries value on the Japanese version is always 2, so that would make that value 0x322 according to your theory. Considering the header size has to be 4 byte aligned, that value cannot exist.
 

Whivel

Member
Newcomer
Joined
Apr 9, 2009
Messages
14
Trophies
1
XP
63
Country
Italy
because i tested another thing and it seem right (as i said it work with all msg file in EUR and USA version).

(ah... why we use vulcanized rubber for a wheel? a wooden wheel is a wheel...)
 

Whivel

Member
Newcomer
Joined
Apr 9, 2009
Messages
14
Trophies
1
XP
63
Country
Italy
i wrote a new version of chrono translator that i think is the last...
now i close this off-topic (i think it is ot), but I would opinions in some way....
 

Crosser

Active Member
Newcomer
Joined
Mar 1, 2009
Messages
26
Trophies
0
Age
37
Location
Italy
Website
gemini.aerdan.org
XP
111
Country
Italy
First of all, link to v1.0 doesn't work. All it does is sending me to a blank page.
Second, the 1.1 BETA isn't capable of loading any of the tables if you select a rom from a different folder as the program's. I've also noticed that you allocate the whole rom in ram: don't do it! It's freaking 128 MB every time and it takes a long time to flush all that, not to mention memory leaks (which already occurred to me). Load just the Big and Small folders instead, maybe with a more dynamic system to locate where they are (your program doesn't work if they are relocated). Also consider the idea of using text dumps: nothing beats notepad or similar programs for editing, and being forced to do it in a tiny window is stressing. One last thing: I believe you already know about it, but why keeping \n as is? Why not turning it into a line feed+line carry? It will make the text much more readable.
 

Whivel

Member
Newcomer
Joined
Apr 9, 2009
Messages
14
Trophies
1
XP
63
Country
Italy
i fixed the link to 1.0 (there is an error with an if in php page)

QUOTE said:
the 1.1 BETA isn't capable of loading any of the tables if you select a rom from a different folder as the program'si can't reproduce this error.... i move a rom in some place, with and without table. it work..... tables must to be in the same place as the program.

QUOTE said:
I've also noticed that you allocate the whole rom in ram: don't do it! It's freaking 128 MB every time and it takes a long time to flush all that, not to mention memory leaks (which already occurred to me).you are right... i use a function of .net, without thinking about these issues, in order to write faster a version... i will change it....

QUOTE said:
Load just the Big and Small folders instead, maybe with a more dynamic system to locate where they are (your program doesn't work if they are relocated).the last change i will be this (i will study the ds structure).

QUOTEAlso consider the idea of using text dumps: nothing beats notepad or similar programs for editing, and being forced to do it in a tiny window is stressing
ok^^ i thinked I thought it would be better with a guide for writing

QUOTE
One last thing: I believe you already know about it, but why keeping \n as is? Why not turning it into a line feed+line carry? It will make the text much more readable
I was undecided until the last ....
however I will also make this change


thanks for all^^
 

Crosser

Active Member
Newcomer
Joined
Mar 1, 2009
Messages
26
Trophies
0
Age
37
Location
Italy
Website
gemini.aerdan.org
XP
111
Country
Italy
Whivel said:
i can't reproduce this error.... i move a rom in some place, with and without table. it work..... tables must to be in the same place as the program.
Program and tables were exactly in the same folder, while the rom was placed in a different drive. I believe your program uses absolute paths for loading them, but the file dialog overrides that turning the current folder into the absolute path even if the program isn't there. A solution would be loading the tables on boot.
 

Whivel

Member
Newcomer
Joined
Apr 9, 2009
Messages
14
Trophies
1
XP
63
Country
Italy
i don't use absolute path.... mmmm i will see
:EDIT:
I found the error.... but i can't understand why.....
 

Whivel

Member
Newcomer
Joined
Apr 9, 2009
Messages
14
Trophies
1
XP
63
Country
Italy
japanese version have two language?

:EDIT:
an example of textdump (all language, but you can choose one instead of all)
\O is \zero
Code:
[@ITEM 73 (L1)]
\O

[@ITEM 73 (EN)]
The fare to Porre is 10 G.
Will you be going?
\t\t{SEL1}Yes.{/SEL1}
\t\t{SEL2}No.{/SEL2}\O

[@ITEM 73 (L2)]
\O

[@ITEM 73 (FR)]
Voulez-vous aller à Palpori ?
Cela vous coûtera 10 G.
ÂÂÂÂÂÂ {SEL1}Oui{/SEL1}
ÂÂÂÂÂÂ {SEL2}Non{/SEL2}\O

[@ITEM 74 (L1)]
\O

[@ITEM 74 (EN)]
Lodging is 10 G. Would you like to stay for the night?
\t\t{SEL1}Yes.{/SEL1}
\t\t{SEL2}No.{/SEL2}\O

[@ITEM 74 (L2)]
\O

[@ITEM 74 (FR)]
Voulez-vous louer une chambre pour 10 G ?
ÂÂÂÂÂÂ {SEL1}Oui{/SEL1}
ÂÂÂÂÂÂ {SEL2}Non{/SEL2}\O

[@ITEM 75 (L1)]
 

Whivel

Member
Newcomer
Joined
Apr 9, 2009
Messages
14
Trophies
1
XP
63
Country
Italy
i wrote a new version....
the last thing left to do is to implement the dynamic analysis of the msg positions
 

fenixdown

New Member
Newbie
Joined
Oct 9, 2009
Messages
2
Trophies
0
XP
133
Country
United States
Sorry to bring up an old topic, but I thought it was better than starting a new one.

I've been using the tools on this thread to put the SNES dialog back into the DS version because I actually like Woolsey's translation. I'm modifying the DS version because I like the menu system in it a little better than the SNES one. I'm replacing the dialog and the fonts in the game, but I've run into some trouble.

I've gotten the dialog mostly changed thanks to the Chrono Translator program, but the fonts are still an issue. I can't make the Font Editor let me change the width of each character , which is a problem because the SNES font is a lot 'chunkier' than the one used on the DS. Is there any way to changed the width, either in the Font Editor or in a hex editor? I'm a newbie to hacking, so I'm sure there's a simple solution, but I just can't find it.

Thanks!
 

Crosser

Active Member
Newcomer
Joined
Mar 1, 2009
Messages
26
Trophies
0
Age
37
Location
Italy
Website
gemini.aerdan.org
XP
111
Country
Italy
Each character in the font has a 2 byte header, where the first byte represents the width value and the second is a type identified (0=null character, 1=1 nibble per row, 2=1 byte per row, 3=1 byte+1 nibble per row). If the program you've used to change the font regenerates the type field, all you've got to do is alter the width value. Weird that they don't regenerate width automatically, tho.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    DinohScene @ DinohScene: when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying