ZScript: Unknown REGT value passed to EmitPARAM

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.
Post Reply
User avatar
Player701
 
 
Posts: 1636
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

ZScript: Unknown REGT value passed to EmitPARAM

Post by Player701 »

The following ZScript will trigger a VM abort when the "give testinv" command is issued via the console:

Code: Select all

class TestInv : Inventory
{
    override bool TryPickup(in out Actor toucher)
    {
        Console.Printf("TestString".CharAt(0));

        GoAwayAndDie();
        return false;
    }
}

Code: Select all

TestInv.TryPickup: Unexpected JIT error: Unknown REGT value passed to EmitPARAM
VM execution aborted: tried to read from address zero. In function parameter "self"
Called from Inventory.CallTryPickup at gzdoom.pk3:zscript/actors/inventory/inventory.zs, line 603
Called from Actor.GiveInventory at gzdoom.pk3:zscript/actors/inventory_util.zs, line 90
Called from PlayerPawn.CheatGive at gzdoom.pk3:zscript/actors/player/player_cheat.zs, line 258
Called from StringStruct.CharAt [Native]
Called from TestInv.TryPickup at zscript.txt:ZSCRIPT, line 5
This should either work as expected or not compile at all.

Tested with GZDoom 4.0.0 and g4.1pre-41-g1090c4b34.
Attachments
zscript.txt
(197 Bytes) Downloaded 20 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ZScript: Unknown REGT value passed to EmitPARAM

Post by Graf Zahl »

Post Reply

Return to “Closed Bugs [GZDoom]”