TerryCavanagh / diceydungeons.com

Dicey Dungeons
50 stars 7 forks source link

Trying to trade Turbo Charge causes a crash in Jester episode #2905

Closed TerryCavanagh closed 2 years ago

TerryCavanagh commented 2 years ago

A number of reports of this one since launch, at least half a dozen. One person encountered the issue on PC and sent a stack trace!

--------------------------------------
filename:   diceydungeons
package:    com.terrycavanaghgames.diceydungeons
version:    v2.0 / 1.0 (mod API)
sess. ID:   dicey_dungeons_2022-07-07_19'17'04
started:    2022-07-07 19:17:04
--------------------------------------
crashed:    2022-07-07 20:04:48
duration:   00:47:43
error:      ERROR in callscenemethod(Barterstate,update) static : Null Object Reference, stack = 
Called from states.Barterstate.update (states/Barterstate.hx line 152)
Called from Reflect.callMethod (C:\coding\haxe\openfl\std/cpp/_std/Reflect.hx line 55)
stack:
haxegon.Scene.callscenemethod (haxegon/Scene.hx line 93)
haxegon.Scene.update (haxegon/Scene.hx line 53)
haxegon.Core.doupdate (haxegon/Core.hx line 265)
haxegon.Core.onEnterFrame (haxegon/Core.hx line 178)
starling.events.EventDispatcher.__invokeEvent (starling/events/EventDispatcher.hx line 184)
starling.events.EventDispatcher.dispatchEvent (starling/events/EventDispatcher.hx line 144)
starling.display.DisplayObject.dispatchEvent (starling/display/DisplayObject.hx line 778)
starling.display.DisplayObjectContainer.broadcastEvent (starling/display/DisplayObjectContainer.hx line 456)
starling.display.Stage.advanceTime (starling/display/Stage.hx line 108)
starling.core.Starling.advanceTime (starling/core/Starling.hx line 469)
starling.core.Starling.nextFrame (starling/core/Starling.hx line 455)
starling.core.Starling.onEnterFrame (starling/core/Starling.hx line 682)
openfl.events.EventDispatcher.__dispatchEvent (openfl/events/EventDispatcher.hx line 443)
openfl.display.DisplayObject.__dispatch (openfl/display/DisplayObject.hx line 1236)

Thankfully, the issue only seems to happen first time around - if you reload your game, it works fine.

TerryCavanagh commented 2 years ago

This one is fixed now, phew!