Hi, I have a problem in MV.
I developed 2 plugins. Both have DataManager.loadDataFile function to load map database. The first plugin run flawlessly. But the second plugin failed to set map data to a variable (lets say $dataMapSomething). That $dataMapSomething left as undefined when I checked it using console.log directly after loadDataFile line.
And there's more of it, when I checked again by typing manually on console (the game window still shows error screen), that $dataMapSomething is already set with map data which I want to set before.
The only difference I could tell between those two plugin is the working one calls DataManager.loadDataFile on the inialization of scene map. The failed one calls it from game interpreter command.
Could any of you guys tell me what I've done wrong?
Thanks!
I developed 2 plugins. Both have DataManager.loadDataFile function to load map database. The first plugin run flawlessly. But the second plugin failed to set map data to a variable (lets say $dataMapSomething). That $dataMapSomething left as undefined when I checked it using console.log directly after loadDataFile line.
And there's more of it, when I checked again by typing manually on console (the game window still shows error screen), that $dataMapSomething is already set with map data which I want to set before.
The only difference I could tell between those two plugin is the working one calls DataManager.loadDataFile on the inialization of scene map. The failed one calls it from game interpreter command.
Could any of you guys tell me what I've done wrong?
Thanks!