
I was playing around with my TC (Magical Mary), jumping around the house's roof in the second level (lv1_p2). When I jumped from the upper roof to a lower one, the console suddenly appeared, saying:
Code: Select all
VM execution aborted: tried to read from address zero. In function parameter "self"
Called from Actor.TakeInventory at gzdoom.pk3:zscript/actors/inventory_util.zs, line 142
Called from ScriptUtil.TakeInventory at gzdoom.pk3:zscript/scriptutil/scriptutil.zs, line 80
Called from Actor.FindInventory [Native]
Download this archive (~84MB), extract it, then run the demo files in GZDoom to see the multiple ways I've got this bug to happen. (It's Magical Mary but with most assets removed to lower filesize.)
I do not know why GZDoom is removing the player object/actor when moving in specific ways around the roof in that map, but I do know that if you comment out "PLAYERS" in BaseGamePack1.ipk3/loadacs.txt file (disabling all of those ACS scripts), this bug stops happening, but then my TC doesn't function correctly without those scripts active.
I've searched for this error, and have read bug reports on this forum, and I've seen developers usually reply with potential fixes; If this problem is caused by my TC, please let me know how I can fix it.
