Open dekiel123 opened 2 years ago
Can you send that obb, it appears that something is wrong with it. It tries to read from an empty subfile...
https://drive.google.com/file/d/116_ie7IY_b1weguPvfXX1egJ5ATU-PYK/view?usp=sharing
I need all files from "PACKAGES" in this obb, can you help me get this?
I'll try when you've given me access to the file. I can't promise anything, some mods just don't want to be messed with.
Done, try now.
See, the size in column 5 is set to 0. I'm going to check if I'm using a work-around already.
OK, they've just bypassed my work-around:
RSG_SIZE = RSG_IMAGE_DATA_OFFSET + RSG_COMPRESSED_IMAGE_DATA_SIZE
Both are set to zero in their file (column 12 and 13 respectively)
So it becomes this:
RSG_SIZE = max(RSG_DATA_OFFSET + RSG_COMPRESSED_DATA_SIZE, RSG_IMAGE_DATA_OFFSET + RSG_COMPRESSED_IMAGE_DATA_SIZE)
Which version are you currently using?
This is what I currently have extracted: main.483.com.ea.game.pvz2_roE.obb.zip
This is another problem, they use rtid encoded keys & one encrypted RTON.
OK, that's also tackled, that just leaves this one file: I have no idea what \x83\x84 is supposed to mean.
This is what I currently have extracted: main.483.com.ea.game.pvz2_roE.obb.zip
Thank you so much! That will help me a lot :)
Here's the almost complete archive (Just missing pirate33.rton): main.483.com.ea.game.pvz2_roE.obb.zip In the next beta the problem will be resolved.
What even is this? (Rough translation from Google Translate)
OK, they've just bypassed my work-around:
RSG_SIZE = RSG_IMAGE_DATA_OFFSET + RSG_COMPRESSED_IMAGE_DATA_SIZE
Both are set to zero in their file (column 12 and 13 respectively) So it becomes this:RSG_SIZE = max(RSG_DATA_OFFSET + RSG_COMPRESSED_DATA_SIZE, RSG_IMAGE_DATA_OFFSET + RSG_COMPRESSED_IMAGE_DATA_SIZE)
Which version are you currently using?
Beta version.
..... May i ask you once again for help with other OBB? There is exacly the same problem "unpack requires a buffer of 4 bytes". https://drive.google.com/file/d/1-uDaPaaOUOgyQrhGz_8jARkKS98F_uxL/view?usp=sharing
You can use the latest version of the beta, but be quick before I break the script again: https://github.com/Nineteendo/PVZ2tools/tree/beta
Thank you :)
After the latest update, problem returned:
error while extracting G:\PVZ2tools-beta\Shuttle 1\main.18.com.ea.game.pvz2_shu.obb:__BuildOn971ByCz__: unpack requires a buffer of 4 bytes
Traceback (most recent call last):
File "G:\PVZ2tools-beta\unpack.py", line 246, in rsg_extract
IMAGE_DATA_OFFSET = unpack("<I", file.read(4))[0]
struct.error: unpack requires a buffer of 4 bytes
After the latest update, problem returned:
error while extracting G:\PVZ2tools-beta\Shuttle 1\main.18.com.ea.game.pvz2_shu.obb:__BuildOn971ByCz__: unpack requires a buffer of 4 bytes Traceback (most recent call last): File "G:\PVZ2tools-beta\unpack.py", line 246, in rsg_extract IMAGE_DATA_OFFSET = unpack("<I", file.read(4))[0] struct.error: unpack requires a buffer of 4 bytes
I'll check & compare with the previous version. Did the obb update?
Can you share me the latest version? It works fine for the previous version I downloaded.
Yes there was a new update. https://drive.google.com/file/d/1v42Yl0nxb42z2ok24jno-q35olc45iHY/view?usp=sharing
Are you using the latest version of PyVZ2? https://github.com/Nineteendo/PVZ2tools If that still fails you can use the beta: https://github.com/Nineteendo/PVZ2tools/tree/beta
Any idea what to do?