VMU Save File Icon Data Array Format; Help Needed

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
Rizzoislandgame
DCEmu Junior
DCEmu Junior
Posts: 44
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sat Dec 30, 2017 4:03 pm
Has thanked: 0
Been thanked: 0

VMU Save File Icon Data Array Format; Help Needed

Post by Rizzoislandgame »

So I'm making a VMU save file icon and I need some help with the settings when converting a bmp to a byte array.
I need to know how to properly export my code from either photoshop or GIMP or use any other external program.

settings I need are:
size in per/px
Bit channel
color depth
color palette
indexing or RGB or something else
horizontal or vertical byte array
any other BMP to LCD converter settings

Here's the code that comes with Makaqu Quake. I already talked to Mankrip and he said he's forgotten how to make this work but something about making the graphic with gimp and using the proper settings then export to a text format:
#define DESC		16
#define VMAPP		DESC+32
#define ICONS		VMAPP+16
#define SPEED		ICONS+2
#define CATCH		SPEED+2
#define VMCRC		CATCH+2
#define	FSIZE		VMCRC+2
#define	RESERVED	FSIZE+4
#define PALETTE		RESERVED+20
#define ICON		PALETTE+32

#define HEADER_SIZE	128 // same as ICON
#define APP_NAME	"nxMakaqu        " // 16 characters

static uint16 icon_palette[] =
{
	0xffff,0xffff,0xfbbb,0xf888,
	0xf000,0xf880,0xf800,0x0000,
	0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000
};

static uint8 icon_bitmap[] =
{
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x11,0x11,0x10,0x00,0x00,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00,0x01,0x11,0x11,0x11,0x11,0x11,0x11,0x00,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x01,0x11,0x23,0x31,0x11,0x11,0x33,0x21,0x11,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x11,0x23,0x44,0x42,0x11,0x12,0x44,0x43,0x21,0x10,0x00,0x00,0x00,
	0x00,0x00,0x01,0x12,0x44,0x44,0x43,0x11,0x13,0x44,0x44,0x42,0x11,0x00,0x00,0x00,
	0x00,0x00,0x11,0x24,0x44,0x44,0x44,0x21,0x24,0x44,0x44,0x44,0x21,0x10,0x00,0x00,
	0x00,0x00,0x12,0x44,0x44,0x44,0x44,0x31,0x34,0x44,0x44,0x44,0x42,0x10,0x00,0x00,
	0x00,0x01,0x13,0x44,0x45,0x33,0x44,0x42,0x44,0x43,0x35,0x44,0x43,0x11,0x00,0x00,
	0x00,0x01,0x24,0x44,0x52,0x12,0x44,0x43,0x44,0x42,0x12,0x54,0x44,0x21,0x00,0x00,
	0x00,0x01,0x34,0x45,0x21,0x11,0x34,0x44,0x44,0x31,0x11,0x25,0x44,0x31,0x00,0x00,
	0x00,0x11,0x44,0x43,0x11,0x11,0x24,0x44,0x44,0x21,0x11,0x12,0x44,0x41,0x10,0x00,
	0x00,0x12,0x44,0x51,0x11,0x11,0x13,0x44,0x43,0x11,0x11,0x11,0x54,0x42,0x10,0x00,
	0x00,0x12,0x64,0x31,0x11,0x11,0x12,0x44,0x42,0x11,0x11,0x11,0x34,0x42,0x10,0x00,
	0x00,0x12,0x44,0x21,0x11,0x11,0x11,0x34,0x31,0x11,0x11,0x11,0x24,0x42,0x10,0x00,
	0x00,0x12,0x44,0x21,0x11,0x11,0x11,0x26,0x21,0x11,0x11,0x11,0x24,0x42,0x10,0x00,
	0x00,0x12,0x44,0x21,0x11,0x11,0x11,0x15,0x11,0x11,0x11,0x11,0x24,0x42,0x10,0x00,
	0x00,0x12,0x44,0x21,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x24,0x42,0x10,0x00,
	0x00,0x01,0x54,0x21,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x26,0x51,0x00,0x00,
	0x00,0x01,0x34,0x31,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x34,0x31,0x00,0x00,
	0x00,0x01,0x24,0x51,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x54,0x11,0x00,0x00,
	0x00,0x00,0x13,0x42,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x12,0x43,0x10,0x00,0x00,
	0x00,0x00,0x11,0x46,0x21,0x11,0x11,0x11,0x11,0x11,0x11,0x16,0x41,0x10,0x00,0x00,
	0x00,0x00,0x01,0x14,0x52,0x11,0x11,0x11,0x11,0x11,0x11,0x54,0x11,0x00,0x00,0x00,
	0x00,0x00,0x00,0x11,0x43,0x21,0x11,0x11,0x11,0x11,0x23,0x41,0x10,0x00,0x00,0x00,
	0x00,0x00,0x00,0x01,0x12,0x32,0x11,0x11,0x11,0x12,0x32,0x11,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00,0x01,0x11,0x11,0x11,0x11,0x11,0x11,0x00,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x11,0x11,0x10,0x00,0x00,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
Thanks for the help if anyone has anything that can help me!
"Smile for me, You're in loving hands
Don't be sad today, You can make other plans"

-Smile, Tom Rizzo
Post Reply