Users browsing this thread: 4 Guest(s)
[TUTORIAL] Making BMS Scripts; Post and get help with your BMS scripts!
#68
(03-14-2016, 02:07 PM)ThatTrueStruggle Wrote:
(03-14-2016, 01:34 PM)Telespentry Wrote: May I request a really simple script? Basically, by trimming off the header, this file is just 00000000000000filehere00000000000000filehere000000000000000 with a variable number of zeros but at least 15 I would say. The 0s are actual text for some strange reason with the bytes being 30s. Would this be simple to make? The file names are in plaintext and in order so I will manually add them.

If you could, could you please add a sample?

(03-13-2016, 06:25 PM)beastedot9 Wrote: Hello again, sorry to be a bother, I've been looking at these files from WWE 2K16:

https://mega.nz/#!U95TwDJa!xXdR0iMsbD5Nu...Cs1KC59CxQ

What's there is a regular pac file and then its a zlib compressed PACH but it doesn't seem like regular zlib(so basically an archive within an archive). I was wondering if anyone had any clue as to how begin writing a script for this and if its even possible?

The data that I do know:

- Headers of the .pac files are always either "EPK8" or "EPAC".
- Next value long is always null
- Then another long value which seems to be the size of the archive (or possibly offset?)
- The names of the archvies always start at offset x00000800 and the data itself always starts at offset x00004000.

Apart from that, I have no idea how to open the zlib compressed ones. Any help is appreciated Smile
I can take a look real quick Cute

EDIT: Here you go!
Code:
comtype zlib
getdstring IDString 0x4
if IDString == "PACH" || IDString == "EPK8"
    findloc PACH string "PACH" 0 ""
    goto PACH
    idstring "PACH"
    get FCOUNT long
    for i = 0 < FCOUNT
        findloc OFFSET string "ZLIB0" 0 ""
        get NAME basename
        string NAME += i
        string NAME + ".dec"
        goto OFFSET
        idstring "ZLIB0"
        getdstring NONE 0x3
        get SIZE long
        get ZSIZE long
        savepos OFFSET
        clog NAME OFFSET SIZE ZSIZE
        math OFFSET + SIZE
        goto OFFSET
    next i
else
    cleanexit
endif
I see some very interesting things in the decompressed files; textures and models ;3 Have fun.

Thank you for this, will be really helpful! I really appreciate it Smile
Reply
Thanked by:


Messages In This Thread
RE: [Tutorial] Making BMS Scripts - by Saeid0034 - 03-21-2020, 05:17 AM
RE: [Tutorial] Making BMS Scripts - by justdancer - 07-02-2016, 01:53 AM
RE: [Tutorial] Making BMS Scripts - by dionn1993 - 07-10-2019, 12:06 AM
RE: [Tutorial] Making BMS Scripts - by SKYHAMSTER - 08-06-2020, 06:06 AM
RE: [Tutorial] Making BMS Scripts - by Yarcaz - 11-18-2015, 08:19 AM
RE: [Tutorial] Making BMS Scripts - by Shade - 11-18-2015, 05:31 PM
RE: [Tutorial] Making BMS Scripts - by Yarcaz - 11-18-2015, 05:04 PM
RE: [Tutorial] Making BMS Scripts - by Hallow - 12-22-2015, 06:59 PM
RE: [Tutorial] Making BMS Scripts - by Hallow - 12-22-2015, 10:42 PM
RE: [Tutorial] Making BMS Scripts - by TGE - 12-24-2015, 08:14 PM
RE: [Tutorial] Making BMS Scripts - by Hallow - 12-24-2015, 08:57 PM
RE: [Tutorial] Making BMS Scripts - by nobody231 - 12-24-2015, 09:01 PM
RE: [Tutorial] Making BMS Scripts - by TGE - 12-25-2015, 06:36 AM
RE: [TUTORIAL] Making BMS Scripts; Post and get help with your BMS scripts! - by beastedot9 - 03-14-2016, 05:00 PM

Forum Jump: