XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Apr 23, 2018 8:39 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Rebellious Million Arthur Tool + Research
PostPosted: Mon Apr 16, 2018 12:47 am 
Offline
veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 113
Has thanked: 9 times
Have thanks: 93 times














You can make the ads go away by registering

UPDATE

I was able to finish my tool, thanks to AceWell figuring out the encryption key. Now it can load the skeleton too. Also it seems to work fine with Onmyoji and Crusaders of Light too, at least for the mobile versions.

Here is a preview of the program.

Image

Load your file/folder from the "File" menu. Select the model from the list. Export it as OBJ or IQE (skinned).
How to open/convert IQE: viewtopic.php?p=138153#p138153

For getting the textures read the posts below.

Download: http://www.mediafire.com/file/apsb6siy9 ... er_Upd.rar

Example exported model:

Image


Last edited by akderebur on Wed Apr 18, 2018 4:31 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Rebellious Million Arthur Tool + Research
PostPosted: Mon Apr 16, 2018 3:20 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1073
Has thanked: 2098 times
Have thanks: 585 times
akderebur wrote:
I have absolutely no idea for the textures. I put some random files that aren't related to model/skeleton in the "other" folder. They might be the textures but I am not sure.

yeah they're textures, but they have some light encryption i think, at least in the 128 byte header.
unfortunately encryption is not my area outside of simple xoring so i don't know any more to say. :(

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Rebellious Million Arthur Tool + Research
PostPosted: Mon Apr 16, 2018 9:08 am 
Offline
veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 113
Has thanked: 9 times
Have thanks: 93 times
AceWell wrote:
they have some light encryption i think, at least in the 128 byte header.

I see, that actually makes sense. I wasn't able to find anything useful in the character headers, so that would explain it.

Thanks for taking a look, at least I know which files to focus on now. Encryption isn't my forte either, but I will give it a try.

Edit :

I guess I won't go much further with the encryption. It might be easier trying to get the textures manually, without the header info. I tried using the TextureFinder, but wasn't fully successful.

It looks like something if I select block compression, but couldn't get the texture properly. Any idea what the image/pixel format might be?

Image


Top
 Profile  
 
 Post subject: Re: Rebellious Million Arthur Tool + Research
PostPosted: Mon Apr 16, 2018 3:11 pm 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1073
Has thanked: 2098 times
Have thanks: 585 times
being from a mobile game is a good chance they're using some type of mobile compression,
you can open the raw data in PVRTextool and test various formats.

edit
now i see this byte pattern in the encrypted headers and it is looking like xor based on the results :D
Code:
7A 7B 7C 7D 7E 7F 80 81 82 83 84 85 86 87 88 89
8A 8B 8C 8D 8E 8F 90 91 92 93 94 95 96 97 98 99
9A 9B 9C 9D 9E 9F A0 A1 A2 A3 A4 A5 A6 A7 A8 A9
AA AB AC AD AE AF B0 B1 B2 B3 B4 B5 B6 B7 B8 B9
BA BB BC BD BE BF C0 C1 C2 C3 C4 C5 C6 C7 C8 C9
CA CB CC CD CE CF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9
DA DB DC DD DE DF E0 E1 E2 E3 E4 E5 E6 E7 E8 E9
EA EB EC ED EE EF F0 F1 F2 F3 F4 F5 F6 F7 F8 F9


using that key reveals a ktx format header and first 4 rows of image data
Code:
AB 4B 54 58 20 31 31 BB 0D 0A 1A 0A 01 02 03 04
00 00 00 00 01 00 00 00 00 00 00 00 78 92 00 00
08 19 00 00 00 04 00 00 00 04 00 00 00 00 00 00
00 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00
00 00 10 00 FF 00 00 00 00 00 00 00 0D 57 B7 62
EE 00 EE 00 FF 00 00 00 00 00 00 00 0D 57 B7 62
EE EE EE EE FF 00 00 00 00 00 00 00 0D 57 B7 62
EE EE EE EE FF 00 00 00 00 00 00 00 0D 57 B7 62


bms script to fix the samples
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get SIZE asize
get NAME basename
string NAME + .ktx
math SIZE - 0x80
filexor "\x7A\x7B\x7C\x7D\x7E\x7F\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9"
log NAME 0x0 0x80
append
filexor ""
log NAME 0x80 SIZE


00000372.ktx opened and converted to png with "Mali Texture Compression Tool" :D

the original size is actually 1024x1024 i just scaled it down to fit under the max attachment size. :]


Attachments:


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


_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Rebellious Million Arthur Tool + Research
PostPosted: Mon Apr 16, 2018 3:45 pm 
Offline
veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 113
Has thanked: 9 times
Have thanks: 93 times
Incredible! Thank you very much. I just need to get the skeleton now.


Top
 Profile  
 
 Post subject: Re: Rebellious Million Arthur Tool + Research
PostPosted: Wed Apr 18, 2018 1:05 am 
Offline
veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 113
Has thanked: 9 times
Have thanks: 93 times
I am done with the tool, and updated my original post. Thank you again AceWell, that encryption key was really necessary for getting the skeleton.

I hope double post is okay in this situation. I wanted to bump, since it is an update :D


Top
 Profile  
 
 Post subject: Re: Rebellious Million Arthur Tool + Research
PostPosted: Fri Apr 20, 2018 1:43 pm 
Offline
veteran

Joined: Mon Sep 22, 2014 1:23 am
Posts: 98
Has thanked: 38 times
Have thanks: 7 times
Thanks. I was able to get the models with no problems.

I'm kinda wondering where are the textures? Which NPK are they located?
And... are they in a different format or they are in .dat as well?


Top
 Profile  
 
 Post subject: Re: Rebellious Million Arthur Tool + Research
PostPosted: Sat Apr 21, 2018 2:24 pm 
Offline
veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 113
Has thanked: 9 times
Have thanks: 93 times
lolwatt wrote:
I'm kinda wondering where are the textures? Which NPK are they located?
And... are they in a different format or they are in .dat as well?

They are also inside the character.npk. From what I see they also have the extension ".dat". Still lot of the files seem to have that extension, so it is best to check them inside a hex editor.

My tool scans the files and finds the ones related to models, then it decrypts the header if necessary. It has no support for textures, so you would need to use AceWell's script for them. They will be proper ktx files after that and you can open them with Mali Texture Compression Tool.

Since there are no file names, I imagine it would be hell trying to find which texture file is the one matching the model. I don't know if there is any other way than doing it manually.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 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