No .map and .pal files generated.
Posted: Tue Jul 17, 2012 1:08 pm
Hey all,
I just started out ND programming and was messing around with the NightFox library for graphics.
I am trying to convert a bmp file into .img, .map and .pal files so I can have them shown in the rom. However when I run the conversion, I only get a .img file.
The following code is used in a bat file:
I have my bmp file located in the bmp folder, the only thing I get in the backgrounds folder is the .img file.
I don't get any errors (I turned echo on to check) so I'm not sure what's up with it. According to the parameters given to grit.exe it should in fact generate a pal and map file, but it doesn't.
Any ideas?
I just started out ND programming and was messing around with the NightFox library for graphics.
I am trying to convert a bmp file into .img, .map and .pal files so I can have them shown in the rom. However when I run the conversion, I only get a .img file.
The following code is used in a bat file:
Code: Select all
@echo on
cls
del backgrounds\*.img
del backgrounds\*.map
del backgrounds\*.pal
del h\*.h
grit.exe bmp\*.bmp -g -gTFF00FF -m -mRtf -mLs -p -ftb
for /f "delims==" %%F in ('dir /b *.bin') do ren "%%~nxF" "%%~nF"
move *.img backgrounds
move *.map backgrounds
move *.pal backgrounds
move *.h h
pause
exit
I don't get any errors (I turned echo on to check) so I'm not sure what's up with it. According to the parameters given to grit.exe it should in fact generate a pal and map file, but it doesn't.
Any ideas?