I am posting this Mac forum as there are some workarounds to my issue on Windows. In my game I am using data files (simple text files) - let us say abc.txt, xyz.txt, etc. In my code I am able to open them as -- working_directory+"/data/level1/"+"abc.txt"......
Everything works fine. When I create an executable and send it to anyone with the data file they are unable to use it as the app is looking specifically the working directory name in my computer i.e. /Users/myname/Desktop/ etc...
The only way someone else is able to play the game is my creating a user on their Macs with "myname" and cppying the data file there.
Any pointers or suggestions will be greatly appreciated. Thanks!
*** SOLVED *** (thanks to all who replied)
I have resolved this as follows:
1. Created a separate version of code to make the executable (seem to be the cleanest way to this)
2. In the Include option (GLobal Game Settings), I have selected the data files and indicated they be exported to a Temporary Folder (all other options create path name conflicts)
3. Did *not* select Remove files option!
4. CHanged my code to refer to use files from the temporary folder
5. Backed up all my data files and then created/tested the executable and it all works
Pl see the instructions here - http://gamemaker.inf.../302_06_include paying attention to all the bold text!
Edited by heavyhorse, 30 July 2012 - 01:36 PM.