Attached is an example .pk3 that can show off several errors:
TEXTURES in question:Invalid data encountered for texture (project path)/:textures/test.png
Script error, "(project path)/:textures.txt" line 1:
Texture definition expected, found '‰PNG
Code: Select all
texture "test_tex", 96, 96 {
Patch "textures/test.png", 0, 0 { }
}
If TEXTURES is removed, the ZScript file is attempted to be loaded with a different error:
The ZScript file in question: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:
Code: Select all
version "4.11.0"
#include "zscript/exists.zs"
Code: Select all
version "4.11.0"
class hello {
void nothing() {
x = 0;
}
}
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.Script error, "(project path)/:zscript.txt" line 1:
Unexpected character: