Zophar's Message Domain

Go Back   Zophar's Message Domain > Emulation Talk > Rom Hack

Closed Thread
 
Thread Tools Display Modes
Old 02-02-2009, 12:47 AM   #1
shadowdorothy
Regular Member
 
shadowdorothy's Avatar
 
Join Date: Feb 2009
Location: where i want to
Posts: 88
Question need some help with stuff

so i'm new to hacking, sort of.
i know what a patch and batch files are, but i don't know how to make them.
i have absolutely no idea how to use a text editor and if a text editor can be used one on certain games (like translating a Japanese game to English with a text editor) can it be done?
what is scripting?
i know that games are built on hexadecimal and binary code and i know the # systems involved, but what happens if you change some #'s?
i have a small idea on how to use map editors (you draw the map and replace the one in the game with the one you made? right?)
like I said, i'm sorta new at this stuff and I'm more interested in text editing and translation.
if anyone can help me I'd really like it.
shadowdorothy is offline  
Old 02-02-2009, 01:43 AM   #2
Maximum Potion
Staff (news - ROM hacking/translations)
 
Maximum Potion's Avatar
 
Join Date: Jul 2008
Location: Châteauguay, Québec, Canada
Posts: 625
Default

K well if you want to text edit you need:
-A hex editor (get windhex)
-A rom (duh)
-A table file (easy to make)

So Once you have a Hex editor, open the rom. The hex you see is the game. You just need to know where the data you want to change is.
For text editing, this is hyper easy;
For NES, you can open a rom in nesticle or fce ultra or something and view the pattern tables. Go to a part of the game with words and stuff and view it. Then you highlight the letters with your mouse and it will tell you the hex of that letter. From this you can make a table file that your hex editor will use.
SO!
Make a txt file with notepad or something and just go
A=81
B=82
C=83
D=84
E=85
F=86
G=87
!=9A
.=9B
etc...

Then rename it Romfilename.tbl
and yeah open the rom in the hex editor and search for words and change it. Make sure you've selected the text and not the hex!!

For other roms, to make a table file you can do a relative search using the hex editor. It will find patterns that COULD be the table needed. Some Hex editors will make the table file automatically from the relative search. For example in Hexposure it will ask you every time you do a relative search if you want to make a table file from the results. Choose Yes and if it's the wrong one, press F3 to search again and you'll find it.

To make a patch file from your hack, just open it up in windhex and click TOOLS--CREATE IPS PATCH FILE!!

To make a Batch just rename a .txt to .bat!!
__________________
Metroid: Other M. June 27th, 2010.
Delayed - August 31st, 2010.
Maximum Potion is offline  
Old 02-02-2009, 01:46 AM   #3
HaxorKyo
 
Join Date: Jan 2009
Location: The middle of nowhere, CA
Posts: 22
Default

well, some games have text editors made specifcally for them. I'm not familiar with any specific ones because I just use a hex editor. (it's all I can do with a Mac) you should familiarize yourself well with hexideximal. In the end you'll be able to edit text, music, and pretty much everything else you can think of. hope that was helpful.
HaxorKyo is offline  
Old 02-02-2009, 02:25 AM   #4
InVerse
Senior Member
 
Join Date: Jul 2002
Posts: 1,489
Default

At the risk of being accused of self-promotion, I strongly recommend that you read The Definitive Guide to ROM Hacking for Complete Beginners. The documents and utilities collection at RHDN is much more up-to-date than the one here, as well, so if you haven't been there, you should check it out.

Quote:
Originally Posted by shadowdorothy View Post
so i'm new to hacking, sort of.
i have absolutely no idea how to use a text editor and if a text editor can be used one on certain games (like translating a Japanese game to English with a text editor) can it be done?
Do you mean text editor, or hex editor? If you meant text editor, and mean it in the sense of something like Notepad or JWPCe, these can be used to edit the script but you first have to extract it from the ROM. You can't simply open the ROM with a text editor. If you meant hex editor, that will be one of your main tools when it comes to hacking.


Quote:
what is scripting?

Quote:
i know that games are built on hexadecimal and binary code and i know the # systems involved, but what happens if you change some #'s?
Actually, most games are built with C/C++ or Assembly, but the ROM file is compiled so you can no longer see that code. ROMs can generally be disassembled into assembly language, but this isn't something you're likely to want to deal with as a beginner. (Hell, I've released a dozen translations and still stay away from assembly language.) A ROM can be opened in a hex editor (which, obviously, displays it in hexadecimal values) but so can any other type of file. (I suppose you could use a binary viewer/editor, but I can't imagine why you would want to, unless you're extremely masochistic.)

As for what happens if you change some #s... That's the whole point of hacking. When you change some stuff, it will break. You keep breaking stuff until you end up breaking the thing you're actually looking for. Then you start tweaking that particular value until you figure out what it means and can set it to what you need.

Quote:
i have a small idea on how to use map editors (you draw the map and replace the one in the game with the one you made? right?)
Most map editors will open the ROM, show you the map and let you click and drag different tiles around to redraw the map.

Quote:
like I said, i'm sorta new at this stuff and I'm more interested in text editing and translation.
if anyone can help me I'd really like it.
The best way to learn to hack is just to start hacking. You'll screw a lot of stuff up, but if you're cut out to be a hacker, you'll catch on. Pick a project, start working on it and when you come to something you don't understand, post about what you've done so far, what you're trying to do and what's not working. As long as you can show that you're trying to figure things out and aren't just wanting someone else to do the work for you, you shouldn't have any problems finding help.
InVerse is offline  
Old 02-02-2009, 04:24 PM   #5
shadowdorothy
Regular Member
 
shadowdorothy's Avatar
 
Join Date: Feb 2009
Location: where i want to
Posts: 88
Default

k this helps a bit. but what is the main difference between a hex editor and a text editor? i want to try my hand at translating first, so i want to know these things
can you change game fonts?
when you change the language in the game will you get funny characters?
if you rip the script from a game and translate it can you put the changed script back in the game?

in case your wondering i'm wanting to traslate most, if not all, of the super robot taisen series.
shadowdorothy is offline  
Old 02-02-2009, 10:32 PM   #6
Maximum Potion
Staff (news - ROM hacking/translations)
 
Maximum Potion's Avatar
 
Join Date: Jul 2008
Location: Châteauguay, Québec, Canada
Posts: 625
Default

Once you have your table file (see my post above) each hex value for each letter corresponds to a tile (an image) in the game. To ''change fonts'', all you have to do is open up the rom in a ''tile Editor'' and find the alphabet. From there, you can change it into whatever alphabet you want.
Make sure to set the tile editor to the console the game is designed for.
There should be a box with like 1bpp, 2bpp, 4bpp, NES, GB, SNES etc. or something like that.
__________________
Metroid: Other M. June 27th, 2010.
Delayed - August 31st, 2010.
Maximum Potion is offline  
Old 02-03-2009, 09:44 PM   #7
shadowdorothy
Regular Member
 
shadowdorothy's Avatar
 
Join Date: Feb 2009
Location: where i want to
Posts: 88
Default

k that helps some. i don't know any good hex editors, so i'll have to find one (do we have a utilities section here?)
i'm kinda still confused, but i have a good idea of what to do know. I should most likely just stick to script editing for now.
__________________
College is not all partying. It's mostly hard labor and studying.
shadowdorothy is offline  
Old 02-03-2009, 10:36 PM   #8
InVerse
Senior Member
 
Join Date: Jul 2002
Posts: 1,489
Default

Quote:
Originally Posted by shadowdorothy View Post
k this helps a bit. but what is the main difference between a hex editor and a text editor? i want to try my hand at translating first, so i want to know these things
A text editor can only edit plain text in a plain text file. A hex editor can edit any kind of file in it's raw form. When you open a ROM in a hex editor, you see the actual data that makes up the file. If you open a text file, a picture or a ROM in a hex editor, they all look exactly alike, a bunch of hexadecimal values. As for how you find out what these values mean, well that's where the hacking comes in.


Quote:
can you change game fonts?
The font in a game is simply a graphic, just like all the other graphics you see. The console (or emulator) sees absolutely no difference between the word MARIO and the figure of Mario running around on the screen.

Quote:
if you rip the script from a game and translate it can you put the changed script back in the game?
In short, yes. In truth, it's not as simple as simply translating the text and sticking it back in. For one thing, the English text is almost always going to require considerably more space than the Japanese text. So you first have to find enough space in the ROM to fit in the new text, then you have to adjust the pointers so that the game knows where that new text is stored. How this is done is going to very from game to game, but it's never as simple as stuffing the new text onto the end of the ROM.

Quote:
in case your wondering i'm wanting to traslate most, if not all, of the super robot taisen series.
Don't set your goals too high. Most quality translation projects take far longer than the hacker expects when the project begins. I've had some projects last 5 or more years. Also, several experienced hackers are already working on various Super Robot games, so you might want to poke around RHDN so you don't waste your time on a project that's already making progress.
InVerse is offline  
Old 02-03-2009, 11:22 PM   #9
shadowdorothy
Regular Member
 
shadowdorothy's Avatar
 
Join Date: Feb 2009
Location: where i want to
Posts: 88
Default

i did poke around RHDN. the have no current translations of SRW A, D, R, or J. so i want to focus on those first. It does help that I know lots of chinese, (referred to as Kanji in Japanese) and i know some Japanese and have a Japanese speaking friend.
but now that you mention pointers I'm confused again. I read the rom hacking guide for beginners and it didn't talk about pointers(if it does i might have missed it)
is a pointer a directory like thing or a space finder thing?
__________________
College is not all partying. It's mostly hard labor and studying.
shadowdorothy is offline  
Old 02-03-2009, 11:31 PM   #10
Maximum Potion
Staff (news - ROM hacking/translations)
 
Maximum Potion's Avatar
 
Join Date: Jul 2008
Location: Châteauguay, Québec, Canada
Posts: 625
Default

Well when you change the text in a hex editor for example, It starts at a certain place and ends at a certain place. The game looks for the text at the first place, using pointers.
So since the japanese text has katakana and hiragana, which save some space, and kanji which saves alot of spece, one person's dialogue in english won't fit in the same amount of space as the japanese dialogue.
The space after the dialogue is either another person's dialogue or other game data.
So, you can either TRY to fit the english in the limited space OR you can learn how to change the pointers...
__________________
Metroid: Other M. June 27th, 2010.
Delayed - August 31st, 2010.
Maximum Potion is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:48 AM.

Contact Us - Zophar's Domain - Archive - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.