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 > apLib problems

#23362 - ProblemBaby - Sat Jul 10, 2004 5:23 pm

Hi

Iam trying to compress my graphics with apLIB but I cant uncompress it!!
I have copied the depack code to my project then I do like this:

aP_depack(TileData, (u8 *)&g_BackgroundDataMem[Offset]);

Whats wrong plz help

#23389 - tepples - Sun Jul 11, 2004 6:15 pm

Quote:
Whats wrong plz help

Good question. What is wrong? "Can't" doesn't help us help you solve your problem unless you quote the error message or describe the incorrect behavior.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#23514 - ProblemBaby - Wed Jul 14, 2004 3:40 pm

Oh first off my map and tile raw files looks wrong
iam using gfx2gba
if I use the aplib savemode the map raw looks right
but still not the tile raw.
(Ive also tested it and it is wrong)
the map data is 1198 bytes big with -ap
but I should be 1200 and it is with -aps

I dont know if iy maybe is a bug in gfx2gba or if Ive to choose something more here is my command line:

gfx2gba -m -MM -fraw -St.gfx -c16 -b0 -ap -Z -t8 -pLogo.pal -q -oD:\Projekt\GBA\Spel\UBF\GFX "D:\Projekt\GBA\Spel\UBF\GFX\BMP\Logo.bmp"

its made by the frontEnd bu JeoyBell.
Something more that Ive to tell?