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

Unable to create VPKs over 4GB in size #31

Open
chloecormier opened this issue Nov 7, 2022 · 0 comments
Open

Unable to create VPKs over 4GB in size #31

chloecormier opened this issue Nov 7, 2022 · 0 comments

Comments

@chloecormier
Copy link

I was looking to use this tool for my project. We have a large number of assets, with our materials alone surpassing 6GB. I used the CLI tool to attempt to create a VPK from a folder, and received this error after the file had surpassed 4GB in size:

Traceback (most recent call last):
  File "/home/ccormier/.local/bin/vpk", line 8, in <module>
    sys.exit(main())
  File "/home/ccormier/.local/lib/python3.10/site-packages/vpk/cli.py", line 207, in main
    run(args)
  File "/home/ccormier/.local/lib/python3.10/site-packages/vpk/cli.py", line 171, in run
    create_vpk(args)
  File "/home/ccormier/.local/lib/python3.10/site-packages/vpk/cli.py", line 166, in create_vpk
    new_vpk.save(args.file)
  File "/home/ccormier/.local/lib/python3.10/site-packages/vpk/__init__.py", line 162, in save
    f.write(struct.pack("IHHIIH", checksum & 0xFFffFFff,
struct.error: 'I' format requires 0 <= number <= 4294967295

If this is a strict format limitation, it'd probably be better to not attempt VPK creation and instead warn the user.

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