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

illegal file magic: 0x0 #32

Open
Eleiyas opened this issue Aug 12, 2022 · 9 comments
Open

illegal file magic: 0x0 #32

Eleiyas opened this issue Aug 12, 2022 · 9 comments

Comments

@Eleiyas
Copy link

Eleiyas commented Aug 12, 2022

Game: Tower of Fantasy (2022)
UE Version: UE4 Release 4.26 CL-0

No matter what I try, I get "illegal file magic: 0x0".

I have tried downloading this Git and building the much newer source, but it failed too much, so I decided to make an issue ticket instead.

@panzi
Copy link
Owner

panzi commented Aug 12, 2022

Have you tried running it with --ignore-magic?

@Eleiyas
Copy link
Author

Eleiyas commented Aug 12, 2022

Have you tried running it with --ignore-magic?

I checked for people having similar errors to me first and I saw there was someone on Linux who was. I did indeed try the ignore-magic command at the end and the program just did nothing.

@McCovican
Copy link

I'm having a roundly similar problem. Different game - Project Wingman, UE v4.24. With the --ignore-magic for the unpack operation, it just did nothing.
So, I ran u4pak.exe info "ProjectWingman-WindowsNoEditor.pak" --ignore-magic, which just reported "0" in all fields, including pak version.
Which made me think to try u4pak.exe info "ProjectWingman-WindowsNoEditor.pak" --ignore-magic --force-version=8 which told me that v8 is... unsupported? But the project info page says 8 is fine for reading? Am I misunderstanding what version scheme the --force-version flag is expecting?
I'm at least assuming that the pak isn't encrypted, since the Project Wingman modding wiki actually points folk to u4pak.

@Xenira
Copy link
Contributor

Xenira commented Jan 31, 2023

The index should not be encrypted in any case. Pak version is correct for that ue version.
My test packages extract without poblem with pak v8.

I assume, you are using the latest version of rust-ue4pak?

I own that game, so I could look into it.

EDIT: I was wrong. Has been too long... Index can of course be encrypted.

@McCovican
Copy link

I'm using the latest version of the prebuilt binary from here, yeah ― v1.3.0 (pls don't tell me that's the problem, I don't have the braincells left to start building my own binaries again ;_; ). Latest version of the game from Steam too.
Edit: Project Wingman seems to have a fairly lively modding scene, I'd be surprised if they'd gone and encrypted the pak and the modding docs just hadn't been updated. I'm seeing new mods on Nexus from last week even.

@Xenira
Copy link
Contributor

Xenira commented Jan 31, 2023

That could actually be the problem.
I could provide you with a binary if you are unable to build yourself.

UPDATE: Just checked and that tag is really old. I think this is the most likely problem if it is not encrypted.

@panzi we should provide a new prebuild from current master

@Xenira
Copy link
Contributor

Xenira commented Jan 31, 2023

Just tested with current master branch and it works.
image

You can get the binary here: https://github.com/panzi/rust-u4pak/releases

@McCovican
Copy link

Heroic! Absolutely heroic. Thank you ever so much, that works perfectly!

@Xenira
Copy link
Contributor

Xenira commented Jan 31, 2023

Perfect, glad to here that its working.
I think this issue can be closed once we have a new build as the original issue is prob the same cause.

@Xenira Xenira mentioned this issue Jan 31, 2023
3 tasks
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

4 participants