Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to parse blueprint #3

Open
AR2000AR opened this issue Nov 30, 2024 · 0 comments
Open

Fail to parse blueprint #3

AR2000AR opened this issue Nov 30, 2024 · 0 comments

Comments

@AR2000AR
Copy link

The dump command return this error
Ammo.txt

$ dspbptk dump N_Mall/Ammo.txt 
Traceback (most recent call last):
  File "/home/ar2000/.local/bin/dspbptk", line 62, in <module>
    mc.run(sys.argv[1:])
  File "/home/ar2000/Documents/Programmation/Python/dspbptk/MultiCommand.py", line 120, in run
    parseresult.cmd.action(parseresult.cmd.name, parseresult.args)
  File "/home/ar2000/Documents/Programmation/Python/dspbptk/BaseAction.py", line 25, in __init__
    self.run()
  File "/home/ar2000/Documents/Programmation/Python/dspbptk/ActionDump.py", line 33, in run
    bpd = bp.decoded_data
  File "/home/ar2000/Documents/Programmation/Python/dspbptk/Blueprint.py", line 78, in decoded_data
    return BlueprintData.deserialize(self._data)
  File "/home/ar2000/Documents/Programmation/Python/dspbptk/BlueprintData.py", line 245, in deserialize
    building = BlueprintBuilding.deserialize(data, offset)
  File "/home/ar2000/Documents/Programmation/Python/dspbptk/BlueprintData.py", line 194, in deserialize
    fields = cls._BLUEPRINT_BUILDING.unpack_head(data, offset)
  File "/home/ar2000/Documents/Programmation/Python/dspbptk/NamedStruct.py", line 49, in unpack_head
    return self.unpack(data[offset : offset + self._struct.size])
  File "/home/ar2000/Documents/Programmation/Python/dspbptk/NamedStruct.py", line 44, in unpack
    values = self._struct.unpack(data)
struct.error: unpack requires a buffer of 61 bytes

Python 3.10.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant