CHECKING FOR SAVE FILES IN EVENTS? (VX)

Posts

Pages: 1
Melkino
solos collectors on purpose
2021
Using the "Script" condition in a conditional branch, can you make the game check if there's at least one save file in a VX game's Save folder? If so, what is the script call that goes in the box?

It's for my game's title screen, which is evented. Currently, the choice menu always starts at New Game, but I want it to go to Load Game when the condition's script call is true, in which case I'd just need to simply increase a variable. But anyway, hopefully this is possible because starting a new game on accident is annoying as hell, haha
Shepple
you're my li'l man!
1035
author=Melkino
If so, what is the script call that goes in the box?

"DataManager.save_file_exists?"

Try and see if this works.
Adon237
if i had an allowance, i would give it to rmn
1743
I think he is using VX, not VX Ace.
So that wouldn't work.
I am not sure otherwise.
#--------------------------------------------------------------------------
# * Determine if Continue is Enabled
#--------------------------------------------------------------------------
def check_continue
@continue_enabled = (Dir.glob('Save*.rvdata').size > 0)
end

This is what checks whether or not the continue option is enabled in Scene_Title. You might not be able to copy/paste that directly, but it should help.
Adon237
if i had an allowance, i would give it to rmn
1743
maybe something like

if continue_enabled

or the like.
Dir.glob('Save*.rvdata').size >= 1
Melkino
solos collectors on purpose
2021
author=heisenman
Dir.glob('Save*.rvdata').size >= 1


This works, thanks! :) I edited it to
Dir.glob('Save**/*.rvdata').size >= 1
because a save script I'm using puts the save files and thumbnails into a separate folder.
Pages: 1