-
Notifications
You must be signed in to change notification settings - Fork 23
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
Cross-Platform Filepaths #35
Comments
Hey there! You're welcome, this was a fun little project to work on when StarCraft II was just released. All of the files I used to test At this point changing this behavior would be a big breaking change. It would have to be released as a new major version. If you're interested in developing a PR for this, I'd start with looking at: Lines 262 to 271 in 6bfba18
It could be as simple as calling |
Thanks for the reply! Yes, I think it's as easy as the implementation you describe. I'm using this on SC2Map files created by DeepMind for use as minigames in reinforcement learning tasks - maybe it's unique to those files, but I would have expected many SC2Map files have a similar issue. For instance, for the "CollectMineralShards" minigames, after extraction on my Mac:
Those backslashed paths are actually single files - remarkably, when repacking directories like this (with mpqtool written in Rust) the maps work on SC2 both when these backslashed files are used and when I manually "repair" the directory structure. The only issue is that on Windows these are invalid filenames. It also appears on Windows that an exception is thrown when these maps are unpacked at file creation as one would expect. |
Hello,
Thanks for this tool! It still chugs along extracting Blizzard files :)
It appears when run on a Unix platform that files get extracted into single files concatenating subdirectory names with Windows separators e.g. a single file called
A\B\file.xml
. I'm not sure if that's due to Windows convention inside the particular files I have or if that's a universal property of MPQs.It seems desirable to have a normal directory tree get extracted from that (and then to support recompressing from that normal directory tree).
Does the problem as I describe make sense? Would PRs for this functionality be of interest?
Thank you!
The text was updated successfully, but these errors were encountered: