The Pixie wrote:So how do you include files in your .quest file?
Alex wrote:You can use JavaScript to get or post data via an AJAX call.
Pertex wrote:choose 'publish' in the Tools menu of the editor and quest copys the game file and all ressource files from the game directory into the .quest file. Vou can't change the quest file at runtime.
mystring = GetFileData ("whatever.html")
Alex wrote:Only certain file extensions are included.
See https://quest.codeplex.com/SourceContro ... ackager.cs
It adds these: *.jpg;*.jpeg;*.png;*.gif;*.js;*.wav;*.mp3;*.htm;*.html
Looks like you should be able to manually add extra files by setting them as a resource in your ASLX (see http://quest5.net/wiki/Resource_element) although looking at that code, it seems that will only work if the resource element is defined in a library.
Alex wrote:As of Quest 5.6 you can update the publishfileextensions attribute on the game element to set which file extensions are included, so you can just add *.ogg to this.
Error running script: Error evaluating expression 'GetFileData(filename)': Cannot find a file called 'father.txt' in current