Post Reply 
VSMX File Format
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,047.4430
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 444.3840
Offline
Post: #21
RE: VSMX File Format
(08/02/2011 05:55 PM)ffffu Wrote:  Thanks for your help but I am still unsucessful or perhaps I am decompiling wrong!
By the way, don't use the decompile function - it's highly experimental and probably will break.  You should only use the decode function.
And also, please explain what you mean by "unsuccessful" - what exactly happens?

(08/02/2011 05:55 PM)ffffu Wrote:  Here are the images showing what I did:
http://imgur.com/y1sxL
http://imgur.com/VdvbF
Please don't change the file signature like you did in the second image.  It's not an RCO file.

Hope that helps.
08/02/2011 07:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,047.4430
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 444.3840
Offline
Post: #22
RE: VSMX File Format
At home now.
Uhh, kung ffffu..., isn't the file you gave identical to this one?
I've already done a manual decompile for that...
09/02/2011 04:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ffffu
Neophitic Presence

Posts: 4.2053
Threads: 0
Joined: 7th Feb 2011
Reputation: 0
E-Pigs: 1.0005
Offline
Post: #23
RE: VSMX File Format
Coul you tell me the details on how to decompile it using raf_script?

Also I have been testing others vsmx files which works but it gives after it says:
Reading VSMX...
Writing decoded output...
Warning Unknown ID 0x4a at line 140
Warning Unknown ID 0x4d at line 185
Warning Unknown ID 0x49 at line xxx

and many other warning of 0x4d and 0x49 but is always mostly 0x49 then when I get it decoded on the file some parts say unknownid and when I try to reencode it will look different of because of the id!

Right now What I am trying to achieve is to change the time input of the boot logo on the ps3 and that is why I saw on the file that you can add more files to i, making it look as if it were a gif file or more time of presentation!

If you can help thanks
09/02/2011 06:25 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,047.4430
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 444.3840
Offline
Post: #24
RE: VSMX File Format
(09/02/2011 06:25 AM)ffffu Wrote:  Coul you tell me the details on how to decompile it using raf_script?
You can't.  raf_script is a compiler, not a decompiler.
There isn't any (decent) decompiler in existence to my knowledge.  I manually decompiled the script before.

(09/02/2011 06:25 AM)ffffu Wrote:  Also I have been testing others vsmx files which works but it gives after it says:
Reading VSMX...
Writing decoded output...
Warning Unknown ID 0x4a at line 140
Warning Unknown ID 0x4d at line 185
Warning Unknown ID 0x49 at line xxx

and many other warning of 0x4d and 0x49 but is always mostly 0x49 then when I get it decoded on the file some parts say unknownid and when I try to reencode it will look different of because of the id!
From memory, they _should_ be the same.  That is, decode » encode (with no modifications) should give the same script, even with unknowns (not all cases, since some references may need to be considered).
How do you know it's different?
09/02/2011 07:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ffffu
Neophitic Presence

Posts: 4.2053
Threads: 0
Joined: 7th Feb 2011
Reputation: 0
E-Pigs: 1.0005
Offline
Post: #25
RE: VSMX File Format
(09/02/2011 07:22 PM)ZiNgA BuRgA Wrote:  From memory, they _should_ be the same.  That is, decode » encode (with no modifications) should give the same script, even with unknowns (not all cases, since some references may need to be considered).
How do you know it's different?

Because after you have decoded them the unknown id get written on the file itself if you reencode and go take a look in your hex editor you will see the comparison between each vsmx, and you will see that the data changed, so it will not be the same anymore
09/02/2011 07:27 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,047.4430
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 444.3840
Offline
Post: #26
RE: VSMX File Format
Somewhat depends how the data is changed.
Even if it knows everything, things may still be changed by a simple decode » encode.  This is because the ordering of the string table may be varied by Rcomage's vsmxenc function.  It doesn't functionally change the script, but it won't be a byte-for-byte match.
09/02/2011 10:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
eustolio
Neophitic Presence

Posts: 4.5100
Threads: 0
Joined: 9th May 2011
Reputation: 0
E-Pigs: 0.8222
Offline
Post: #27
RE: VSMX File Format
(20/01/2011 06:52 PM)ZiNgA BuRgA Wrote:  If you're interested, here's a decompiled version of the script, which compiles with raf_script and gives very similar output:
mr ZINgA, may explain the method used to decompile?
*attacked file for example (heavy rain decode script)


Attached File(s)
.txt  hr.txt (Size: 18.95 KB / Downloads: 189)
09/05/2011 09:31 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,047.4430
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 444.3840
Offline
Post: #28
RE: VSMX File Format
I did it manually.  Rcomage does also have a VSMX decompile option (rcomage vsmxdec --decompile) but it's very buggy and usually doesn't work right.  However, it may be able to produce some semi-readable output.
09/05/2011 03:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
eustolio
Neophitic Presence

Posts: 4.5100
Threads: 0
Joined: 9th May 2011
Reputation: 0
E-Pigs: 0.8222
Offline
Post: #29
RE: VSMX File Format
I understand, I mean the js code that you are writ in this post: 17

Thanks!
(This post was last modified: 12/05/2011 08:29 AM by eustolio.)
12/05/2011 08:27 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,047.4430
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 444.3840
Offline
Post: #30
RE: VSMX File Format
As I said, I manually looked through the decoded output and figured out the underlying JS code.
I've somewhat explained how the format works in the first post of this thread - you can attempt to reverse engineer the JS code from there if you wish.
12/05/2011 03:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: