View Single Post
Old 05-28-2009, 12:28 AM   #9
Senior Member
Join Date: Jul 2002
Posts: 1,489

Originally Posted by Kilyle View Post
As far as text versus graphics... are you indicating that, once I find a graphics (level) editor capable of letting me switch the graphics displayed in a given area, the task itself is no more complex than switching which letters are displayed, which I am already doing pretty easily?
Basically, what I meant was that for a game to display, say, a doorway and a game to display the letter 'A' is the exact same process. If you knew where level data was stored and what the various values were, changing that door to, say, a chair, would be pretty much identical to change the letter 'A' to the letter 'Z'. It is a bit more complex in the sense that there's generally a hell of a lot more level data than there is text data, but the process itself is identical.

As far as my table: Turns out several codes just make blocks (the block present in the font table), while a few seem to be control codes (close the window immediately, without letting me read it). But I'm finishing it up. Once I'm done, is there a place I could submit it here, in case it would be useful for others (obscure as the game may be)?
Data Crystal has a section for posting table files. There's no listing for Sorcerer's Kingdom at the moment, but it's a wiki, so you can add a listing for any game you want. Along with the table file, I would also add the location of the text and the font.

Oh, and apparently there are two distinct tables at work in this game. One for the chat text, for when you talk to people; the other for some other readable sections I've found in the code. The chat text has smalls starting at 61, caps at 81; the other had 41 (caps only... I think). Trying to put the 41-area letters into the chat codes makes blocks, punctuation, anything but letters. So I redid that area of my table.
It's relatively common for a game to use more than one table, especially for different sections of text. Quite often, there will be separate fonts for menus and dialogue. I've also seen many a game use a separate font for the credits of a game, even though the actual appearance of the credits font is identical to the font used in the rest of the game. As you get deeper into ROM hacking, you'll find things like this that make absolutely no sense. Experienced ROM hackers generally chalk this up to game programmers smoking a lot of crack.

Okay, just tried to attach a picture here... not sure how that works yet. But anyway, it's a pic of the font. And there's significant space here between the caps and the smalls, and between the 16x8 and the 8x8. Is it possible to add extra letters or symbols to this area without messing things up? How do I tell the distinction between "place I can draw" and "place I shouldn't draw" - the boundaries of the font-definition area? (I assume that once I have drawn things, I should just use the codes I've identified as "space" to see which one creates which space.)
If the "significant space" you're referring to is the 5 blank spaces after the Z and z, then you should be able to use them with no problem. If you're referring to the space between the lines of letters, then probably not. (I'm pretty sure you're referring to those blank spaces after the Zs, though.) The value of the 8x16 space after the Z should be one larger than the value of Z and so forth.

As for how to tell where it's safe to draw and where it's not, you figure that out in the way you figure a lot of things out. Make a backup, try it out and if it breaks the ROM, then you know you can't use that area.

Without trying it, I can't say for sure, but I would venture a guess that you'll even be able to use the blank line underneath the various symbols at the bottom of your screen shot. Also, I'm going to assume (but you'll have to experiment to see) that the space in front of the capital A is the one actually used as a blank space in the game.

You seem to be making some good progress. It's nice to see someone who simultaneously asks questions while trying to figure things out on there own. That's a rarity. A lot of people want babied through the process step by step which is almost as bad, or maybe even worse, than just asking someone to all the work for them.
InVerse is offline   Reply With Quote