Excellent work Jizza on the tool great share bro :)








Excellent work Jizza on the tool great share bro :)
Did you try editing the GPD before decompressing the data? If so then you probably fucked something up.
Edit:
I just looked at your GPD and tried to open it in the Spec Ops tool and I see the error it gives. I also tried to open it in my GPD Tool and it gives the same error. I don't know why but your GPD is corrupt. Did you maybe try to edit something in it before? If so, then you corrupted it.
Welcome back Jizz :)
## If you don't Contribute || Help - Why should I Contribute || Help - Leechers Should not be helped ##









It's the destination byte() you have when using MiniLZO.Decompress. You need to read the uint32 of the compressed file at 0. Once you have that create the destination byte array with that size.
Private Function Decompress(ByVal buffer as byte()) as Byte()
'Declare your Reader(buffer, isBig=true)
Reader.Position = &H0
Dim decompressedSize = Reader.ReadUInt32()
Reader.Position = &H4
Dim sourceData = Reader.ReadBytes(Reader.BaseStream.Length - &H4)
Dim destinationData = New Byte(decompressedSize) {}
MiniLZO.Decompress(sourceData, destinationData)
return destinationData
End Function