SubWolf
Member
Hello,
I'm having a strange problem that I don't have a clue what is causing it...
I have a script to LOAD my game data from a file (let's say the file name is "save.sav"), when the game starts I have an object that checks if the file exists:
if (file_exists(working_directory + "save.sav")) load();
When I'm testing using Windows as target I know the file is in the folder "C:\Users\USERNAME\AppData\Local\GAMENAME"... so I erase it when I do changes on this LOAD script ( or the SAVE on too). And when I start the game again it doesn't find the file, so it initiate the variables normally... until this point everything is working fine.
The real problem is when I'm testing using Android as target (I'm connecting my mobile using USB)... the thing is that when I'm NOT CONNECTED TO WIFI the game starts as it was the first time it was starting and everything works great... but when I'm CONNECTED TO WIFI for some reason it finds the "save.sav" file, the IF statement returns true and it tries to load the file, but as I did some modifications of the LOAD script it returns me an error and the game crashes.
-> I already scanned my entire phone;
-> I used functions like: filename_dir(), filename_drive() and filename_path() to look for the file and I don't find it anywhere on my mobile;
-> I don't think there's really a file on my mobile, if there was it should be loaded when my WIFI is not connected (which not occurs);
-> Again, it only finds the file when my WIFI IS CONNECTED.
I'm having a strange problem that I don't have a clue what is causing it...
I have a script to LOAD my game data from a file (let's say the file name is "save.sav"), when the game starts I have an object that checks if the file exists:
if (file_exists(working_directory + "save.sav")) load();
When I'm testing using Windows as target I know the file is in the folder "C:\Users\USERNAME\AppData\Local\GAMENAME"... so I erase it when I do changes on this LOAD script ( or the SAVE on too). And when I start the game again it doesn't find the file, so it initiate the variables normally... until this point everything is working fine.
The real problem is when I'm testing using Android as target (I'm connecting my mobile using USB)... the thing is that when I'm NOT CONNECTED TO WIFI the game starts as it was the first time it was starting and everything works great... but when I'm CONNECTED TO WIFI for some reason it finds the "save.sav" file, the IF statement returns true and it tries to load the file, but as I did some modifications of the LOAD script it returns me an error and the game crashes.
-> I already scanned my entire phone;
-> I used functions like: filename_dir(), filename_drive() and filename_path() to look for the file and I don't find it anywhere on my mobile;
-> I don't think there's really a file on my mobile, if there was it should be loaded when my WIFI is not connected (which not occurs);
-> Again, it only finds the file when my WIFI IS CONNECTED.