[Bug, PRPL] Invalid Cast Exception

Started by planetfall, February 01, 2017, 08:13:47 PM

Previous topic - Next topic

planetfall

Another "breaks the main loop" error.


InvalidCastException: Cannot cast from source type to destination type.
  at CrplCore.ProcessCommands (Boolean start, Boolean final, Boolean gameLoaded, Boolean paused) [0x00000] in <filename unknown>:0
  at CrplCore.GameUpdate (Boolean final, Boolean paused) [0x00000] in <filename unknown>:0
  at CommonUnit.PausedGameUpdate () [0x00000] in <filename unknown>:0
  at GameSpace.GameUpdate () [0x00000] in <filename unknown>:0
  at GameSpace.Update () [0x00000] in <filename unknown>:0

(Filename:  Line: -1)


Found in someone else's provided save for http://knucklecracker.com/forums/index.php?topic=23262.msg155775#msg155775. When testing the map myself, this problem never occurred, but this save does produce the error on my computer. Just let it run for a few seconds.

If you open it in the editor, the PRPL console says FindParticleTarget is trying to pop from an empty stack. Admittedly, I created the script before the wiki was passable, and didn't update it after. However, a simple take-from-empty-stack shouldn't break things this badly.
Pretty sure I'm supposed to be banned, someone might want to get on that.

Quote from: GoodMorning on December 01, 2016, 05:58:30 PM"Build a ladder to the moon" is simple as a sentence, but actually doing it is not.