ROM Hack Editing .siz and .str files for Translation

GHappy

New Member
OP
Newbie
Joined
Jun 11, 2017
Messages
2
Trophies
0
Age
34
XP
41
Country
Dear GBATEMP members,

I am trying to localizing captain tsubasa game on DS, however there is a problem of editing text files of extension .str and .siz.

I can edit team names on .str file however, if the name for example in Spanish is like that Italia, and I want to change it to italy I need to delete the letter a of the original word right?

this change will affect the .siz file which is really confused me how I understand this. take a look for both files
str file:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 4E 61 6E 6B 61 74 73 75 49 74 C3 B4 C3 94 74 6F NankatsuItôÔto
00000010 6D 6F 41 7A 75 6D 61 69 63 68 69 44 55 4D 4D 59 moAzumaichiDUMMY
00000020 5F 45 48 61 6E 61 77 61 48 69 72 61 64 6F 46 75 _EHanawaHiradoFu
00000030 72 61 6E 6F 54 C3 B4 68 C3 B4 4D 75 73 61 73 68 ranoTôhôMusash
00000040 69 4D 61 74 73 75 6B 61 6D 69 4B 6F 6E 69 73 68 iMatsukamiKonish
00000050 69 4D 65 69 77 61 20 48 69 67 61 73 68 69 53 61 iMeiwa HigashiSa
00000060 70 70 6F 72 6F 53 75 77 61 4D 69 6E 61 6D 69 20 pporoSuwaMinami
00000070 55 77 61 4D 69 20 4E 61 6E 6B 61 74 73 75 44 55 UwaMi NankatsuDU
00000080 4D 4D 59 5F 45 44 55 4D 4D 59 5F 45 4E 61 6E 69 MMY_EDUMMY_ENani
00000090 77 61 4E 61 6B 61 68 61 72 61 45 71 75 69 70 6F waNakaharaEquipo
000000A0 20 61 6C 65 6D C3 A1 6E 49 6E 67 6C 61 74 65 72 alemánInglater
000000B0 72 61 55 72 75 67 75 61 79 49 74 61 6C 69 61 41 raUruguayItaliaA
000000C0 72 67 65 6E 74 69 6E 61 46 72 61 6E 63 69 61 41 rgentinaFranciaA
000000D0 6C 65 6D 61 6E 69 61 45 73 63 75 65 6C 61 20 50 lemaniaEscuela P
000000E0 61 73 65 45 73 63 2E 20 49 6E 74 65 72 63 2E 45 aseEsc. Interc.E
000000F0 73 63 2E 20 4D 65 64 69 6F 45 73 63 2E 20 42 6C sc. MedioEsc. Bl
00000100 6F 71 75 65 45 73 63 2E 20 43 68 75 74 4E 69 70 oqueEsc. ChutNip
00000110 6F 6E 61 59 6F 69 63 68 69 20 31 31 41 67 65 6E onaYoichi 11Agen
00000120 74 65 20 6C 69 62 72 65 3F 20 3F 20 3F te libre? ? ?

corresponding siz file
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000 00 00 08 00 08 00 04 00 0C 00 06 00 12 00 09 00 ................
00000010 1B 00 07 00 22 00 06 00 28 00 06 00 2E 00 06 00 ...."...(.......
00000020 34 00 06 00 3A 00 07 00 41 00 09 00 4A 00 07 00 4...:...A...J...
00000030 51 00 0D 00 5E 00 07 00 65 00 04 00 69 00 0A 00 Q...^...e...i...
00000040 73 00 0B 00 7E 00 07 00 85 00 07 00 8C 00 06 00 s...~...…...Œ...
00000050 92 00 08 00 9A 00 0E 00 A8 00 0A 00 B2 00 07 00 ’...š...¨...²...
00000060 B9 00 06 00 BF 00 09 00 C8 00 07 00 CF 00 08 00 ¹...¿...È...Ï...
00000070 D7 00 0C 00 E3 00 0C 00 EF 00 0A 00 F9 00 0B 00 ×...ã...ï...ù...
00000080 04 01 09 00 0D 01 06 00 13 01 09 00 1C 01 0C 00 ................
00000090 28 01 05 00 (...
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,348
Country
United Kingdom
If you are only deleting characters then many will instead choose to use a space, however if it appears in the game in the middle of a paragraph or something it will look odd.

Anyway if they are not fixed length then there are likely some pointers (things to tell the program where to find a given value) or length values (simple things to say how long the string in question is) in either the str file or the siz file. The str file does not appear to have anything so yes it will probably be in the .siz file.
In this case it looks like a location and size listing
The final thing
00000090 28 01 05 00 (...
If you flip the 2801 to give 0128 you get something towards the end of the file. It is indeed 00 05 long.
1C 01 0C 00
Gives you
011c 000c
At 11c there is indeed a string that is 12 decimal long, or C if you are sticking with hex.
13 01 09 00
Gives you
0113 0009
0113 in the file does have a string that is 9 long.
I could go through the rest but I think you get the idea. Sadly there does not appear to be anything you can manually search for that indicates a string end (some games use 00 or something) so if you edit a string you have to edit the siz file for that entry and all those following it.
 

GHappy

New Member
OP
Newbie
Joined
Jun 11, 2017
Messages
2
Trophies
0
Age
34
XP
41
Country
Many thanks FAST6191 for your reply and illustration, I will put your comments in consideration and start figure out what is happening.

Thanks for your awesome work so far in this forum.
 

Sabil

Well-Known Member
Newcomer
Joined
Sep 4, 2017
Messages
58
Trophies
0
Age
33
XP
163
Country
Japan
Many thanks FAST6191 for your reply and illustration, I will put your comments in consideration and start figure out what is happening.

Thanks for your awesome work so far in this forum.

any update for automatically changing the pointer in the siz file?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Oh yeah it's in September
  • Xdqwerty @ Xdqwerty:
    @BakerMan, yea i think its different
  • BakerMan @ BakerMan:
    ok, because here it's in september, right before the fuckin school year starts
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    as to you
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • 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 patched ROM
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
    The Real Jdbye @ The Real Jdbye: why the shit does the shitbox randomly insert newlines in my messages