xnb texture

Textures, recreate headers, conversions, algorithms and parsing of image files
ISKA
Posts: 223
Joined: Mon Apr 09, 2018 11:09 pm

xnb texture

Post by ISKA »

Hi, we have completed a game localization that use Microsoft XNA engine and started testing. We have to edit fonts o our language but we didn't open font files. Can anyone make a tool that export/import texture files, or it exists such tool?
mrmemmo_
Posts: 46
Joined: Sat Mar 16, 2019 1:21 pm

Re: xnb texture

Post by mrmemmo_ »

compression lz4
mrmemmo_
Posts: 46
Joined: Sat Mar 16, 2019 1:21 pm

Re: xnb texture

Post by mrmemmo_ »

char Magic[4];
short Version;
int FileSize;
int UnCompressSize;
byte Data[FileSize - 0xE];
ISKA
Posts: 223
Joined: Mon Apr 09, 2018 11:09 pm

Re: xnb texture

Post by ISKA »

mrmemmo_ wrote:char Magic[4];
short Version;
int FileSize;
int UnCompressSize;
byte Data[FileSize - 0xE];
So you could make tool for this? Because I don't know about this stuff. I just want to edit fonts.
ISKA
Posts: 223
Joined: Mon Apr 09, 2018 11:09 pm

Re: xnb texture

Post by ISKA »

I decompress font with quickbms script.
https://www8.zippyshare.com/v/WjP0nhcc/file.html
mrmemmo_
Posts: 46
Joined: Sat Mar 16, 2019 1:21 pm

Re: xnb texture

Post by mrmemmo_ »

width height begin at 0x3B
int width;
int height;
int numTex; ??
int sizeBitmap;
byte bitmap[sizeBitmap];

type bitmap is rgba32