+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  help finding a games script
Pages: [1]
Author Topic: help finding a games script  (Read 2 times)
9volt Kappa
Guest
« on: March 25, 2008, 08:05:38 pm »

Hi I'm new here and I was just wondering if I could get some help extracting a games script.I don't want you to do it for me or anything but a point in the right direction would be nice I'v read alot of doc.s but I'm still stuck. Its a snes game.Any advise would help.I think I'v found some text with tlp but dont where to go from there.I hope you understand what I'm asking I'm a noob Embarrassed
Aeris130
Guest
« Reply #1 on: March 26, 2008, 04:37:27 am »

A script is the actual text in the game, not the graphics used for the font (I assume tlp = Tile Layer Pro). You're going to need a script extractor/inserter as well as knowledge of where the game stores it text in the rom (starting and ending offset). There doesn't seem to be any script related tutorials in the doc-section, but this site has one in case you're interested.

Or if you're actually trying to dump graphics, then TLP has an option called import/export bitmap that is used to dump/insert images.
Nightcrawler
Guest
« Reply #2 on: March 26, 2008, 07:36:23 am »

The Newbie Package of REQUIRED Material
It sounds like you need to read through the Getting Started section.
ROMHacking.net FAQ: You ask, we answer!
ROMHacking.net Getting Started Section: Newbies Go HERE!
ROMHacking.net Documents Section!
How to ask questions the smart way.
On the Essence of ROM Hacking

9volt Kappa
Guest
« Reply #3 on: March 26, 2008, 07:28:55 pm »

Ok so I did a kana search for a sentence from the game and there was no matches so I tried a few more searches and still no matches am I forgetting a step or does this mean that it uses a compressed font?
Ryusui
Guest
« Reply #4 on: March 26, 2008, 07:45:50 pm »

If you've found the game's font with TLP, then it's not compressed. As for the game itself, usually they use their own arcane methods of text storage. Sometimes you luck out and they use something common, like ASCII or Shift-JIS, but most of the time you'll have to puzzle out what bytes indicate what symbols.
9volt Kappa
Guest
« Reply #5 on: March 26, 2008, 07:57:06 pm »

If I'm using winhex searching for japanese text will there actualy be kana on the right side or will there just be a bunch of stuff that stands for kana
Ancenande
Guest
« Reply #6 on: March 26, 2008, 08:05:48 pm »

Unless you're really really lucky, there will be a bunch of incoherent symbols.
Karatorian
Guest
« Reply #7 on: March 26, 2008, 08:28:14 pm »

If you're not so lucky as to have a game that uses an industry standard encoding, you'll proably have to use relative searching. The way relative search works is that rather than search for a specific string of bytes, you use a program that searches for a seqence of bytes that change (plus or minus) by the amount you specify.

As you've already found the font graphics, that may be very helpful. Many games use letter numbers (codepoints) that are in the same order as the graphics in the font.

What I would recommend you do is find a word or phrase you can easily get to in the game, but distinctive enough that there's not likely to be very many instances of it in the game. Then look through the font graphics and locate the characters in your search string. Using the relative offsets of these characters, you might be able to locate the string.

If you find what appears to be your string, edit it and see if it changes in the game. Once you've found some text, you have two tasks ahead of you. These are constructing a TBL file and locating the rest of the text (and related pointer tables). If you found text using the method I gave above, the TBL file should be pretty easy to build as the graphics order would equal the text order.

Once you've got a TBL file, use a hexeditor with TBL support and you should be able to locate the script without too much difficulty. Locating the pointers may be easy or complicated. Some games have the pointers near the text, while others may have them located elsewhere. If you can't find them near the script, you'll have to start searching the ROM for pointers that point and the known beginings of text strings. (Of course, some games don't have traditional pointers.)

Best of luck.
9volt Kappa
Guest
« Reply #8 on: March 26, 2008, 09:33:38 pm »

I'm having a difficult time telling what symbol is what it all looks like a mess so I began filling in the space in one color to see what changed in the game.I began playing and noticed that when the text boxes appear squares are missing and you can see the layer behind it is this normal?also is there any way to view the  graphics in the same colors as they are in the game.
creaothceann
Guest
« Reply #9 on: March 27, 2008, 06:16:57 am »

Quote from: 9volt Kappa on March 26, 2008, 09:33:38 pm
I'm having a difficult time telling what symbol is what it all looks like a mess so I began filling in the space in one color to see what changed in the game. I began playing and noticed that when the text boxes appear squares are missing and you can see the layer behind it is this normal?

It is if you filled the "space" with color 0 which is treated as transparent.


Quote from: 9volt Kappa on March 26, 2008, 09:33:38 pm
also is there any way to view the  graphics in the same colors as they are in the game.

With systems that use a palette (SNES, GBA, PSX in most (?) cases, Master System, Mega Drive, maybe NES etc.) you should load the palette from a savestate.
9volt Kappa
Guest
« Reply #10 on: March 27, 2008, 02:00:12 pm »

When I load my pallet from a savestate theres no graphics its just all purple so i loaded a pallet from another savestate and its just all black :banghead: :banghead: any help would be appreciated
creaothceann
Guest
« Reply #11 on: March 27, 2008, 05:30:47 pm »

IIRC TLP displays the palette as 16 sub-palettes á 16 colors. Have you switched through all of them?

If it's a SNES game then you can use vSNES to view the screenshot scene and find out which palette colors the font uses. (GBA users have it easier with VBA...)
9volt Kappa
Guest
« Reply #12 on: March 29, 2008, 06:23:28 pm »

Relative searching doesn't work I don't understand why I've been trying for a week.

This is the font if I want to find the word shikashi what numbers should i do a relative search for(I'v already tried many times)
« Last Edit: April 03, 2008, 08:13:53 pm by 9volt Kappa »
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC