Posted: Sun Aug 20, 2006 5:46 pm
GeeWiz, don't have a cow. (See what I did? <_<)
But seriously, don't lose your cool.
But seriously, don't lose your cool.
Code: Select all
import mmap
import os
import sys
import zlib
f = open("Data.wz", "rb")
start = 0
f.seek(0, 2)
size = f.tell()
f.seek(0)
obj = zlib.decompressobj()
buf = ""
while start < size:
offset = start
obj = zlib.decompressobj()
buf = ""
try:
while offset < size:
d = obj.decompress(f.read(1))
if len(obj.unused_data) > 0:
break
buf += d
offset += 1
except zlib.error, details:
if str(details) == "Error -3 while decompressing: invalid stored block lengths" and len(buf) > 0:
print start
start += 1
f.seek(start)
continue
print start
start += 1
f.seek(start)
f.close()
singga wrote:that means:terasonic wrote:Meds wrote:With HexWorkshop, find and load your .wz file. Next push Ctrl+F, and find 40056 16bit unsigned. (Find all instances, little endian)
When it's done finding all the offsets, then right click on the addresses and select Copy All
Now, open Vedit. Save the file first, name it anything you want. Paste the addresses that you copied.
Now go up to the very first line of the file, highlight everything until the end of '2' (ie, ' 2 ') copy that. Now search and replace all ' 2 ' with nothing. Save the file into the same folder with maplox.exe.
Open a cmd, goto your dir, and type maplox.exe all lol mapdump whatever.wz
I playing stap 3. But I don't know this mean.. 'Now search and replace all ' 2 ' with nothing'.
serch '2' and replace 'speace'?
Delete all '2'?
you search "2"
and don't tap anythings in replace~~~~~
But i don't know the last step :
dir maplox.exe all lol mapdump whatever.wz
is there any taping mistake in my DOS?
please help me
Code: Select all
C:\> cd random folder 1
C:\Random Folder 1>cd where i keep geewiz
C:\Random Folder 1\Where I keep GeeWiz\>maplox.exe all lol mapdump whatever.wz
You already know the compressed size. Wouldn't it be better to modify the script so that it will skip over the gzip data? I mean you know that there won't be any other gzip header information within the gzip data block.Meds wrote:HexWorkshop outputs ~50 offsets/sec, it's the fastest solution.
Oh My Godsssssh~~~themoviefund wrote:singga wrote:that means:terasonic wrote:
I playing stap 3. But I don't know this mean.. 'Now search and replace all ' 2 ' with nothing'.
serch '2' and replace 'speace'?
Delete all '2'?
you search "2"
and don't tap anythings in replace~~~~~
But i don't know the last step :
dir maplox.exe all lol mapdump whatever.wz
is there any taping mistake in my DOS?
please help meCode: Select all
C:\> cd random folder 1 C:\Random Folder 1>cd where i keep geewiz C:\Random Folder 1\Where I keep GeeWiz\>maplox.exe all lol mapdump whatever.wz
Code: Select all
dir C:\Wizet>Maple
Code: Select all
import os
def makepng():
status = 0
dr = 0
while status != -2:
cr = '%d'%dr
cmd='"C:\\Program Files\\XnView\\nconvert.exe" -D -out png -o '+cr+'_png/%.png '+cr+'/*'
try:
status = os.system(cmd)
except:
continue
dr+=1000
##:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::##
def deldir():
dc = 0
dl = 1
while dl:
ch = os.listdir('%d'%dc)
try:
if ch[0]>1:
dl = 1
else:
os.system('rmdir %d'%dc+' /q')
except:
os.system('rmdir %d'%dc+' /q')
dl = 1
dc +=1000
makepng()