0 Favourites

Assertion failure: expvalue.set_float without number type

  • I caught this error when I ran the following command.

    add key "timer" with value max(0,DATA.Get("timer")-1)

    The problem arose as I had previously defined the contents of DATA.get("time") as an int, and I had changed it to text. My mistake. Either way, there's a casting issue and this throws up the following error when executed in the browser. So the error could have arisen because of the subtraction, or the MAX function. This might be useful to other people who are trying to decipher the error. If you see an assertion error, check if you are misusing a text variable. It might be worth to Ashley or the developers to put in an error check to help catch the problem or to help a developer diagnose the failure if they've made the same mistake.

    Assertion failure: Calling expvalue.set_float without number type

    Stack trace:

    Error

    at assert2 ()

    at ExpValue.prototype.set_float ()

    at SysExps.prototype.max ()

    at ExpNode.prototype.eval_system_exp ()

    at Parameter.prototype.get_exp ()

    at Action.prototype.run_object ()

    at EventBlock.prototype.run_actions_and_subevents ()

    at EventBlock.prototype.run ()

    at EventSheet.prototype.run ()

    at EventInclude.prototype.run ()

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Closing, please follow the bug report guidelines (no .capx attached so we cannot investigate).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)