by Edward-san » Sun Jan 13, 2019 5:24 am
When you 'use' the tnt crate, you will pick it up, and then with 'attack' you'll drop it. Since some time (maybe since VM?), the drop will result in this vm abort error:
(vm_jit 1 version)
Code: Select all
VM execution aborted: Weapon.A_Lower called without valid caller. Weapon expected
Called from PlayerPawn.FireWeapon at gzdoom.pk3:zscript/shared/player.txt, line 357
Called from PlayerPawn.CheckWeaponFire at gzdoom.pk3:zscript/shared/player.txt, line 425
Called from PlayerPawn.TickPSprites at gzdoom.pk3:zscript/shared/player.txt, line 513
Called from PlayerPawn.PlayerThink at gzdoom.pk3:zscript/shared/player.txt, line 1642
Called from state CrateWeapon.18
Called from PlayerInfo.SetPSprite [Native]
(vm_jit 0 version, appears a bit different)
Code: Select all
VM execution aborted: Weapon.A_Lower called without valid caller. Weapon expected
Called from state CrateWeapon.18
Called from PlayerInfo.SetPSprite [Native]
Called from PlayerPawn.FireWeapon at gzdoom.pk3:zscript/shared/player.txt, line 291
Called from PlayerPawn.CheckWeaponFire at gzdoom.pk3:zscript/shared/player.txt, line 359
Called from PlayerPawn.TickPSprites at gzdoom.pk3:zscript/shared/player.txt, line 447
Called from PlayerPawn.PlayerThink at gzdoom.pk3:zscript/shared/player.txt, line 1449
To test this fast, you can use 'summon tntcrate' on the first map.
Note: I could test +vm_jit 0 only on 3.7 branch because of an assertion error on the master branch (reported
here).
When you 'use' the tnt crate, you will pick it up, and then with 'attack' you'll drop it. Since some time (maybe since VM?), the drop will result in this vm abort error:
(vm_jit 1 version)
[code]
VM execution aborted: Weapon.A_Lower called without valid caller. Weapon expected
Called from PlayerPawn.FireWeapon at gzdoom.pk3:zscript/shared/player.txt, line 357
Called from PlayerPawn.CheckWeaponFire at gzdoom.pk3:zscript/shared/player.txt, line 425
Called from PlayerPawn.TickPSprites at gzdoom.pk3:zscript/shared/player.txt, line 513
Called from PlayerPawn.PlayerThink at gzdoom.pk3:zscript/shared/player.txt, line 1642
Called from state CrateWeapon.18
Called from PlayerInfo.SetPSprite [Native]
[/code]
(vm_jit 0 version, appears a bit different)
[code]
VM execution aborted: Weapon.A_Lower called without valid caller. Weapon expected
Called from state CrateWeapon.18
Called from PlayerInfo.SetPSprite [Native]
Called from PlayerPawn.FireWeapon at gzdoom.pk3:zscript/shared/player.txt, line 291
Called from PlayerPawn.CheckWeaponFire at gzdoom.pk3:zscript/shared/player.txt, line 359
Called from PlayerPawn.TickPSprites at gzdoom.pk3:zscript/shared/player.txt, line 447
Called from PlayerPawn.PlayerThink at gzdoom.pk3:zscript/shared/player.txt, line 1449
[/code]
To test this fast, you can use 'summon tntcrate' on the first map.
Note: I could test +vm_jit 0 only on 3.7 branch because of an assertion error on the master branch (reported [url=https://forum.zdoom.org/viewtopic.php?f=2&t=63255&p=1087403#p1087403]here[/url]).