XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Sep 22, 2017 11:34 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Sat May 21, 2016 10:01 am 
Offline
advanced
User avatar

Joined: Mon Oct 06, 2014 7:22 am
Posts: 44
Has thanked: 1 time
Have thanks: 27 times














You can make the ads go away by registering

Sorry I'm using a mac at the moment and can't compile for windows. Did you include zlib?
Here's all the files you need to compile if anyone's having trouble: https://db.tt/6OuMv14j


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Sun May 22, 2016 6:58 pm 
Offline
ultra-n00b

Joined: Fri May 20, 2016 4:11 pm
Posts: 3
Has thanked: 1 time
Have thanks: 0 time
Thanks for the files, unfortunately it doesn't compile either. I even tried switched from Visual Studio to MinGW, maybe it's a Windows specific problem, I really don't know enough about this.

Image


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Sun May 22, 2016 11:52 pm 
Offline
advanced
User avatar

Joined: Mon Oct 06, 2014 7:22 am
Posts: 44
Has thanked: 1 time
Have thanks: 27 times
I updated it with support for windows but i can't tell if it'll compile, hope it will :)
https://db.tt/6OuMv14j


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Mon May 23, 2016 10:02 am 
Offline
ultra-n00b

Joined: Fri May 20, 2016 4:11 pm
Posts: 3
Has thanked: 1 time
Have thanks: 0 time
I was able to compile it after I linked an already compiled zlib library, I'm too much of a noob to understand why including zlib.h wasn't enough to recognize the decompress command, I always got an "undefinied reference error".

Anway, after finally having compiled it, the program still doesn't seem to work. I use it as you described on the last page: khux_decrypt "path to misc.mp4"misc.mp4 "output folder" but absoutely nothing happens.

I probably broke something in the process, hopefully someone more competent than me can chime in.
Edit: After having a deeper look at the resulting exe there really seems to be something wrong with it, so forget what I said above.

Maybe I should just try to split the process, make a script for the decryption (is this possible with QuickBMS?) and decompress the files afterwards.


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Thu Jun 02, 2016 1:47 am 
Offline
advanced
User avatar

Joined: Wed Apr 16, 2014 9:25 pm
Posts: 59
Location: In the depths of a game...
Has thanked: 1 time
Have thanks: 32 times
Yo,

So after a certain someone annoyed me enough so that I fix (and partially reprogram to be able to repack archs) this soft to be able to run on windows
here it is
http://www.govanify.com/files/khuxdecrypt/khuxdecrypt.tar.gz

files that cannot be used(so far only / file that is a filelist, present in misc.png) are renamed as @noname. khux can have VERY long filenames so windows user
should have a lite path such as C:\TEST\ pointing to the extracted files.

Here are also compiled versions both for windows and linux, not any for MACs b\c, excepted MayBeePah, who uses macs anyways ;p

http://www.govanify.com/files/khuxdecrypt/khuxdecrypt.elf
http://www.govanify.com/files/khuxdecrypt/khuxdecrypt.exe

Not making any diff/patch file but eh you have a makefile and compiled binaries, should be enough.
Not much to say, if you want to see stuff check the source.

On those words me, the white knight of the...what already?
Oh whatever with those endings, I'll just leave on those words.
-GY

_________________
The only limit I've encountered so far is my brain.

-----------------------------------------------
Ya can check my work here:
http://www.govanify.blogspot.fr
http://www.govanify.com
https://twitter.com/GovanifY


Last edited by GovanifY on Thu Jun 02, 2016 4:01 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Thu Jun 02, 2016 4:43 am 
Offline
advanced
User avatar

Joined: Mon Oct 06, 2014 7:22 am
Posts: 44
Has thanked: 1 time
Have thanks: 27 times
Thanks GovanifY for this :)

But try not to be a smart ass next time, I'm sure you didn't know everything when you started programming either.
I got the decryption algorithm though... ;)


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Thu Jun 02, 2016 11:44 am 
Offline
advanced
User avatar

Joined: Wed Apr 16, 2014 9:25 pm
Posts: 59
Location: In the depths of a game...
Has thanked: 1 time
Have thanks: 32 times
Oh sorry that was not for you xD
I was trying to port a library for my toolkit(libkirk) and had issues w/ it
I made this port in few hours, I didn't even looked at it when I posted this tweet lol
Tho I DID got mad w/ your code at a point b\c windows is just not constant(the binary
file mode) but you have a constant code style w/ spaces instead of tabs and not lines over
80 chars(just issues w/ the trailing) so tbh it was not bad coded, just few part you were missing
man doc AND windows was missing smartness

_________________
The only limit I've encountered so far is my brain.

-----------------------------------------------
Ya can check my work here:
http://www.govanify.blogspot.fr
http://www.govanify.com
https://twitter.com/GovanifY


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Thu Jun 02, 2016 12:15 pm 
Offline
advanced
User avatar

Joined: Mon Oct 06, 2014 7:22 am
Posts: 44
Has thanked: 1 time
Have thanks: 27 times
Don't worry, It just seemed coincidental that you ported my code to windows close to the day you posted your tweet

Also I haven't programmed in C in a few years, so I've forgotten a lot of windows specific code
I used C to make the code portable because i'm using Swift at the moment, which only compiles for Mac and Linux


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Thu Jun 02, 2016 1:03 pm 
Offline
advanced
User avatar

Joined: Wed Apr 16, 2014 9:25 pm
Posts: 59
Location: In the depths of a game...
Has thanked: 1 time
Have thanks: 32 times
Never used Swift and don't think I'm going to use it soon, kinda old school while talking about languages
(Let's say I surely will not use perl, rails or Go before a while while I'm using Vim Script and editing w/ Neovim :p)

As for portable code I can't blame you, windows is shit and it will stay shit for cross compilation, it deprecates libs
to make """safer""" one, changing names, is the only OS non POSIX-compliant, have its own different integration for about
all and is just badly designed. I can't tell you how much cross compiling can be a pain in the ass sometimes T_T.

As for the rest surely won't work on khux anyways, on other projects and I'm not really hot to work on the kh scene before
a while(I'm already working w/ skynism to make this anyways: https://www.youtube.com/watch?v=55p8NWpLWuQ&nohtml5=False
old trailer but tbh the best one we've produced, for specs game has been in RMXP, completely in reprogrammation w/ http://godotengine.org/
I made a custom engine out of this and will surely last for next projects, point is it's easy to use even for non devs and way better than unity/UE while
beeing free and open source(I'm kinda a libre fag on that point). By this I meant design, as for the "non dev" you still require a bit of knowledge but not
much, and UI for anims, maps and stuff we made is just awesome.)

So yeah not sure I'll fix any tools more unless someone pokes me but at least you have this one. Will post the repacker when I'll feel like it
(Might sounds like an ass but eh pretty sure it's buggy, we didn't tested it yet after all)

_________________
The only limit I've encountered so far is my brain.

-----------------------------------------------
Ya can check my work here:
http://www.govanify.blogspot.fr
http://www.govanify.com
https://twitter.com/GovanifY


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Thu Jun 02, 2016 4:52 pm 
Offline
advanced

Joined: Wed Jun 23, 2010 10:12 pm
Posts: 60
Has thanked: 18 times
Have thanks: 2 times
Thanks for compiling and fixing the windows version GovanifY, you are a godsend.

There is some really interesting stuff in there, unfortunately I can't open any image file. Since the game apparently uses lwf all images should be either lossless png or gif, but that's not the case here, instead the header contains "btf" which I couldn't find any information about that would make sense.

Are they encrypted again?

The files in the attachments should be the same, one is from the browser version, the other from the unpacked Unchained archive, both have the same file name.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Thu Jun 16, 2016 7:02 am 
Offline
ultra-n00b

Joined: Thu Jun 16, 2016 6:21 am
Posts: 3
Has thanked: 2 times
Have thanks: 0 time
Did you guys ever figure this out? I know the .lwf file refers to http://gree.github.io/lwf/ **NOT** LuraWave image files. So a lot of the animations are made that way (and the game itself is Cocos2D). But I wasn't sure how to view the individual .png files even knowing this...


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Thu Jun 16, 2016 7:31 pm 
Offline
advanced

Joined: Wed Jun 23, 2010 10:12 pm
Posts: 60
Has thanked: 18 times
Have thanks: 2 times
The btf format is most likely linked to Cocos2D, there are some bits to be found in the shared library "libcocos2dcpp.so" in the apk file, but I'm not sure that's helpful. I had no luck opening it with Cocos either.


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Mon Jun 27, 2016 8:00 am 
Offline
ultra-n00b

Joined: Thu Jun 02, 2016 5:59 am
Posts: 3
Location: United State
Has thanked: 2 times
Have thanks: 0 time
You should understand one most important thing right here that 'Kingdom Hearts Unchained' uses these two different gameplay elements:
1st) misc.mp4
2nd) misc.png
Therefore, whenever there is any kind of update then Sizes of original files get enlarged and even sometimes post-installation processes even make your files look even bigger.
:?:

_________________
instagram apk mod download | Download APK Files Online


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Wed Jun 29, 2016 7:45 pm 
Offline
advanced

Joined: Wed Jun 23, 2010 10:12 pm
Posts: 60
Has thanked: 18 times
Have thanks: 2 times
stellarren21 wrote:
You should understand one most important thing right here that 'Kingdom Hearts Unchained' uses these two different gameplay elements:
1st) misc.mp4
2nd) misc.png
Therefore, whenever there is any kind of update then Sizes of original files get enlarged and even sometimes post-installation processes even make your files look even bigger.
:?:

That's literally in the OP but thanks I guess.

I fiddled around with Cocos some more, but I can't seem to find such an optional image format. So it's probably built on top, most likely another encryption since compression wouldn't make that much sense for png files (at least I think so).


Top
 Profile  
 
 Post subject: Re: [Mobile] Kingdom Hearts Unchained file archives
PostPosted: Sun Aug 07, 2016 6:09 pm 
Offline
beginner

Joined: Sun Aug 07, 2016 1:57 am
Posts: 28
Has thanked: 3 times
Have thanks: 4 times
Okay so thanks to your amazing work, I've created a SaveFile Extractor. You grab your "Cocos2dxPrefsFile.xml" from your device and place it with the tool, then you run it and the tool will convert the save into a decoded BGAD file. (There are other tools to extract each BGAD alone as well).

Note that you can't modify the save and repack it with this tool, as to what I've understood that it's against the rules of this site.

You will need khuxdecrypt. Link to the tool on my GitHub Here.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: mik3y1982 and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group