Skip to content

Instantly share code, notes, and snippets.

View dantarion's full-sized avatar

Eric "dantarion" Sheppard dantarion

View GitHub Profile
//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;
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)
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):
Update Player1
Update Player2
Update Player1
Update Player2
Update Player1
Update Player2
Update Player2
Update Player1
Update Player2
Update Player1
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
@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