WarZ Server Setup Guide



Code:

# War Inc. Battle Zone (script 0.1.1) # script for QuickBMS http://quickbms.aluigi.org getdstring SIGN 4 if SIGN != "arfl" print "you must open only the first file, WO_00.bin" cleanexit endif get VER long get DUMMY long get FILES long get SIZE long get DUMMY long savepos OFFSET comtype unzip_dynamic clog MEMORY_FILE OFFSET SIZE SIZE comtype zlib get PACK_EXT extension get PACK_BASENAME basename string PACK_BASENAME >>= "_" math LAST_PACK = -1 for i = 0 < FILES getdstring NAME 260 MEMORY_FILE get TYPE byte MEMORY_FILE get PACK byte MEMORY_FILE get OFFSET long MEMORY_FILE get SIZE long MEMORY_FILE get ZSIZE long MEMORY_FILE get CRC long MEMORY_FILE getdstring DUMMY 0x12 MEMORY_FILE math PACK += 1 if PACK != LAST_PACK string PACK_NAME p= "%s_%02d.%s" PACK_BASENAME PACK PACK_EXT open FDSE PACK_NAME 1 math LAST_PACK = PACK endif math OFFSET += 4 # arfd if TYPE == 2 clog NAME OFFSET ZSIZE SIZE 1 elif TYPE == 1 log NAME OFFSET SIZE 1 else print "unknown TYPE %TYPE%, contact me" cleanexit endif next i