SOLVED - Rocket causes VM address zero error

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Ahpiox
Posts: 98
Joined: Fri Dec 22, 2017 1:52 am

SOLVED - Rocket causes VM address zero error

Post by Ahpiox »

I decided to get back to making doom mods for once, and i get a problem.
Sometimes when player kills himself with rockets or pipebombs, VM execution aborted.
Please help, i really dont know why this is happening

Error message:
VM execution aborted: tried to read from address zero.
Called from PlayerPawn.Die at gzdoom.pk3:zscript/actors/player/player.zs, line 749
Called from Actor.A_Explode at gzdoom.pk3:zscript/actors/attacks.zs, line 601
Called from Duke_Rocket.StateFunction.2 at Nuketown.pk3:decorate, line 20
Called from state Duke_Rocket.2 in Duke_Rocket
Spoiler: Second error message
Spoiler: RPG
Spoiler: Rocket
Spoiler: Player
Last edited by Ahpiox on Sat Aug 24, 2019 9:53 am, edited 1 time in total.
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Re: Rocket causes VM address zero error

Post by Void Weaver »

XDeath:
TNT1 A 0
Stop
This one. You should use -1 tic OR define XDeath state the same as regular Death for ex. Like as:
XDeath:
Death:
<...>
User avatar
Ahpiox
Posts: 98
Joined: Fri Dec 22, 2017 1:52 am

Re: Rocket causes VM address zero error

Post by Ahpiox »

Yeah, it's all xdeath. I found it myself, but still thanks. If something goes wrong, i will write here
Post Reply

Return to “Scripting”