first of all i encounter some problem when using asynchronous load map data in my plugin...
http://forums.rpgmakerweb.com/index.php?/topic/50665-est-regionmaploader/
and the clone event also have that problem but Hudell is giving me some workaround it... (but this workaround doesn't work in regionmaploader)
this only happen when i upload my project in dropbox public folder (some people i know also upload it using regular webhoster and it's the same) then opening it in browser.
when changing the regionmapdata... then transfer to the map... often...(90%)
it will throw TypeError: $dataMap is null
and console show this:
my suspicion it caused because of the asynchronous is not finised yet. it caused $dataMap not loaded yet when transfering... but i might be wrong.
also when i consult with Hudell about this... he also said:
a bug in MV?
I also try to add some counters in callback method / onload method in the asynchronous load function. but when i use it inside Scene_Map.prototype.isReady... it doesn't work. the counter is correct. $dataMap also not null... but it crash after that.
i also try checking for $dataMap is null or not in Scene_Map.prototype.isReady and Game_Map.prototype.setup. it doesn't work either...
i also try adding 'while' that check that counter (do nothing). but inside while... the asynchronous stop executing... thus that counter never reduced and thus freeze the game...
i also read something about combining counter and listener... but i don't really understand yet how to use that since i'm new in JS so i might use it wrongly... for starter in what i add the listener to?
my question is... any way to 'wait' until all asynchronous finished in MV? btw i try interpreter wait and it also doesn't work 😛 .
once again... i'm new in JS. sorry if my code is still 'smell' like ruby. slowly learning how to adapt to JS.
http://forums.rpgmakerweb.com/index.php?/topic/50665-est-regionmaploader/
and the clone event also have that problem but Hudell is giving me some workaround it... (but this workaround doesn't work in regionmaploader)
this only happen when i upload my project in dropbox public folder (some people i know also upload it using regular webhoster and it's the same) then opening it in browser.
when changing the regionmapdata... then transfer to the map... often...(90%)
it will throw TypeError: $dataMap is null
and console show this:
my suspicion it caused because of the asynchronous is not finised yet. it caused $dataMap not loaded yet when transfering... but i might be wrong.
also when i consult with Hudell about this... he also said:
apparently... even when $dataMap is null. it still running the scene forcefully...
a bug in MV?
I also try to add some counters in callback method / onload method in the asynchronous load function. but when i use it inside Scene_Map.prototype.isReady... it doesn't work. the counter is correct. $dataMap also not null... but it crash after that.
i also try checking for $dataMap is null or not in Scene_Map.prototype.isReady and Game_Map.prototype.setup. it doesn't work either...
i also try adding 'while' that check that counter (do nothing). but inside while... the asynchronous stop executing... thus that counter never reduced and thus freeze the game...
i also read something about combining counter and listener... but i don't really understand yet how to use that since i'm new in JS so i might use it wrongly... for starter in what i add the listener to?
my question is... any way to 'wait' until all asynchronous finished in MV? btw i try interpreter wait and it also doesn't work 😛 .
once again... i'm new in JS. sorry if my code is still 'smell' like ruby. slowly learning how to adapt to JS.