Noitora
Guest
|
 |
« on: August 05, 2008, 04:20:53 am » |
|
I am starting a Doki Doki Majo Shinpan translation and It seems that I won't be able to do many things unless I change the width of the font. I want to apply the hack to all the 1 byte english characters. Take a look at this screenshot.It should display Nishimura Akuji instead of Nishimura.  Even If a variable width font is too hard to do, If anyone knows how to change the displayed characters limit I would be really grateful. Here is the Font file: http://mihd.net/zdb59yc
|
|
|
|
KaioShin
Guest
|
 |
« Reply #1 on: August 05, 2008, 04:41:50 am » |
|
A much easier first ASM hack would be to expand the size of that name box. Read up on tilemaps and get a debugger. Then try to find the ROM adress of that box and experiment. A VWF hack is way over your head if you haven't done anything else with ASM yet.
|
|
|
|
Ryusui
Guest
|
 |
« Reply #2 on: August 05, 2008, 04:47:43 am » |
|
It may not require an ASM hack. See if you can find the font file and check the end of it; there might be a width table.
|
|
|
|
Noitora
Guest
|
 |
« Reply #3 on: August 05, 2008, 05:35:22 am » |
|
Actually there's no need to do change variable width font after all changing the width of a character with a hex editor is a real pain, So I just changed the pointers and I'll edit the graphics and make the box kinda bigger.Also the text is automacally centered but I can easily fix this I'll add a couple of spaces after and before a string.  Here are my results: 
|
|
|
|
Dragonsbrethren
Guest
|
 |
« Reply #4 on: August 05, 2008, 08:51:25 am » |
|
<snip> after all changing the width of a character with a hex editor is a real pain <snip>
Then this hobby isn't for you.
|
|
|
|
Ryusui
Guest
|
 |
« Reply #5 on: August 05, 2008, 09:41:14 pm » |
|
Indeed, it's not.
And if text is automatically centered, then you're in for a world of pain if you try to change the character widths. In Death Note: The Kira Game, the centering routine assumes all characters are the same width. I had to insert a tricky ASM hack to make it work properly.
|
|
|
|
Kajitani-Eizan
Guest
|
 |
« Reply #6 on: August 06, 2008, 12:39:23 am » |
|
or you just take the average character width and use that, which should be close enough to centered for a novice hacker 
|
|
|
|
Noitora
Guest
|
 |
« Reply #7 on: August 06, 2008, 08:05:58 am » |
|
<snip> after all changing the width of a character with a hex editor is a real pain <snip>
Then this hobby isn't for you. It may not be but I am happy with what I am doing  I wanted to ask something offtopic: I want to know if there is a huffman compressor because with this prog: http://www.romhacking.net/utils/433/I can only decompress data.
|
|
|
|
Ryusui
Guest
|
 |
« Reply #8 on: August 06, 2008, 11:20:38 am » |
|
You'll probably have to roll your own recompressor. Mind you, Huffman coding is a little hard to wrap your head around, but once you do, it's ingeniously simple. Here's a hint for writing your recompressor: recursion.
|
|
|
|
Kajitani-Eizan
Guest
|
 |
« Reply #9 on: August 06, 2008, 05:56:54 pm » |
|
yeah, not too bad, i wrote one a few years ago. of course, writing one without recursion is probably not a good idea. especially if you're not using a language with explicit pointers and stuff.
|
|
|
|
Noitora
Guest
|
 |
« Reply #10 on: August 07, 2008, 01:46:32 am » |
|
yeah, not too bad, i wrote one a few years ago. of course, writing one without recursion is probably not a good idea. especially if you're not using a language with explicit pointers and stuff.
Too bad my coding experience doesn't allow me to do something like that.
|
|
|
|
Ryusui
Guest
|
 |
« Reply #11 on: August 07, 2008, 02:04:06 am » |
|
Recursion is easy in a language like Visual Basic. You just have to have a sub call itself. It can be done. :3
|
|
|
|
Noitora
Guest
|
 |
« Reply #12 on: August 07, 2008, 05:49:45 am » |
|
If that's the only way  \ then I'll have to do it.I haven't coded in visual basic for two years or so  Where should I get started?
|
|
|
|