Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Kloki38

GZDoom VM execution aborted

Recommended Posts

Hello !

 

I made a cannon which the player can drop by switching to another weapon.  In old versions of GZDoom it works fine, but in the recent 3.7.2 when I try to drop the cannon it shows these messages:

 

bandicam-2019-04-06-19-33-17-789.jpg

 

Here is the deselect code:

 

      TNT1 A 0 A_Lower
      TNT1 A 0 A_SpawnItemEx("cannon", 40, 0, 15, 5, 0, 0, 0,SXF_TRANSFERTRANSLATION)
      TNT1 A 0 A_takeinventory("cannon")
      TNT1 A 0 A_takeinventory("ballammo")
      TNT1 A 0 A_TakeInventory("speed",0,0,AAPTR_DEFAULT)

 

Am I doing something wrong or is the latest GZDoom screwed up (again) ?

Share this post


Link to post

You are running states on your "cannon" after removing it from the inventory. This was previously undefined behavior but with the new VM it cannot return to a stable state anymore. You should switch around your lines so that A_TakeInventory("cannon") is the last thing being called

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×