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.

C/C++ > backround problems

#162991 - net2525 - Wed Sep 17, 2008 10:28 pm

I'm makeing a game using visual HAM
this is my first time
I'm tring to put a backround on my thing but it never works
I do 2 codes(that was what the tutorial said)
here they are:
#include "Desktop/homebrew/backrounds/thefile(.rlf and .bmp)
the .rlf was the first line and the .bmp was the second

it says that the .rlf files were "null character(s) ignored"
and it also said "null character(s) preserved in literal"
it said them 34 times.

can someone plz tell me how to make my backround work
and also if you know what the 2 warnings are could u plz tell me, but that part is not that important.

Thx

#162994 - gauauu - Thu Sep 18, 2008 3:26 am

I'm not sure what tutorial you are using, but you can't include graphical data directly. You can use something like Usenti or Grit to convert it a usable format -- the easiest way is to convert it to C code, and then compile it and link it with your application.

#163552 - Kayvon - Sat Oct 04, 2008 9:49 pm

net2525 wrote:
#include "Desktop/homebrew/backrounds/thefile(.rlf and .bmp)


When you do that, your compiler is opening the image and expecting C++ code in text format.

If you're trying to program the DS, there's a nice tutorial that explains grit and graphics: http://patater.com/manual
I would imagine the GBA is very similar.

#163555 - silent_code - Sat Oct 04, 2008 11:17 pm

Just one word: Tonc
Look it up.
It will help.
For sure.
I mean it.
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.