Created
April 14, 2014 20:13
-
-
Save RomanKharin/10679348 to your computer and use it in GitHub Desktop.
Quick BMS Script - Petka-1 quest .str unpacker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# str files (petka-1 quest) | |
# script for QuickBMS http://quickbms.aluigi.org | |
idstring "\x53\x74\x4f\x52" | |
get OFFSET long | |
goto OFFSET | |
get FILES long | |
# index | |
for i = 0 < FILES | |
# skip unused bytes | |
get UNUSED long | |
get STRPOS[i] long | |
get STRSZ[i] long | |
next i | |
# filenames | |
for i = 0 < FILES | |
get STRFN[i] string | |
next i | |
# extract | |
for i = 0 < FILES | |
log STRFN[i] STRPOS[i] STRSZ[i] | |
next i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment