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 > running gfx2gba

#103056 - cppdungeon - Mon Sep 18, 2006 11:27 pm

How do you run gfx2gba? i mean how do you get to and run the program in the command prompt.
_________________
"in Soviet Russia, car pimps you!"

#103059 - tepples - Mon Sep 18, 2006 11:36 pm

If you're unfamiliar with the Windows command prompt, the FAQ mentions some DOS tutorials that should help.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#103067 - cppdungeon - Tue Sep 19, 2006 12:19 am

unfortunately, that doesent say anything about running a program on a file. i know how to change directories and such, i just dont know how to use gfx2gba
_________________
"in Soviet Russia, car pimps you!"

#103075 - tepples - Tue Sep 19, 2006 1:25 am

If you don't know the syntax of gfx2gba, have you tried any of the following?
  • gfx2gba --help
  • gfx2gba -h
  • gfx2gba -?
  • gfx2gba /?

If you don't know how to use a program when the program and the document are in different folders, have you learned about the PATH environment variable?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#103269 - chewtoy11 - Wed Sep 20, 2006 2:29 pm

Required reading for understanding gfx2gba:


    All information about tiled-modes
    gfx2gba --help


Basically, this is how most people use it:

This method outputs C/C++ source files for the palette and image data:
gfx2gba -t8 -fsrc image.bmp

If you want assembly includes:
gfx2gba -t8 -fasm image.bmp

The -t8 specifies that tiles are 8x8 in size. Another useful switch is -ppalettefilename

You can use wildcards too, but if you have it convert more than one image, you should make sure that the images are all using the same palette.

#108279 - Peter - Tue Nov 07, 2006 1:52 pm

You could also take a look at the readme file for a list of all its parameters.