Hi people I am trying to get my JSON to works but I can't even suceed to retrieve it so my first question what's are the step for get's the JSON data? and please don't refer me to the manual it's not works half
also how I can get to load my JSON from the data folder?
thanks for any further answer
You can use DataManager's loadDataFile to load from the data folder, but it's asynchronous, so you'll have to check to see if it's been loaded in before you use it, and it also sets a variable in the global scope, it doesn't let you set it as a local. If you don't want it to behave like that, you'll need to make your own version of the function.
Alternatively, I know you personally don't want to use the MVCommons, but like I told you earlier, you can just copy one of our functions to load data into your own plugin. The code is in the public domain, so there's really nothing stopping you from using it.
I just checkek with hudell to get your method and this not work at all okai..and you can't modify the dataManager stuff without it's actually provoke a bug :/
The clean way would be to do an asynchronous request and to display a loading animation until it's finished. Synchronous requests completely lock up your game which feels bad from a user side.
all works default the reason why my JSON files not worked it's because it's had comment inside of it...JSON don't support comment (that's a sad thing's :c)