[VXA] Custom Save File

Started by Various, January 25, 2013, 06:43:56 am

Previous topic - Next topic

Various

Custom Save File
Authors: various
Version: 1.0
Type: save file editor
Key Term: Title / Save / Load / GameOver Add-on



Introduction

this script changes your extension/name to the one you desire


Features


  • have your own custom savefile suchs as "Save.variouss" or anything else you want




Screenshots

screenshots of a save file is kinda boring...


Demo

not needed since its only for save files


Script

Spoiler: ShowHide
#==================#
# Custom Save File #
#==================#===========================#
# This script allows you to easily change your #
# save file name and extension                 #
#                                              #
# Instructions:                                #
#  add it in script database and change        #
#  here extension and filename                 #
#==============================================#

module DataManager
#================#
# Customization: #
#================#==================================================#
# SAVEFILENAME is the details before the number and extension       #
# SAVEFILEEXTENSION is the extension of the file, defail is Rvdata2 #
#===================================================================#
  SAVEFILENAME   = "SAVE"
  SAVEFILEEXTENSION = "Rvdata2"
  def self.save_file_exists?
    !Dir.glob(SAVEFILENAME + "*" + SAVEFILEEXTENSION).empty?
  end
  def self.make_filename(index)
    sprintf(SAVEFILENAME + "%02d." + SAVEFILEEXTENSION, index + 1)
  end
end



Instructions

add the script in your script database and fill in the extension and filename


Credits and Thanks


  • Various




Author's Notes

i dont know if this is compatible with xp and vx , i dont own xp anymore so if someone tests and it works please tell me