Author
|
Topic: How would someone do this in a rom? (Read 1 times)
|
Rai
Guest
|
 |
« on: March 29, 2008, 02:02:09 am » |
|
Alright, say a game uses a particular word a lot for items for instance Fire Emblem uses "Sword" a lot. How would I make it so that I could just type in a code that points to the word "Sword" so I don't have to keep rewriting it? Would I have to make a pointer? If so how can that be done?
|
|
|
|
BRPXQZME
Guest
|
 |
« Reply #1 on: March 29, 2008, 02:34:15 am » |
|
This is called dictionary compression. There should be plenty of docs to get you started.
|
|
|
|
Rai
Guest
|
 |
« Reply #2 on: March 29, 2008, 03:08:40 am » |
|
This is called dictionary compression. There should be plenty of docs to get you started.
Thanks. That would really help me save space in the game.
|
|
|
|
Rai
Guest
|
 |
« Reply #3 on: March 29, 2008, 10:05:45 am » |
|
Sorry to double post, but where could I find a good tut on doing this? I can mostly find only DTE on this site which doesn't sound like dictionary compression. Basically, I want to make it that instead of fully typing names, locations, weapon names and all that important stuff, I would just use a code to call them up from a different place in the rom. Like for instance the line... Prince Marth, Sheeda has arrived from Taris Castle I'd like to make so it's like... [NameCode], [NameCode] has arrived from [NameCode] Castle Basically I want to make important stuff like names and stuff referenced by 2 byte codes somewhere else in the rom. Or are DTE and dictionary the same thing? I'm confused.
|
|
|
|
KaioShin
Guest
|
 |
« Reply #4 on: March 29, 2008, 10:11:11 am » |
|
Don't double post. Edited posts will show up as new. I'm sure you have been told this countless times before already.
DTE is almost the same as dictionary compression (often referenced to as MTE). Without understanding DTE one can't use MTE.
And you can stop anyway. You're going to need ASM for MTE, and you made it clear in the past that you are unwilling to learn it. None of the tutorials will give you copy and paste ready stuff you can use.
|
|
|
|
Rai
Guest
|
 |
« Reply #5 on: March 29, 2008, 11:13:45 am » |
|
Don't double post. Edited posts will show up as new. I'm sure you have been told this countless times before already.
DTE is almost the same as dictionary compression (often referenced to as MTE). Without understanding DTE one can't use MTE.
And you can stop anyway. You're going to need ASM for MTE, and you made it clear in the past that you are unwilling to learn it. None of the tutorials will give you copy and paste ready stuff you can use.
No I haven't been told it countless times already. And no I'm not going to stop and I have shown willingness to learn ASM, just because I don't understand what all the codes do with the rom doesn't mean I didn't learn it. For instance, I could tell you what all the little opcodes do, but I couldn't tell you what it means in the rom.
|
|
|
|
KingMike
Guest
|
 |
« Reply #6 on: March 29, 2008, 12:23:58 pm » |
|
And you will need to understand pointers first.
|
|
|
|
Ryusui
Guest
|
 |
« Reply #7 on: March 29, 2008, 01:09:40 pm » |
|
No I haven't been told it countless times already. And no I'm not going to stop and I have shown willingness to learn ASM, just because I don't understand what all the codes do with the rom doesn't mean I didn't learn it. For instance, I could tell you what all the little opcodes do, but I couldn't tell you what it means in the rom.
Erm...huh? I hope to God all you're saying is "I know the opcodes but I don't have the hex for them memorized". (Because really, that's what assemblers are for.)
|
|
|
|
Rai
Guest
|
 |
« Reply #8 on: March 29, 2008, 01:55:05 pm » |
|
And you will need to understand pointers first.
Yes, but I know the text pointers though. Pointers are only good in Fire Emblem though, if you can find a piece of extra space in the same range. For instance, to insert Marth's name I had to delete an extra space from Jeigan's name and another from George's. I THINK I found the pointers for the actual dialogue, but I'm not sure. The reason I'm trying to learn dictionary compression is I think it would help a bunch in text insertion.
|
|
|
|
KaioShin
Guest
|
 |
« Reply #9 on: March 29, 2008, 01:58:27 pm » |
|
And you will need to understand pointers first.
Yes, but I know the text pointers though. Pointers are only good in Fire Emblem though, if you can find a piece of extra space in the same range. For instance, to insert Marth's name I had to delete an extra space from Jeigan's name and another from George's. The reason I'm trying to learn dictionary compression is I think it would help a bunch in text insertion. You were lucky to stumble upon those by chance, but for MTE compression (and that IS a compression) you need to understand pointers fully and completely. There is no shortcut around them.
|
|
|
|
Rai
Guest
|
 |
« Reply #10 on: March 29, 2008, 03:56:06 pm » |
|
And you will need to understand pointers first.
Yes, but I know the text pointers though. Pointers are only good in Fire Emblem though, if you can find a piece of extra space in the same range. For instance, to insert Marth's name I had to delete an extra space from Jeigan's name and another from George's. The reason I'm trying to learn dictionary compression is I think it would help a bunch in text insertion. You were lucky to stumble upon those by chance, but for MTE compression (and that IS a compression) you need to understand pointers fully and completely. There is no shortcut around them. Well "by chance" is the only way when it's not a standard pointer system and you don't know much about finding them with ASM. But what is "fully" understanding them?
|
|
|
|
Disch
Guest
|
 |
« Reply #11 on: March 29, 2008, 04:21:19 pm » |
|
Before I make a lengthy reply... are you talking about the NES Fire Emblem?
|
|
|
|
Rai
Guest
|
 |
« Reply #12 on: March 29, 2008, 04:37:03 pm » |
|
Before I make a lengthy reply... are you talking about the NES Fire Emblem?
Yep. I don't even care if it's DTE though, I just need some kind of compression scheme to fit in the text.
|
|
|
|
Spikeman
Guest
|
 |
« Reply #13 on: March 29, 2008, 06:16:32 pm » |
|
I highly recommend KingMike's doc on DTE I used it to help me finish my first ASM hack. I also had stumbled upon the pointers by accident. My hack was for GBA so had to adjust the technique but luckily for you this doc is aimed at the NES. So with perseverance and a little luck you should be able to do it. 
|
|
|
|
Karatorian
Guest
|
 |
« Reply #14 on: April 02, 2008, 07:52:25 pm » |
|
Erm...huh? I hope to God all you're saying is "I know the opcodes but I don't have the hex for them memorized". (Because really, that's what assemblers are for.) Actually, what he's saying is that he has a basic understanding of what the opcodes mean, but he dosn't really get ASM and as a result doesn't know how to figure out what a piece of ASM actually does from a high level perspective.
|
|
|
|
|