Hi All,
I’m in the process of moving my game over from another engine into Corona. My level editor of choice is GLEED2D, this outputs xml files. I’m using the XML parser found here (https://coronalabs.com/blog/2011/07/29/how-to-use-xml-files-in-corona/) by Jonathan Beebe.
The problem I am having is that I want my data to be structured into nice tidy sub folders, so my XML level files are in a structure like so: Media/Levels/StageName/ActName.xml
However, I don’t seem to be able to get the parser to read these files, the relevant lines of code are below.
Xml = require("Xml").newParser() local \_hXml = Xml.loadFile( "Media/Levels/" .. sStageName .. "/" .. sLevelName .. ".xml")
In the output consoles there seems to be an error stating that “Permission Denied” I can’t figure this out, the simulator is running in admin mode, the code in is my documents so is accessible. Any ideas would be a great help thank you.