This script is an Addon for DoctorTodd's Autosave.
It improves on DoctorTodd's Autosave by making it use the last slot and not updating the Save index. If using MOG - Monogatari, this also hides the auto-save slot from the Save screen.
Compatibility with other systems may differ.
Script:
https://cloudthewolf.com/view-file/-vx-ace-doctortodd-s-auto-save-addon
Or just copy from below:
Ruby:
# # CloudTheWolf: DoctorTodd's Auto Save Addon - Enhanced Auto-Save # Author: CloudTheWolf # Date (19/06/2023) # Version: (1.0.0) (VXA) # Level: N/A # # Website: https://cloudthewolf.com/ # #=============================================================================== # # Description: Improves on DoctorTodd's Autosave by making it use the last slot # and not updating the Save index. # # Credits: Me (CloudTheWolf), DoctorTodd # #=============================================================================== # # Instructions # Paste above Below both DT's Autosave and Khas Ultra Lighting # # #=============================================================================== # # Free for any use as long as I'm credited, and you legitimately obtained Khas Ultra Lighting. # #=============================================================================== module DataManager #-------------------------------------------------------------------------- # * Execute Save (No Exception Processing) #-------------------------------------------------------------------------- def self.save_game_without_rescue(index, auto = false) File.open(make_filename(index), "wb") do |file| $game_system.on_before_save Marshal.dump(make_save_header, file) Marshal.dump(make_save_contents, file) end if !auto then @last_savefile_index = index end return true end #-------------------------------------------------------------------------- # * Execute Load (No Exception Processing) #-------------------------------------------------------------------------- def self.load_game_without_rescue(index) File.open(make_filename(index), "rb") do |file| Marshal.load(file) extract_save_contents(Marshal.load(file)) reload_map_if_updated @last_savefile_index = index == ToddAutoSaveAce::MAXFILES - 1 ? 0 : index end return true end end module Autosave #-------------------------------------------------------------------------- # Use last save slot as "Auto Save" and don't update save index #-------------------------------------------------------------------------- def self.call DataManager.save_game_without_rescue(ToddAutoSaveAce::MAXFILES - 1,true) end end #============================================================================== # ■ Scene_File #============================================================================== class Scene_File #-------------------------------------------------------------------------- # ● Fix For MOG Monogatari #-------------------------------------------------------------------------- def create_sprites return if !$imported[:mog_monogatari] @saving = $game_temp.scene_save @file_max = @saving ? FILES_MAX - 1 : FILES_MAX @file_max = 1 if FILES_MAX < 1 create_background create_layout create_savefile_windows create_particles @index = DataManager.last_savefile_index @check_prev_index = true @savefile_windows[0].selected = true end end 复制代码
Note
If using with my Khas Ultra Lighting Compatibility Script for DoctorTodd's Auto-Save, please create a new script below them both with the following to re-enable compatibility:
Ruby:
module Autosave def self.call SceneManager.kul_dispose DataManager.save_game_without_rescue(ToddAutoSaveAce::MAXFILES - 1,true) SceneManager.kul_restore end end 复制代码
本贴来自国际rpgmaker官方论坛作者:CloudTheWolf处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/cloudthewolf-doctortodds-auto-save-addon-enhanced-auto-save.158478/