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.

Graphics > (ME again..) gfx2gba troubleshooting

#25353 - Fatnickc - Sat Aug 21, 2004 12:46 pm

Oh, No...
When I use GFX2GBA now, I type:
gfx2gba -D -fsrc -pfilename.pal -t1 filename.bmp
and it then displays:

gfx2gba (v1.03, Nov 28 2001) - www.gbacode.net

Usage: gfx2gba infile outfile [-15]|[-8] [-v] [-w n] [-s n] [-n name]
[-c] [-t type] [-r]|[-o] [-k] [-z n]
[-q type] [-b] [-p file] [-m]
Where:
-15 15 bit, convert to 15 bit BGR format, default
-8 8 bit, convert to 8 bit format
-v verbose
-w n width, number of entries of data array per line, default = 8
-s n size, size in bytes of each entry, must be 1, 2 or 4, default = 1
-n name name, C variable name
-c C types, use standard C types instead of common GBA types
-t type type, type of data array, default depends on the following:
-s 1 => u8; with -c => unsigned char
-s 2 => u16; with -c => unsigned short int
-s 4 => u32; with -c => unsigned int
-r RGB cube, create standardized RGB cube 8 bit palette, default
-o optimal, create optimal 8 bit palette
-k no const, do not use the const modifier for type of data array
-z n sprite, output in GBA sprite/tile format
-z 256 => 256 colors x 1 palette, default
-q type quantizer, specify quantizer to create optimal 8 bit palette
-q wu => Wu's quantizer, default
-q nn => neural net quantizer
-b binary, write image data out to a binary file
-p file palette, write palette data out to a binary file
-m merge, merge palette data, use with -p option
-h help, displays this message

FreeImage image library (v2.4.2)
FreeImage is an open source image library supporting all common
bitmap formats. See http://www.6ixsoft.com for more details.

C:\Documents and Settings\Nick> .
Yet, when I check the folder i directed it to in the filename, it does not appear (the new file). Is this because I have not created a .pal file yet? I thought it does that automatically. Help?

#25359 - dagamer34 - Sat Aug 21, 2004 4:09 pm

Ohh... man, I am going to save you some trouble in the long run with other stuff.

DO NOT HAVE SPACES IN YOUR PATH.

Your welcome. Oh, and use a frontend. There are plenty on the main page.
_________________
Little kids and Playstation 2's don't mix. :(

#25361 - Fatnickc - Sat Aug 21, 2004 4:20 pm

If i remove all spaces (but I have to leave one after gfx2gba, else it doens't work) It still doesn't give me the files... just give me a nice example of exactly what to write, please!
P.S thanks for your continued help, dagamer34.
I used to use very different things for my GBA coding, so I can do tonnes of coding, but just using new tools after getting used to old ones...
Talking of which, anyone need any tiny little bits of help in their gbadev 2004 compo entry?

#25362 - dagamer34 - Sat Aug 21, 2004 4:24 pm

Fatnickc wrote:
If i remove all spaces (but I have to leave one after gfx2gba, else it doens't work) It still doesn't give me the files... just give me a nice example of exactly what to write, please!
P.S thanks for your continued help, dagamer34.
I used to use very different things for my GBA coding, so I can do tonnes of coding, but just using new tools after getting used to old ones...
Talking of which, anyone need any tiny little bits of help in their gbadev 2004 compo entry?


I've never used the DOS part of Gfx2GBA. I don't want to spend more time converting graphics than I do coding.

Frontend! Frontend! :)
_________________
Little kids and Playstation 2's don't mix. :(

#25363 - CATS - Sat Aug 21, 2004 4:53 pm

well for one, where did the -D flag come from?

#25365 - Fatnickc - Sat Aug 21, 2004 5:05 pm

Well, CATS, the method suggested by you didn't seem to work so, when i googled it, i found a tutorial with a nice section on it that had that code.
And, Dagamer34, I will use the frontend, if you tell me EXACTLY how to, every single thing. That is why I am not using it!!
Maybe, soon enough, I might be holding the banner for frontend!

#25366 - Fatnickc - Sat Aug 21, 2004 5:09 pm

P.S when I read my posts, I think it sounds like I am sort of getting at people, but I am not, really.

#25368 - Fatnickc - Sat Aug 21, 2004 5:17 pm

I downloaded an older version of GFX2GBA (Suits my needs, anyway) And it works perfectly. I did take out the -D cause I had no idea what it did, and it works. Yay.
Thanks

#25374 - tepples - Sat Aug 21, 2004 5:51 pm

dagamer34 wrote:
I've never used the DOS part of Gfx2GBA. I don't want to spend more time converting graphics than I do coding.

And if you forget to convert a graphic again after you edit it in an image editor, your build will use outdated data. Then what?

Makefiles prevent this.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.