error compiling game. Build 10838

johnjanowskibsc

  • Posts: 158
Hi,

Just updated Stencyl and now have a bug that has never been a bug before. I have a rotating arrow that moves by assigning a value to itself. Now I can't compile my game

[haxelib] Source/scripts/ActorEvents_76.hx:78: characters 5-32 : Assigning a value to itself
 

johnjanowskibsc

  • Posts: 158
I seem to have fixed it - it wasn't what I first thought. I didn't like the updating event - see image below.

Strange how it would pass it through on a previous build

merrak

  • *
  • Posts: 2738
Interesting. Out of curiosity, I looked up the error in the Haxe changelog. It was introduced in 2006. I'm not sure why it's an error. Maybe there was some code optimization process that would remove the line in previous builds of your game, but now fails to recognize the redundant code?

Justin

  • *
  • Posts: 4716
I haven't looked this up, but it's possible that in previous builds of Stencyl, it generated code like this:

Code: [Select]
_animationno = "" + _animattionno;
Whereas Stencyl is currently a little smarter than that, and instead generates this code:

Code: [Select]
_animationno = _animattionno;
I'm guessing something like that would cause the Haxe compiler to realize what's happening and throw the error.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)