gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > white screen with VHAM

#13980 - swels - Fri Dec 26, 2003 10:07 pm

Hello,
Sorry for my english, it's not my first language.
i'm writting a game with friends, but my gfxcoder is very (too) generous and make too many gfx , animation etc, and when i compil all the sources generated by gfx2gba, my .bin explose >2Mb. Result, a white screen in VisualGBA.
Is gbfs is the solution for my problem ?

#13981 - f00l - Fri Dec 26, 2003 10:08 pm

uhm.. I have a rom too over 2 mb.. infact all most all commercial roms are over 2 MB so, it's not the gfx that's the problem.. maybe you didn't load it right ? or maybe you didn't convert the gfx correct ?
_________________
woei!

#13982 - swels - Fri Dec 26, 2003 10:21 pm

I think my gfx are correctly convert.Can i join my source to se?
For exemple, a logo that start at the beginning of the game is making with 14 frames.
I separate the 14 frames and result is 14 files XX.pal.c and XX.raw.c
I use gba mode 4 and if i use 5 or 6 frame it's ok when i compil (Visual HAM 2.42) , if i use the 14 frames, the result is a white screen.

#13989 - tepples - Sat Dec 27, 2003 12:27 am

It looks like something's going into RAM that should have gone into ROM. If you are converting your graphics to assembly or object file, you should put them in section .rodata; if you are converting your graphics to C (which is not recommended), make sure they're const. Can you paste the beginning and the end of your graphics converter's output?

And if you're compiling for multiboot, switch to ROM-based if your binary is larger than 240 KB.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#14006 - jma - Sat Dec 27, 2003 6:51 am

swels wrote:
Result, a white screen in VisualGBA.

I'd hate to state the obvious (or ask the obvious), but did you set a valid graphics mode?

Jeff
_________________
massung@gmail.com
http://www.retrobyte.org

#14013 - swels - Sat Dec 27, 2003 11:42 am

It's exactly what i use :
Convertion of gfx in C, with Const definition. I understand what you say, i separate my gfx off my source, and make it in with .rodata section.
Thanks.[/code]

#14088 - batblaster - Mon Dec 29, 2003 4:04 pm

Check The MULTIBOOT Option if you have it remove... To use the MULTIBOOT you need to manage correctly..
_________________
Batblaster / 7 Raven Studios Co. Ltd
------------------------------------------