- Load consts.pk3.
- Start a new game.
- Summon ConstsTest.
Actual result: after step 1, Fatal error:
Code: Select all
Script error, "consts.pk3:zscript.zs" line 5:
Unknown identifier 'TICRATE'
Code: Select all
version "4.0"
class MyObject play
{
int getTicrate() { return TICRATE; }
}
class ConstsTest : DoomImp
{
override void BeginPlay()
{
let o = new("MyObject");
Console.Printf("TICRATE: %d", o.getTicrate());
}
}
Severity: mods that access TICRATE directly cannot be loaded in LZDoom 3.86a.
Workaround: specify TICRATE as Thinker.TICRATE. Then the console output is the same as in GZDoom 4.4.2.
Note that Object.TICRATE gives the same fatal error.
Or maybe TICRATE isn't supposed to be accessed like that? It's defined like this:
Code: Select all
class Object native
{
const TICRATE = 35;