Page 1 of 1

Touhou Card Monsters

Posted: Mon Mar 04, 2013 6:30 am
by finale00
This engine seems to be used in several games.
I don't know what engine it is lol but they all had similar directory structure and configuration file.

I looked through the pak archive and it sort of looks like it is just XOR'd with a 64-byte key since some sections had repeating bytes, but running it through xor didn't produce anything nice. It might be different 64-byte keys for each file, I don't know.

Anyways here's the exe and some other stuff along with a sample archive
Hopefully the key isn't too hard to get and is the same for all of the files..

http://www.mediafire.com/?jt0fskfv18bri53

Here are the names of the other games that use the same engine if anyone is interested

東方蒼神縁起
東方百鬼合戦

Re: Touhou Card Monsters

Posted: Mon Mar 04, 2013 8:24 am
by Ekey
First 4 bytes - Table Size. Algo in attach.

See also (very similar)

Code: Select all

http://en.wikipedia.org/wiki/Mersenne_twister
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/C-LANG/c-lang.html
http://www.stephencalenderblog.com/?p=181
http://www.cplusplus.com/forum/beginner/79754/

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37573
http://code.google.com/p/keel4all/source/browse/trunk/keel_grt/dllmain.cpp?spec=svn2&r=2

Re: Touhou Card Monsters

Posted: Tue Mar 05, 2013 12:29 am
by finale00
Thanks, the algorithm look too bad. And the C reference lol :)

Re: Touhou Card Monsters

Posted: Sat Feb 15, 2014 6:38 pm
by Ekey
Done. Tool for unpack here