So, I'm translating this simple game and it's pretty much finished, but there's an issue with longer text printing to the screen. I think I know what the issue is, but was hoping to get a second opinion.
Anyhow, I've debugged the game a bit and was able to determine that it's not an issue with the game reading the text data from the ROM. I believe the issue is that due to the extended length, the game runs out of time for vblank and text doesn't get printed as a result.
It should say "Not enough money!" That character at the end is a ryo and a relic from the previous string. Fun fact, the game clears previous strings by just overwriting the old string with the new one. This one's probably a better example.
Anyhow, sometimes it will print no problems and other times not so much.
Possible vblank issue with text getting written to screen
Re: Possible vblank issue with text getting written to scree
Sorry for not being of any help, but I'm curious why you are translating a game that already exists in English?
Re: Possible vblank issue with text getting written to scree
I'm curious too. I guess the original content diverged somewhere to some degree?
Re: Possible vblank issue with text getting written to scree
Well, there's actually an obscure sequel to the game that I want to translate at some point. So I figured I might as well do this one for the heck of it. IIRC, the official translation stripped the game of its Japanese-ness a bit.
Re: Possible vblank issue with text getting written to scree
There's barely any text in the game, so I'm guessing this is just a training exercise, I just find the choice curious. It's a pretty sweet little game anyway.
This is the first time I heard of a sequel! Gotta check it out.
This is the first time I heard of a sequel! Gotta check it out.
Re: Possible vblank issue with text getting written to scree
Incidentally, I looked at the US release and noticed that the issue with longer text isn't an issue for that ROM. I think they made some coding improvements between releases and that might give me what I need to figure this out.
-
- Posts: 271
- Joined: Sun Mar 27, 2011 10:49 am
- Location: Victoria, BC
Re: Possible vblank issue with text getting written to scree
When the screen is being drawn writes to VRAM are ignored, so that does sound like the issue you're having.
If you want to be sure, you can configure BGB to jump into the debugger on invalid VRAM writes.
If you want to be sure, you can configure BGB to jump into the debugger on invalid VRAM writes.