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

Name is invalid error for file in TundraExploration, seemingly in CJK locales #3342

Closed
ZCM8848 opened this issue Mar 20, 2021 · 7 comments · Fixed by #3345
Closed

Name is invalid error for file in TundraExploration, seemingly in CJK locales #3342

ZCM8848 opened this issue Mar 20, 2021 · 7 comments · Fixed by #3345
Labels
Bug Core (ckan.dll) Issues affecting the core part of CKAN

Comments

@ZCM8848
Copy link

ZCM8848 commented Mar 20, 2021

Background

  • Operating System: windows10 home edition(x64)
  • CKAN Version: v1.30.0
  • KSP Version: 1.10.1.2939

Have you made any manual changes to your GameData folder (i.e., not via CKAN)?

no

Problem

Describe the bug
Can not install "Tundra Exploration - Stockalike Dragon V2 and Falcon 9 3.3.0 (spacedock.info, 130.2 MiB)"

Steps to reproduce
When it finishes downloading the mod, an error window will appear.

Screenshots (if applicable)
CCAGG0L${5H0Z)6$CPZAB`T(1)

CKAN error code (if applicable):

PLACE CODE HERE !
@DasSkelett
Copy link
Member

Same error as KSP-CKAN/NetKAN#8315. Unfortunately that issue has been closed by the reporter with a very unhelpful comment.

Interestingly, this time it's again with a Chinese locale.

@ZCM8848 can you try downloading and extracting the file manually? Does that work?
https://spacedock.info/mod/223/Tundra%20Exploration%20-%20Stockalike%20Dragon%20V2%20and%20Falcon%209/download/3.3.0

@ZCM8848 ZCM8848 closed this as completed Mar 20, 2021
@ZCM8848 ZCM8848 reopened this Mar 20, 2021
@ZCM8848
Copy link
Author

ZCM8848 commented Mar 20, 2021

I tried to download the zip file separately before, and when decompressing it, the winrar software did not report any errors. it looks everything is OK. But the game cannot load the mod.
I also tried to install this mod by CKAN manually. ckan showed no error.but the mod just wasn't there.

@DasSkelett
Copy link
Member

Thanks. Can you try again with this debug build of ckan.exe?
It is compiled with a newer version of SharpZipLib, the library we use to handle and extract zip files.
With a lot of luck this is a bug in that library and already solved in newer versions.
ckan.zip

@HebaruSan HebaruSan changed the title [Bug]A Metadata issues Name is invalid error for file in TundraExploration Mar 21, 2021
@HebaruSan HebaruSan changed the title Name is invalid error for file in TundraExploration Name is invalid error for file in TundraExploration, seemingly in CJK locales Mar 21, 2021
@ZCM8848
Copy link
Author

ZCM8848 commented Mar 22, 2021

@DasSkelett
Thanks for your sharing, I received the debug build of CKAN. And I had just use it to install that mod
But the same thing happened again......
屏幕截图 2021-03-22 184207

@DasSkelett
Copy link
Member

Thanks for your sharing, I received the debug build of CKAN. And I had just use it to install that mod
But the same thing happened again......

That doesn't look like you used the debug build, it shows "v1.30.0" in the title bar, which is the version number of the ckan.exe from the release. My debug build should show v1.30.1.
Did you accidentally mix up the two files? Can you try again, this time making sure you use the debug build I uploaded?

@ZCM8848
Copy link
Author

ZCM8848 commented Mar 22, 2021

Thanks for your sharing, I received the debug build of CKAN. And I had just use it to install that mod
But the same thing happened again......

That doesn't look like you used the debug build, it shows "v1.30.0" in the title bar, which is the version number of the ckan.exe from the release. My debug build should show v1.30.1.
Did you accidentally mix up the two files? Can you try again, this time making sure you use the debug build I uploaded?

Sorry about that. I accidentally mix up the two files😅
In CKAN v1.30.1, it still shows the same situation.
屏幕截图 2021-03-22 224907
This also happens even I switch the language of CKAN to english.

@HebaruSan
Copy link
Member

Might as well include here that netkan has been emitting the same error for certain mods:

image

@DasSkelett traced this to a setting in SharpZipLib that controls whether filenames are interpreted in Unicode, which is off by default (!!). Hopefully enabling that setting will solve both problems.

@HebaruSan HebaruSan transferred this issue from KSP-CKAN/NetKAN Apr 10, 2021
@HebaruSan HebaruSan added Bug Core (ckan.dll) Issues affecting the core part of CKAN labels Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Core (ckan.dll) Issues affecting the core part of CKAN
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants