The Forum is up for sale: XeNTaX Forum looking for new owner

Shin! Koihime Musou 2D fighter thing

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Shin! Koihime Musou 2D fighter thing

Post by finale00 »

This game is so awesome lol
http://www.youtube.com/watch?v=p78ZMu2J9sY

Anyways I believe the data files are encrypted.

Image

I've uploaded what is probably the file table.

Here's some headers for the files: http://www.mediafire.com/download/kuyc8 ... /data2.zip

http://koihi.me/pc_index.html
You do not have the required permissions to view the files attached to this post.
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1411 times

Re: Shin! Koihime Musou 2D fighter thing

Post by chrrox »

here is the xor key

Code: Select all

FF FE FD FC 0F 1F 2F
Image

LOl this is a mugen file
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1411 times

Re: Shin! Koihime Musou 2D fighter thing

Post by chrrox »

Here is the bms for these files.

Code: Select all

#quickbms sript
#真・恋姫†夢想 ~乙女対戦★三国志演義~
open FDSE data.adr
set key "0xFF 0xFE 0xFD 0xFC 0x0F 0x1F 0x2F"
get size asize
filexor key
log MEMORY_FILE 0 size
filexor ""
get files long MEMORY_FILE
get bins long MEMORY_FILE
for i = 0 < bins
get name string MEMORY_FILE
putarray 0 i name
next i
for i = 0 < files
get NAME string MEMORY_FILE
get OFFSET long MEMORY_FILE
math OFFSET * 0x800
get SIZE long MEMORY_FILE
get TMP long MEMORY_FILE
getarray FILE 0 TMP
open FDSE FILE 1
filexor key OFFSET 1
log NAME OFFSET SIZE 1
filexor ""
next i
The character sprites are swizzled but the rest of the files are fine. looks like a fairly simple swizzle.
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Shin! Koihime Musou 2D fighter thing

Post by finale00 »

Ah that's how you work with multiple files and filexor
Insanius
beginner
Posts: 30
Joined: Thu Apr 01, 2010 4:51 am
Has thanked: 2 times
Been thanked: 5 times

Re: Shin! Koihime Musou 2D fighter thing

Post by Insanius »

I'll start working on fixing the sprites.
Insanius
beginner
Posts: 30
Joined: Thu Apr 01, 2010 4:51 am
Has thanked: 2 times
Been thanked: 5 times

Re: Shin! Koihime Musou 2D fighter thing

Post by Insanius »

Ok so each tile sheet is actually four 8bit indexed sheets in one, just access a different color channel to get to them.
The palette file contains one complete 256 color palette per row, just take the colors as they are.

The SPR file contains axis data and data on how to put together the sprite tiles.

Header (8 Bytes)
4 bytes - Number of sheets
4 bytes - Number of sprites

Sprite Header (20 Bytes)
2 bytes - Group# (will explain later)
2 bytes - Spr# (will explain later)
2 bytes - Width in tiles
2 bytes - Height in tiles
2 bytes - X Axis
2 bytes - Y Axis
2 bytes - Sprite width (tile width * 32)
2 bytes - Sprite height (tile height * 32)
2 bytes - Number of tiles in this sprite
2 bytes - Palette# (Which row to use in the palette file)

Sprite Data (8 bytes per tile)
2 bytes - Sheet#
1 byte - Tile#
1 byte - Channel# (0-3, the order being ARGB)
2 bytes - Tile position X
2 bytes - Tile position Y
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1411 times

Re: Shin! Koihime Musou 2D fighter thing

Post by chrrox »

Nice job that makes sense.
i saw the textures were aligned by multiples of 32 that makes sense.
Post Reply