Actions
Bug #834
openTranspiler mixing up Variable names with Function names
Start date:
09/26/2021
Due date:
% Done:
0%
Estimated time:
Affected version:
Description
When you have a variable named the same as a function name, albeit with underscores '_' in the place of spaces....
Variable : PLAYER_NAME$
Function : Player Name$()
If you pass PLAYER_NAME$ into an instruction - the transpile is actually using the Player Name$() function instead of the variable
Here is an example of the generated code in the application.js
// UI Value "UIPlayerName", PLAYER_NAME$
aoz.sourcePos="0:7:0";
aoz.ui.setValue( { id: "UIPlayerName", value: this.aoz.player.getPlayerPropertyValue('playername') } );```
Actions