Page 1 of 1

[1.0.0] Fails parsing mod zip file.

Posted: Tue Oct 06, 2020 1:00 pm
by yagaodirac
https://mods.factorio.com/mod/DynamicWater
In my test, without zipping, the mod works correctly. But after I zipped it, it doesn't show in mod list. The game doesn't parse it.
Is this a bug or did I mess anything up?

Re: [1.0.0] Fails parsing mod zip file.

Posted: Tue Oct 06, 2020 1:03 pm
by boskid
Are you sure this zip file is not corrupted?
90144-a.png
90144-a.png (7.84 KiB) Viewed 1713 times
90144-b.png
90144-b.png (2.36 KiB) Viewed 1713 times

Re: [1.0.0] Fails parsing mod zip file.

Posted: Tue Oct 06, 2020 1:35 pm
by yagaodirac
boskid wrote:
Tue Oct 06, 2020 1:03 pm
Are you sure this zip file is not corrupted?

90144-a.png90144-b.png

It's not corrupted. The characters are simplified Chinese character for I'm mainlander. Sometimes we write some Chinese. Emmm.
Any way, thank you for your help. I'm gonna upload the new zip.
But, could this issue be solved in the future?

Re: [1.0.0] Fails parsing mod zip file.

Posted: Tue Oct 06, 2020 1:48 pm
by kovarex
It is preffered if the file names use the standard asci, there are lot of programs and sytems that don't support special characters, and I prefer to keep it simple.

Re: [1.0.0] Fails parsing mod zip file.

Posted: Tue Oct 06, 2020 5:49 pm
by eradicator
yagaodirac wrote:
Tue Oct 06, 2020 1:00 pm
But after I zipped it, it doesn't show in mod list.
What tool did you use to create the zip file? I used 7-zip to create a test mod with a garbage file named "坤為地は世界测验 [測驗] cèyàn 实验 [實驗].txt" and it loads fine. My guess is that corruption of zip files mostly happens when the creating program doesn't properly set the character encoding (i.e. is bugged).
kovarex wrote:
Tue Oct 06, 2020 1:48 pm
It is preffered if the file names use the standard asci, there are lot of programs and sytems that don't support special characters, and I prefer to keep it simple.
There are indeed lots of broken programs where the programmers refuse to admit they're broken. So far i didn't get the impression that factorio is one of them. UTF8 is not magic. Languages that can be properly represented with ASCII are a tiny minority.

Re: [1.0.0] Fails parsing mod zip file.

Posted: Sun Oct 11, 2020 8:55 am
by yagaodirac
kovarex wrote:
Tue Oct 06, 2020 1:48 pm
It is preffered if the file names use the standard asci, there are lot of programs and sytems that don't support special characters, and I prefer to keep it simple.
Yeah, sure, thanks. Will do.

Re: [1.0.0] Fails parsing mod zip file.

Posted: Sun Oct 11, 2020 8:56 am
by yagaodirac
eradicator wrote:
Tue Oct 06, 2020 5:49 pm
yagaodirac wrote:
Tue Oct 06, 2020 1:00 pm
But after I zipped it, it doesn't show in mod list.
What tool did you use to create the zip file? I used 7-zip to create a test mod with a garbage file named "坤為地は世界测验 [測驗] cèyàn 实验 [實驗].txt" and it loads fine. My guess is that corruption of zip files mostly happens when the creating program doesn't properly set the character encoding (i.e. is bugged).
kovarex wrote:
Tue Oct 06, 2020 1:48 pm
It is preffered if the file names use the standard asci, there are lot of programs and sytems that don't support special characters, and I prefer to keep it simple.
There are indeed lots of broken programs where the programmers refuse to admit they're broken. So far i didn't get the impression that factorio is one of them. UTF8 is not magic. Languages that can be properly represented with ASCII are a tiny minority.
I named some of the files with simplified Chinese. No idea about the reason. Anyway, I'm not gonna make this mistake anymore. Thanks.