ROM Hack Hex Edit adding Space

  • Thread starter Thread starter Shiro09
  • Start date Start date
  • Views Views 7,928
  • Replies Replies 13

Shiro09

AAI2 Localisation Team
Member
Joined
May 4, 2010
Messages
763
Reaction score
41
Trophies
0
Age
29
Website
Visit site
XP
235
Country
Hello people it's me again.

I was wondering when I change the Japenese characters to english there is a shortage of room.
eg: 石田雨竜 (4 spaces) --- Uryuu Ishida (12 spaces[including space])
How do I add more space?
 
I think it can be solved with a text editor (extract and re-insert text), to make a text editor you need to learn C++ or C# or other language program, or you can ask an advanced romhacker to build it for you
smile.gif

But a text editor only works for 1 game, for another game you need to build another text editor.
 
phoenixgoddess27 said:
Change the pointers or or the bytes, but I think changing bytes have to do with ASM knowledge, which is something I don't quite have.
I tried finding pointers but I dont get how are pointers on the side of the text if not i dont know what a pointer is.
ShinRyouma: I think it can be solved with a text editor (extract and re-insert text), to make a text editor you need to learn C++ or C# or other language program, or you can ask an advanced romhacker to build it for you
But a text editor only works for 1 game, for another game you need to build another text editor.
Will it work for something like a wii game in just saying...?
 
6Toushiro9 said:
Will it work for something like a wii game in just saying...?
Translating PSP games are harder than NDS games, so I'm sure doing on Wii games are much harder, but I'm not saying it's impossible to be done. If you know a lot of language program it'll help a lot. Interested in learning C++, C#, etc?
smile.gif
 
ShinRyouma said:
6Toushiro9 said:
Will it work for something like a wii game in just saying...?
Translating PSP games are harder than NDS games, so I'm sure doing on Wii games are much harder, but I'm not saying it's impossible to be done. If you know a lot of language program it'll help a lot. Interested in learning C++, C#, etc?
smile.gif
Yeah, care to teach me?
 
Actually, you should probably start with C#, it's easier than C++ in my opinion and you can use it to write programs, so it's just as beneficial.

You can google a C# tutorial.
 
phoenixgoddess27 said:
Actually, you should probably start with C#, it's easier than C++ in my opinion and you can use it to write programs, so it's just as beneficial.

You can google a C# tutorial.
Thanks again, so are pointers the letters and numbers on the side of the text?
 
6Toushiro9 said:
phoenixgoddess27 said:
Actually, you should probably start with C#, it's easier than C++ in my opinion and you can use it to write programs, so it's just as beneficial.

You can google a C# tutorial.
Thanks again, so are pointers the letters and numbers on the side of the text?

Those are just where sentences stop, null characters.
Pointers are usually before the script which are hex codes.
Take a look here on jjjewel's translation site for Tokimeki Memorial 1st Love Plus.
http://sites.google.com/site/tokimemogs1/technical-stuff

For some pointers, you have to switch around the bytes cause they're read backwards.
Take a look at the header in Tokimeki Memorial 1st Love Plus and find the numbers that are after 00 that aren't 00.
Let's say you see F0 0A, if you read it backwards it's 0AF0, you put the second byte first.
Go to the offset in the properties section of CT2 and type in 0AF0, you'll get the script offset.
The previous pointers points to the name of the file, what events go with the script and the speaker list.

Hope that helps somewhat.
 
You will need to reverse the file format, find the offsets that point to the strings/text and most likely more (text length, total filesize and so) to proper rebuild the file with the text.

Here a simple example if you have offsets like:

0x1A 0x27 0x35 0x..

string 1 would start on 0x1A and since the next string is at 0x27 the length of string 1 would be 0x0D = 13 bytes
string 2 would start on 0x27 next string is at 0x35 the length of string 2 would be 0x0E = 14 bytes
and so on

So if you then want to make it possible to add a longer string you would change 0x27 to whatever you need.

Anyway like it was said you should learn C# or whatever programming/scripting language you like, to write you an editor application that does that for you automaticly.

And by the way it´s not really harder to translate a Wii game or whatever it just always depends on how the developer made the files like are they compressed.

PS: a good site with many tutorials is romhacking.net not so much for actuall games but it´s a good start to learn the basics since it´s still in newer games pretty similar (except for compressions or you need to mess around with Big btw Little Endian or such stuff)
 
@ 6Toushiro9 : I haven't learnt C# or C++, but maybe I'll learn if I have some free time
smile.gif


romhacking.net/start is the site where I learn basic romhacking. The documents are easy to understand because they use simple English (my English is bad).

Well, good luck
smile.gif
 

Site & Scene News

Popular threads in this forum