+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  More Demon's Blazon assistance.
Pages: [1]
Author Topic: More Demon's Blazon assistance.  (Read 2 times)
DarknessSavior
Guest
« on: February 15, 2008, 10:20:48 am »

Thanks to help from DMM, I'm pretty close to getting the 8x16 font up and running properly.

Actually, the font itself works just fine. It's the control codes in that section that are a royal pain in the ass. Why? Because they don't work if you move their location. In the Japanese game, they're all evenly spaced, 0x23 apart. There are three control codes, one after another, one byte each. In the Japanese version, they're always the same: $20, $00, $05. In Demon's Crest, they change.

Now, I wasn't entirely sure what the control codes did, so I've spent the last few weeks trying to analyze some of the ASM to understand what they do. I used the Demon's Crest code to find out what the first code does. It determines the amount of characters per screen that you're allowed to have. Changing this from $20 to $40 allowed me to have enough text on screen so I could fill the screen.

I decided to go through the Demon's Crest script to see what they changed, and look at the game to see if anything significant changed when they changed the codes. They changed the second code to $80 in some cases, which causes the text to display in the center of the screen (they only use this on screens where only one line of text is required). The third code is never changed. At all. If you change it by hand you get scrambled pixels and whatnot.

I have a trace for both the US release and my hacked version, and I've been re-reading them over and over again for about two weeks now. As far as I can see, there's nothing left that's different between the two that would effect this.

The distance between the first few codes in the US version is as follows:

1->2: 0x43
2->3: 0x23 (This is the screen that only has one line of text, all the rest have two)
3->4: 0x43
4->5: 0x43

It seems like each two line screen gets 0x43, and any one liners get 0x23. I can provide screenshots if you need them.

Does anyone have any idea how to deal with something like this? I've never had control codes I couldn't move before. >.>

Edit: I realized that perhaps this doesn't seem like a problem, because normally control codes don't show up as text. Well, they do for me. That's why I need to be able to move them; well, one reason.

Screenshot: http://dsrh.hokuten.net/db8x16.png

~DS
« Last Edit: February 16, 2008, 02:05:31 pm by DarknessSavior »
creaothceann
Guest
« Reply #1 on: February 16, 2008, 07:42:51 pm »

So they turn up because you doubled the number of characters per screen?
Tauwasser
Guest
« Reply #2 on: February 17, 2008, 10:37:27 am »

Dude, you're always expecting help without even posting anything of relevance. Ok, cool, so you wrote all of the stuff that matters to you into a nice little text with punctuation and whatnot and it's cool that you do. However, provide something substantial, namely hex files and screenshots. Really, are we supposed to guess here, or help you out?

cYa,

Tauwasser
DarknessSavior
Guest
« Reply #3 on: February 18, 2008, 08:11:23 am »

Quote from: creaothceann on February 16, 2008, 07:42:51 pm
So they turn up because you doubled the number of characters per screen?

No, these control codes were there in the Japanese version as well. You can't move them then, either, but you wouldn't need to, because they're in a place that they won't show up on screen there. In my hack, it's a bit of an eyesore, because they show up on screen.

Quote from: Tauwasser on February 17, 2008, 10:37:27 am
Dude, you're always expecting help without even posting anything of relevance. Ok, cool, so you wrote all of the stuff that matters to you into a nice little text with punctuation and whatnot and it's cool that you do. However, provide something substantial, namely hex files and screenshots. Really, are we supposed to guess here, or help you out?

cYa,

Tauwasser

Actually, I did post a screenshot. =P

But yeah, I should've provided you with some more information.

Link to ROM removed. --RedComet
http://dsrh.hokuten.net/16x16e.tbl

If you want to take a look at the logs I have:

http://dsrh.hokuten.net/dbdma.log
http://dsrh.hokuten.net/dc0.log

Those are the only two real files you'll need if you want to take a look at it. The 16x16 stuff is at 0x2A828. It should start with an "8AF" code.
« Last Edit: February 18, 2008, 06:28:20 pm by RedComet »
RedComet
Guest
« Reply #4 on: February 18, 2008, 06:29:01 pm »

We don't take kindly to those who link to ROMs 'round these parts. :police:
DarknessSavior
Guest
« Reply #5 on: February 20, 2008, 10:34:49 am »

Oops. I forgot about that.  Embarrassed

Well, since I can't link to the ROM itself, if anyone wants snippets of the script with the codes in it, lemme know and I'll post them.

~DS
RedComet
Guest
« Reply #6 on: February 20, 2008, 04:17:46 pm »

Quote from: DarknessSavior on February 20, 2008, 10:34:49 am
Oops. I forgot about that.  Embarrassed

Well, since I can't link to the ROM itself, if anyone wants snippets of the script with the codes in it, lemme know and I'll post them.

~DS

You know, you could always make a patch...
DarknessSavior
Guest
« Reply #7 on: February 20, 2008, 05:25:48 pm »

Doh, good idea.

Edit: see new link with zipped patch

Use this with the Japanese version of the game, unheadered.

~DS
« Last Edit: February 26, 2008, 02:07:19 pm by DarknessSavior »
Nightcrawler
Guest
« Reply #8 on: February 21, 2008, 08:48:13 am »

Quote from: RedComet on February 20, 2008, 04:17:46 pm
Quote from: DarknessSavior on February 20, 2008, 10:34:49 am
Oops. I forgot about that.  Embarrassed

Well, since I can't link to the ROM itself, if anyone wants snippets of the script with the codes in it, lemme know and I'll post them.

~DS

You know, you could always make a patch...

And then stick it in a compressed archive file to save Internet bandwidth.  Cheesy
DarknessSavior
Guest
« Reply #9 on: February 26, 2008, 02:08:04 pm »

Yeah, it makes a whole 5KB difference:

http://dsrh.hokuten.net/dbasm.zip

~DS
DarknessSavior
Guest
« Reply #10 on: February 26, 2008, 02:51:27 pm »

Nevermind. The issue is solved. I'm an idiot.  :banghead: :banghead: :banghead:

~DS
Pages: [1]  


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