Block Scope

GO TO ADMIN PANEL > ADD-ONS AND INSTALL ABSTRACT SIDEBAR TO SEE FORUMS AND SIDEBAR
Joined
Apr 18, 2019
Messages
3
Points
2
Age
25
So I'm working on a project with RMMV that primarily has working with plugins to do things such as allowing overpass tiles, 8 directional movement, and some animation features. However, last time I pushed my team's project to our repository my other team members had RMMV crashing on their computers, but not mine. So, after a two hour drive and a bunch of troubleshooting, we figured out that using the keyword let would crash my other team member's computers.

So I wanted to ask about this, because after running through SmRdmDude's tutorials I never saw any mention of both the keyword let or about block scope. Can anyone help me out here? let is a pretty common keyword in JavaScript, and my plugins containing many instances of let work on my copy of RMMV.
 

Starbird

Praised Adventurer
Resource Team
Joined
Feb 20, 2016
Messages
347
Points
224
Location
United States
good question. if your whole team is using the same version of RPG Maker MV and the same plugins in the same order (and all turned on/off the same) then i can't see why it would run on one machine and not run on another.

in case you haven't read this before, here's an article on block scoping in relation to MV:

https://endlessillusoft.com/rpgmaker-mv-es6-part-5-block-scope-variables/
 
Joined
Apr 18, 2019
Messages
3
Points
2
Age
25
good question. if your whole team is using the same version of RPG Maker MV and the same plugins in the same order (and all turned on/off the same) then i can't see why it would run on one machine and not run on another.

in case you haven't read this before, here's an article on block scoping in relation to MV:

https://endlessillusoft.com/rpgmaker-mv-es6-part-5-block-scope-variables/
Hey Starbird,

looking into it with my team more this weekend, is there any chance there is a previous build of MV that was loaded with EcmaScript 5 instead of 6? Otherwise I'll just have to read through my code and find where I messed up I guess.

Thank you for your help though!
 

Starbird

Praised Adventurer
Resource Team
Joined
Feb 20, 2016
Messages
347
Points
224
Location
United States
yes, older versions use ES5, but current build is ES6. i'd definitely start by making sure everyone has the latest MV update.
 
Top