Closed kevinkjt2000 closed 5 years ago
For reproducing: https://minecraft.curseforge.com/projects/forever-stranded-lost-souls v-1.0.4 is a pack that has 3 mods with % escaped characters in their names
seems to be apostrophes that do it. all three mods(better builder's wands, Pam's harvest craft, and tinkers' addons) that error have an apostrophe in the namespace.
I believe it is more than just apostrophes. In general, it seems to be escaping the % symbols that are already escaping something else. '
becomes %27
normally, but for some reason it is being downloaded as %2527
.
The ^
in Material+Energy^Natural+Capital-0.11.04.zip
is getting escaped to %255e
instead of %5e
too.
This also leaves empty jar files in instance directory. I can't connect to my Forever Stranded: LS server.
@loa-in- I believe the point of CMPDL is to download modpacks, not to help launch and/or connect to servers. So, it would be related to say that CMPDL fails to download special character jars because they are downloaded as empty files.
Saying you cannot connect to some server is only tangential to the purpose of CMPDL.
My point was, that the symptom was: server pack was different from client pack when using CMPDL with no clear indication why CMPDL would do that.
I have a workaround. Assumes you have another place to download the empty files, like a previous version (YMMV) or a server instance. Requires parallel
and renameutils
. Run from the mods/
directory.
find . -size 0 -print0 | xargs -0 deurlname
find . -size 0 -print0 \
| perl -pe 's/\.\///g' \
| parallel -0I'!!' 'find $MOD_SRC_DIR -name "!!" -exec cp {} . \;'
If the server is not available trough local FS, but SSH to server is available then change the last line (beware, not tested):
| parallel -0I'!!' 'scp ${SERVER}:{$MOD_SRC_DIR}/"!!" .'
EDIT: added -print0 and -0 to the first command EDIT2: missing quotes
Seems this is fixed already
I noticed that the URL below has
%2527
, when it should be left as%27