ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Sep 24, 2018 11:35 pm

All times are UTC




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sat May 19, 2018 2:55 pm 

Joined: Mon Apr 30, 2018 12:39 pm
Posts: 25
How to decode this files? It's text. Attached are encoded file and PC version of same file. I think that decoded PS3 file should look like PC file.
Thanks for help.


Attachments:
daddy.stape.ps3.pc.rar [2.62 KiB]
Downloaded 14 times
Top
   
PostPosted: Sat May 19, 2018 5:34 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8831
pc is json, ok.
In my opinion the ps3 file is not a binary json, rather a binary version of the file in which the fields are constants.
If it was a sort of "binary json" you should have been able to see the field names like "SlotClip" instead there you have a Guid followed by the values of the various fields in sequential order.
For example 315699129 (in pc) is 0x12d12fb9 which is available at offset 0x904 of ps3 in big endian.

Lame parsing example in quickbms, no file output obviously, just displayed info:
Code:
debug 1

endian big

goto 0x10
get ENTRIES long
for i = 0 < ENTRIES
    get __class long
    get ENTRY_SIZE long
    get Id long
    get TrackId long
    get IsActive long
    get StartTime long
    get Duration long
    get Bpm float
    callfunction GET_NAME 1 Signature
    callfunction GET_NAME 1 Guid
next i

getdstring ZERO 12

get TapeClock long
get TapeBarCount long
get FreeResourcesAfterPlay long
callfunction GET_NAME 1 MapName

startfunction GET_NAME
    get NAMESZ long
    getdstring NAME NAMESZ
endfunction


Top
   
PostPosted: Sat May 19, 2018 6:20 pm 

Joined: Mon Apr 30, 2018 12:39 pm
Posts: 25
Could that file be edited then encoded to original state?

Edit: I'm trying to change audio. Here are files in audio folder (https://drive.google.com/open?id=1DZvVK ... AITsNYEoTX)
I figure out to how to modify .wav.ckd. Now I somehow from other files edit duration of the song, beats per minute etc. I don't know in which files it is exactly.


Top
   
PostPosted: Sat May 19, 2018 8:56 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8831
You have to edit it by hand, that script simply tells you the content of the fields and their offsets.
The script seems to work with all the files you provided (except wav.ckd "RAKI" obviously)


Top
   
PostPosted: Sun May 20, 2018 9:20 am 

Joined: Mon Apr 30, 2018 12:39 pm
Posts: 25
All values seem to be same for all songs, even BPM. Either there is an issue or I'm misreading something.
I added more samples.

I edited songs, but because there are ambient sounds before songs start I need to change songs starting time. According to PC files it is stored in songname_musictrack.tpl.ckd. Using script I opened PS3 files but there isn't nothing that tells it.


Attachments:
songname_musictrack.rar [1.48 KiB]
Downloaded 8 times
stape.ckd.rar [2.79 KiB]
Downloaded 6 times
Capture.PNG [8.52 KiB]
Downloaded 2 times
Top
   
PostPosted: Mon May 21, 2018 3:36 pm 

Joined: Mon Apr 30, 2018 12:39 pm
Posts: 25
So, in the end is there any way to edit PS3 files? So, I can exactly specify song start, end and bpm.


Top
   
PostPosted: Mon May 21, 2018 4:54 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8831
As you can imagine I can't make a custom script for every custom compiled ckd file, what I provided was just an example to show you that the data is stored in a certain way and it can be read and manually edited with some patience.

With a hex editor and the pc json files you should be able to find the necessary fields by hand, remember that bpm is float


Top
   
PostPosted: Mon May 21, 2018 5:17 pm 

Joined: Mon Apr 30, 2018 12:39 pm
Posts: 25
This answered a lot of questions. But why are all values same for all song, although they can't be? Are all values constant float and if they are how to
translate real world numbers to those ones?


Top
   
PostPosted: Mon May 21, 2018 7:06 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8831
StartTime and Duration were ever different, while Bpm was ever 131 in the ckd files you provided (those with the same format of the script obviously).


Top
   
PostPosted: Mon May 21, 2018 7:34 pm 

Joined: Sun Nov 12, 2017 12:30 pm
Posts: 52
Have you tried the Child of Light swuforce script? If I'm not mistaken, the extension is the same.


Top
   
PostPosted: Tue May 22, 2018 1:55 pm 

Joined: Mon Apr 30, 2018 12:39 pm
Posts: 25
Only common extension is .ckd, while in Child of Light it is .isg.ckd in Just Dance it is .stape.ckd, .isc.ckd, .tpl.ckd. Just Dance PS3 files aren't compatible with that tool, but maybe others releases on other platforms may be compatible.


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

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited