"A(-1)" Thats all to crash the game?

So Grazer (or whoever reads this) I am helping Shyguyshere to make a card game, Now tell me, I Make an expression Block, I put in “A(-1)” which is A times -1. Simple enough. the expression block blinks green so I suspect its ok. Little did I know I would crash the game even with nothing connected to it. And the input is not the problem either. Because It would have shown problems earlier. So just wanted to have everyone be aware that an expression block Could Crash a flowlab game.

A(-1) is not A times -1, you must use A*(-1).
Multiplication must be instructed, not implied, in programming.

2 Likes

I figured that out right after my message. The problem is that the expression block text turned green signifying it had a way to solve the equation.

Edit : And that the block by itself crashed the platform

Green doesn’t signify that the equation is solved, it signifies that the compiler was successful of converting the haxe to java so it can run natively with the game (and reduce processing). The issue is the compiler is that it does not detect coding errors, but running the code will produce an error and crash the game.

1 Like

Didn’t know that, So when you copy and paste the code from different games, that code is Java Or Haxe. (Never heard of Haxe)

image

Importing behaviors from other games is done with json, behaviors themselves are made in Haxe, and the browser runs in Java. But anything you do in expressions is done in Haxe. Expressions that fail to compile (fail to turn green) use extra processing because every frame that executes expressions must run the haxe environment (which is very small).

You can go over more about running Haxe in expressions in @Recryptech topic Express Expressions - A Guide to the Expression Behavior. This will also be great to know with the next planned flowlab update. :slightly_smiling_face:

1 Like

Not Now Definitely Later, I don’t want to earn a college degree right now. But thanks anyway.