Users browsing this thread: 1 Guest(s)
Crash The Wrath Of Cortex Model Ripping HELP!
#9
(12-05-2015, 02:34 AM)ThatTrueStruggle Wrote:
(12-05-2015, 01:19 AM)harley201 Wrote:
(12-05-2015, 12:29 AM)ThatTrueStruggle Wrote: I wrote a BMS script to extract the files. Use it with QuickBMS Tongue
Code:
endian big //seems like idstrings are little endian but other values are big endian
idstring "0CSG"
get fileSize long
idstring "LBTN"
savepos RelativePos
get fileLengthPos long
xmath fileLengthPos "RelativePos + fileLengthPos"
get fileStart long
savepos RelativePos
xmath fileStart "RelativePos + fileStart"
savepos fileTableStart
i = 0
do
    savepos fileTableStart
    get fileNames[i] string
    xmath i "i + 1"
while fileTableStart != fileStart

x = i
i = 0
for i = 0 < x
    goto fileStart
    get magicID long
    get fileSize long
    savepos RelativePos
    log fileNames[i] fileStart fileSize
    xmath fileStart "fileSize + fileStart"
next i

script's note:
This is a pretty crappy script, it does a lot to achieve so little lol
Strange, I did everything correct but I got a error stating "Error: invalid command"xmath" or arguments -1 at line 7" I will see what the problem is but I bet I will fail to find it

Do you have the newest version of QuickBMS?
I think so. But I will re-download again

(12-05-2015, 11:12 AM)harley201 Wrote:
(12-05-2015, 02:34 AM)ThatTrueStruggle Wrote:
(12-05-2015, 01:19 AM)harley201 Wrote: Strange, I did everything correct but I got a error stating "Error: invalid command"xmath" or arguments -1 at line 7" I will see what the problem is but I bet I will fail to find it

Do you have the newest version of QuickBMS?
I think so. But I will re-download again

Ok somehow I had version 0.5 no wonder I couldn't get it to work at all
Reply
Thanked by:


Messages In This Thread
RE: Crash The Wrath Of Cortex Model Ripping HELP! - by harley201 - 12-05-2015, 11:12 AM

Forum Jump: