Hi all! I am currently making a browser game demo, I’m almost finished but there is one last thing I can’t seem to get to work. The game contains some dialogue trees that the player navigates via gui buttons. The dialogue within these buttons is pulled from a JSON file that I have stored on my local machine in the Assets folder of the project. Right now I am just using a stream reader to read the json file as a string and pushing it through the SimpleJSON extension. This does not work when I publish the game to the web as the JSON file is not uploaded. I was wondering if any one had a simple way to access files from a browser game that are stored within the same spot of the webserver (Maybe a simple url containing datapath or something?) I’ve tried a few things like using WWW and setting it to the url and using yield to return a string but I couldn’t get it to work. If any one knows a decent solution that would be great. I really just need a way to read the file and convert its contents into a string that I can then load up into my JSON object within the program.
Thanks in advance! (Sorry for what I am sure is a ton of grammatical errors, always been terrible at it. ^_^)