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.
06-30-2012
pureIso
Re: Spec Ops: The Line - GPD Tool
Welcome back Jizz :)
06-30-2012
JizzaBeez
Re: Spec Ops: The Line - GPD Tool
Quote:
Originally Posted by pureIso
Welcome back Jizz :)
Where did I go lol. I've been around, just observing mostly.
06-30-2012
CloudStrife7x
Re: Spec Ops: The Line - GPD Tool
Quote:
Originally Posted by JizzaBeez
Where did I go lol. I've been around, just observing mostly.
i forgot to tell you Jizza that i put an invisibility spell on you so no one but me could see you XD, anyways looks like the spell wore off lol
06-30-2012
kill_seth
Re: Spec Ops: The Line - GPD Tool
Quote:
Originally Posted by JizzaBeez
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.
Nope. I loaded up the game and reinlisted, then played one match and got to level 3. Extracted the GPD and tried to use your tool, and got that error.
Edit: I got it working on my own, using MiniLZO.
06-30-2012
JizzaBeez
Re: Spec Ops: The Line - GPD Tool
Quote:
Originally Posted by kill_seth
Nope. I loaded up the game and reinlisted, then played one match and got to level 3. Extracted the GPD and tried to use your tool, and got that error.
Edit: I got it working on my own, using MiniLZO.
So what do you think the problem is/was? It could possibly be the library that I used for the compression...
06-30-2012
kill_seth
Re: Spec Ops: The Line - GPD Tool
Quote:
Originally Posted by JizzaBeez
So what do you think the problem is/was? It could possibly be the library that I used for the compression...
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