Folder loading mostly broken

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

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.
User avatar
Xeotroid
Posts: 443
Joined: Sat Jun 23, 2012 7:44 am
Graphics Processor: nVidia with Vulkan support
Location: Czech Rep.

Folder loading mostly broken

Post by Xeotroid »

Starting with devbuild g4.12pre-232-gf20bbd418 and persisting in pre-242-g4273af800, a folder often cannot be directly loaded, throwing an error when processing text files. There is no issue when loading a .zip file. Running on 64-bit Windows 10 22H2. I've tried saving the files with different line endings (\r only, \n only in addition to Windows standard \r\n) in case that's relevant, but it made no difference.
Attached is an example .pk3 that can show off several errors:
Invalid data encountered for texture (project path)/:textures/test.png

Script error, "(project path)/:textures.txt" line 1:
Texture definition expected, found '‰PNG
TEXTURES in question:

Code: Select all

texture "test_tex", 96, 96 {
	Patch "textures/test.png", 0, 0 { }
}
There is a MAP01 using the texture, it works fine when loaded from a .pk3

If TEXTURES is removed, the ZScript file is attempted to be loaded with a different error:
Script error, "(project path)/:zscript.txt" line 1:
Unexpected identifier
Expecting end of file or 'include' or 'extend' or 'class' or 'mixin' or 'struct' or 'const' or 'enum'

Script error, "(project path)/:zscript.txt" line 1:
Unexpected character:
The ZScript file in question:

Code: Select all

version "4.11.0"

#include "zscript/exists.zs"
If I then edit the script file to the following:

Code: Select all

version "4.11.0"

class hello {
	void nothing() {
		x = 0;
	}
}
I don't get the first error, only an unexpected character error:
Script error, "(project path)/:zscript.txt" line 1:
Unexpected character:
And if I instead move the class to the included file and put the #include back in, I get an unexpected end of file error.
You do not have the required permissions to view the files attached to this post.
User avatar
vsonnier
Posts: 80
Joined: Wed Apr 10, 2019 11:22 pm
Graphics Processor: nVidia with Vulkan support

Re: Folder loading mostly broken

Post by vsonnier »

I've seen the same issue as yours, and made a Github issue out of it : https://github.com/ZDoom/gzdoom/issues/2334
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49183
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Folder loading mostly broken

Post by Graf Zahl »

closed as duplicate

Return to “Closed Bugs [GZDoom]”