[Linux?] Square bracket characters in pk3s not recognized

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [Linux?] Square bracket characters in pk3s not recognized

Re: [Linux?] Square bracket characters in pk3s not recognize

by Gez » Fri Nov 13, 2020 4:19 am

This option is off by default AFAIK. It was added because Doomsday Engine needs it; while the default behavior is to do what ZDoom expects.

Re: [Linux?] Square bracket characters in pk3s not recognize

by Graf Zahl » Fri Nov 13, 2020 4:18 am

What's the point of that option? AFAIK no Doom port needs it.

Re: [Linux?] Square bracket characters in pk3s not recognize

by plums » Fri Nov 13, 2020 1:51 am

Oh weird, it was just SLADE. Good to know though, thanks.
Oddly, the ^ frames got percent-encoded too, but loaded fine...

EDIT: In case anyone else experiences this problem and sees this post: In SLADE, go to Preferences -> General -> uncheck "Use percent encoding if needed outside of Wad Archives"

Re: [Linux?] Square bracket characters in pk3s not recognize

by Graf Zahl » Fri Nov 13, 2020 1:32 am

Yes, this looks like a ZIP tool producing DOS-safe file names. Nothing that can be fixed on the engine side.

Re: [Linux?] Square bracket characters in pk3s not recognize

by Player701 » Fri Nov 13, 2020 1:13 am

There are no [ or ] characters in your sprite names. Both 7-Zip and Windows Explorer show me filenames starting with "VILE%5". Probably a quirk of your ZIP archiver, but I'm not sure. It doesn't look like a GZDoom bug to me.

[Linux?] Square bracket characters in pk3s not recognized

by plums » Fri Nov 13, 2020 12:59 am

GZDoom 4.5.0, 64-bit build on Linux.

Trying to load a pk3 with [ or ] for sprite frames results in an error, for example:

R_InstallSpriteLump: Bad frame characters in lump VILE%5E8

The frame doesn't get loaded. There isn't a problem with those frames when they're loaded from a wad.

Using [ or ] elsewhere also gives problems, for example in Decorate sprite definitions. I can't easily try a Windows build right now but I suspect that it might be a problem only in Linux.

Here's a test pk3 with an arch-vile recoloured red. (Walking frames omitted to meet the filesize limits.)
Attachments
filenametest.pk3
(236.41 KiB) Downloaded 19 times

Top