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.

Beginners > how to use gfx2gba?

#174683 - ericd3742 - Thu Jul 08, 2010 9:45 pm

how exactly do i use gfx2gba? ive been reading this chapter of a book (http://www.aaronrogers.com/ham/Books/PTGBA/GBA_05.pdf), and at about page 30, it starts getting into bitmaps.

some step by step insrtuctions on how to use gfx2gba would be useful, because this book expects me to know a few terms that i dont (like root directory) and also expects me to have a few things on my computer. i keep trying to do what it says, but every time i enter anything in command prompt it says "gfx2gba isnt recognized".

again, i would like some step by step instuctions to putting a bitmap into a c-array.

thanks!

#174685 - headspin - Thu Jul 08, 2010 9:51 pm

I suggest you get Command Prompt Here so you can right click to open a command prompt in Windows Explorer. It will not be able to find gfx2gba if it's not in the same folder.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#174687 - ericd3742 - Thu Jul 08, 2010 10:56 pm

headspin wrote:
I suggest you get Command Prompt Here so you can right click to open a command prompt in Windows Explorer. It will not be able to find gfx2gba if it's not in the same folder.


...what?
ill try your link, but i already have command prompt. im pretty sure its a standard on all computers with windows

*update*
if i wasnt as clear as i shouldve been, ill try to describe what ive been doing.

if you double click on my C:\ drive, you will see lots of folders. one is named "gfx". inside that folder is a copy of gfx2gba.exe, bg.bmp (a 256 color bitmap, 240x160), and a shortcut to command prompt. what ive been doing is opening command prompt from the shortcut, and-withcout closing the folder-i type into command prompt "gfx2gba -fsrc -c32k bg.bmp". everytime i do this, the command prompt says that gfx2gba is not recognized. once more, my goal is to get my bitmap into a c-array, so that it can be put in a game through HAM.

thanks!


Last edited by ericd3742 on Thu Jul 08, 2010 11:11 pm; edited 1 time in total

#174688 - headspin - Thu Jul 08, 2010 11:09 pm

ericd3742 wrote:

...what?
ill try your link, but i already have command prompt. im pretty sure its a standard on all computers with windows


No, what it does it open a command prompt in the folder your right click on in Windows Explorer. You select "Open Command Prompt Here" from the context menu. It saves you having to open up the Command Prompt and then CD to the directory to run gfx2gba. The reason it can't find the file is probably because you're not CD'ed (current directory) to the folder containing gfx2gba.exe.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#174689 - ericd3742 - Thu Jul 08, 2010 11:12 pm

headspin wrote:
ericd3742 wrote:

...what?
ill try your link, but i already have command prompt. im pretty sure its a standard on all computers with windows


No, what it does it open a command prompt in the folder your right click on in Windows Explorer. You select "Open Command Prompt Here" from the context menu. It saves you having to open up the Command Prompt and then CD to the directory to run gfx2gba. The reason it can't find the file is probably because you're not CD'ed (current directory) to the folder containing gfx2gba.exe.


ok, that makes more sense, but i cant seem to find the download anywhere on that site

#174690 - genecyst - Thu Jul 08, 2010 11:13 pm

i suggest you to try using usenti [url]http://www.gbadev.org/tools.php?showinfo=86[/url] instead, it's easier for someone who's not familiar with command prompt.

#174691 - ericd3742 - Thu Jul 08, 2010 11:17 pm

no thanks, the original suggestion worked pretty well.