Assertion failure: expvalue.set_float without number type

Bugs will be moved here once resolved.

Post » Sat Jul 26, 2014 1:09 pm

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 (http://localhost:50000/preview_prelude.js:16:4)
at ExpValue.prototype.set_float (http://localhost:50000/expressions.js:788:3)
at SysExps.prototype.max (http://localhost:50000/system.js:2054:3)
at ExpNode.prototype.eval_system_exp (http://localhost:50000/expressions.js:255:3)
at Parameter.prototype.get_exp (http://localhost:50000/eveng.js:2049:3)
at Action.prototype.run_object (http://localhost:50000/eveng.js:1824:7)
at EventBlock.prototype.run_actions_and_subevents (http://localhost:50000/eveng.js:929:4)
at EventBlock.prototype.run (http://localhost:50000/eveng.js:886:4)
at EventSheet.prototype.run (http://localhost:50000/eveng.js:224:4)
at EventInclude.prototype.run (http://localhost:50000/eveng.js:2318:13)
B
7
S
3
G
1
Posts: 184
Reputation: 1,352

Post » Mon Aug 04, 2014 3:47 pm

Closing, please follow the bug report guidelines (no .capx attached so we cannot investigate).
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests