Check if Save File exists

Hello everyone! 🙂

I know this problem is solved and closed here: http://forums.rpgmakerweb.com/index.php?/topic/49606-checking-if-save-file-is-present/#entry491552

Buuuuut, it doesn't work for me, so I guess I'm doing something wrong.

basically I want to check (using the conditional branch) if a save file exists.

 I tried using  File.exists("Save01.rvdata2") in the Script box (inside the conditional) but the program says "Undefined is not a function" (I tried as well File.exists?("Save01.rvdata2") but it says "Unexpected end of input").

Also I tried DataManager.save_file_exists? and same problem (Unexpected end of input), so I removed the "?" and no error message but it doesn´t detect the save file.

My save files are inside the save folder.

[IMG]http://s2.postimg.org/kt2tl6cpl/save_files.png[/IMG]

Any ideas? 🤔

save files.png
Look at the default scripts. They do a check to see if a save file exists when displaying the title screen, in order to tell whether to enable the Continue option or not.


In fact, DataManager.isAnySavefileExists() will give you a true/false answer depending on whether there are any save files.
Problem solved. Thanks Shaz!! 🤣

Original thread: https://forums.rpgmakerweb.com/threads/check-if-save-file-exists.54286/