Skip to content

Instantly share code, notes, and snippets.

View dantarion's full-sized avatar

Eric "dantarion" Sheppard dantarion

View GitHub Profile
@dantarion
dantarion / BVSParser
Created December 22, 2014 17:54
Parser for Street Fighter BVS files circa 2011
import os, struct
def readStringAt(loc):
f.seek(loc)
s = ""
c = f.read(1)
while ord(c) != 0:
s = s+c
c = f.read(1)
return s
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
360 360
v0 -> v32: Pitb[Fair Landing Lag] : 21.0 => 18.0
360 360
360 353
v48 -> v80: Shulk[88] : 0x5 => 0x8
v48 -> v80: DLC1[1] : 0.0500000007451 => 0.300000011921
Update Player1
Update Player2
Update Player1
Update Player2
Update Player1
Update Player2
Update Player2
Update Player1
Update Player2
Update Player1
import os
import zlib
from struct import pack,unpack
def extractFile(filename):
f = open(filename,"rb")
f.seek(0x14)
unknown, filecount = unpack(">HH",f.read(4))
f.seek(0x60)
dirpath = filename.replace(".drp","")
if not os.path.isdir(dirpath):
def func_00():'''0x0,0x0,0x0,0x0'''
stack.append(0x0)
setVariable_1C(0x1, 0x0, 0x0)
stack.append(0x0)
setVariable_1C(0x1, 0x0, 0x1)
stack.append(0x0)
setVariable_1C(0x1, 0x0, 0x2)
//Name me btl_Define_LocalDebug.txt and put me in the script folder
//@dantarion
const Def_Dbg_LocalDebugMode = 1;
const Def_Dbg_DebugMessage = 1;
const Def_Dbg_LocalAnnounce = 1;
const Def_DbgMes_PlaySE = 1;
const Def_Dbg_KeyLog1P = 1;
const Def_Dbg_KeyLog2P = 1;
const Def_Dbg_DebugButtonMode = 1;
const Def_Dbg_DebugGauge = 1;
@dantarion
dantarion / BlazblueDecryptDecompress.py
Created July 30, 2016 15:29
BlazblueDecryptDecompress
import os, struct,zlib
import subprocess
TARGET_FOLDER = "M:\\SteamLibrary\\SteamApps\\common\\BlazBlue Chronophantasma Extend\\data\\char_e\\"
for root,dirs,files in os.walk(TARGET_FOLDER):
for filename in files:
print os.path.join(root,filename)
subprocess.call(["ggxrd_decrypter.exe",os.path.join(root,filename)],shell=True)
if os.path.isfile("out/"+filename):
os.remove("out/"+filename)
os.rename(os.path.join(root,filename)+".decrypted","out/"+filename)
{
"type": "tick",
"data": {
"speed": 1,
"inputBuffer": [
[],
[]
],
"playerState": [
{
import os,glob,zlib
def extract(filename):
from struct import unpack,pack
f = open(filename,"rb")
print f.read(4)[0:-1]
version, fileCount = unpack("hh",f.read(4))
print version,fileCount
for i in range(0,fileCount):
f.seek(0x8+i*80)
name = f.read(64).split("\x00")[0]
/* RGB */
$color1: rgba(8, 7, 5, 1);
$color2: rgba(64, 67, 78, 1);
$color3: rgba(170, 0, 0, 1);
$color4: rgba(120, 1, 22, 1);
$color5: rgba(247, 181, 56, 1);