VX Ace to MV Error: $game_player is not defined

I'm converting a VX Ace to MV and got this error.


error: $game_player is not defined


A common event of mine uses $game_player.x and $game_player.y. Is the variable referring to the player your currently control at the front of the line different in MV than VX Ace?  If so what is it now?
It's $gamePlayer
@2d_quest as said in the description of the Ace to MV converter script, EVERYTHING that touches the scripting needs to be manually converted or replaced with it's javascript equivalent of MV.


That not only includes full scripts, but every use of the event command "script" and every line where script commands are used (including the script-options of conditional branches and control variables as well as all damage formulae that goe beyond basic mathematics).


So yes, the Variable names of the engine have been renamed to conform now to javascript instead of RGSS - not only the case you listed, but every case.
@2d_quest as said in the description of the Ace to MV converter script, EVERYTHING that touches the scripting needs to be manually converted or replaced with it's javascript equivalent of MV.


That not only includes full scripts, but every use of the event command "script" and every line where script commands are used (including the script-options of conditional branches and control variables as well as all damage formulae that goe beyond basic mathematics).


So yes, the Variable names of the engine have been renamed to conform now to javascript instead of RGSS - not only the case you listed, but every case.



Does Javascript not allow underscores or something? Seems like the only reason you'd have to change $game_player to $gamePlayer just because it's Javascript.
In programming languages, $gamePlayer and $game_player are different variables.
Does Javascript not allow underscores or something? Seems like the only reason you'd have to change $game_player to $gamePlayer just because it's Javascript.



Variable naming conventions.
Two more things I need to correct for MV are these below in script pieces. What coding grammar fixes needed here? I know $game_map will be $gameMap in the first one, but what's the rest become?


$game_map.events[@event_id].direction == 2


instance_eval("@priority_type = 1")

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-to-mv-error-game_player-is-not-defined.59219/