设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 127|回复: 0

[转载发布] [CloudTheWolf] DoctorTodd's Auto Save Addon: Enhanced Auto-Save

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58883
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68848

    灌水之王

    发表于 2026-8-3 08:29:23 | 显示全部楼层 |阅读模式
    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:       
    1. #
    2. # CloudTheWolf: DoctorTodd's Auto Save Addon - Enhanced Auto-Save
    3. # Author: CloudTheWolf
    4. # Date (19/06/2023)
    5. # Version: (1.0.0) (VXA)
    6. # Level: N/A
    7. #
    8. # Website: https://cloudthewolf.com/
    9. #
    10. #===============================================================================
    11. #
    12. # Description: Improves on DoctorTodd's Autosave by making it use the last slot
    13. #              and not updating the Save index.
    14. #
    15. # Credits: Me (CloudTheWolf), DoctorTodd
    16. #
    17. #===============================================================================
    18. #
    19. # Instructions
    20. # Paste above Below both DT's Autosave and Khas Ultra Lighting
    21. #
    22. #     
    23. #===============================================================================
    24. #
    25. # Free for any use as long as I'm credited, and you legitimately obtained Khas Ultra Lighting.
    26. #
    27. #===============================================================================
    28. module DataManager
    29.   #--------------------------------------------------------------------------
    30.   # * Execute Save (No Exception Processing)
    31.   #--------------------------------------------------------------------------
    32.   def self.save_game_without_rescue(index, auto = false)
    33.     File.open(make_filename(index), "wb") do |file|
    34.       $game_system.on_before_save
    35.       Marshal.dump(make_save_header, file)
    36.       Marshal.dump(make_save_contents, file)
    37.     end
    38.     if !auto then
    39.         @last_savefile_index = index
    40.     end
    41.     return true
    42.   end
    43.   #--------------------------------------------------------------------------
    44.   # * Execute Load (No Exception Processing)
    45.   #--------------------------------------------------------------------------
    46.   def self.load_game_without_rescue(index)
    47.     File.open(make_filename(index), "rb") do |file|
    48.       Marshal.load(file)
    49.       extract_save_contents(Marshal.load(file))
    50.       reload_map_if_updated
    51.       
    52.       @last_savefile_index = index == ToddAutoSaveAce::MAXFILES - 1 ?  0 : index
    53.     end
    54.     return true
    55.   end
    56. end
    57. module Autosave
    58.   #--------------------------------------------------------------------------
    59.   # Use last save slot as "Auto Save" and don't update save index
    60.   #--------------------------------------------------------------------------
    61.   def self.call
    62.     DataManager.save_game_without_rescue(ToddAutoSaveAce::MAXFILES - 1,true)
    63.   end
    64. end
    65. #==============================================================================
    66. # ■ Scene_File
    67. #==============================================================================
    68. class Scene_File
    69.   #--------------------------------------------------------------------------
    70.   # ● Fix For MOG Monogatari
    71.   #--------------------------------------------------------------------------
    72.   def create_sprites
    73.     return if !$imported[:mog_monogatari]
    74.     @saving = $game_temp.scene_save
    75.     @file_max = @saving ? FILES_MAX - 1 : FILES_MAX
    76.     @file_max = 1 if FILES_MAX < 1
    77.     create_background
    78.     create_layout
    79.     create_savefile_windows
    80.     create_particles
    81.     @index = DataManager.last_savefile_index
    82.     @check_prev_index = true
    83.     @savefile_windows[0].selected = true     
    84.   end
    85. 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:       
    1. module Autosave
    2.   def self.call
    3.     SceneManager.kul_dispose
    4.     DataManager.save_game_without_rescue(ToddAutoSaveAce::MAXFILES - 1,true)
    5.     SceneManager.kul_restore
    6.   end
    7. end
    复制代码




    本贴来自国际rpgmaker官方论坛作者:CloudTheWolf处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/cloudthewolf-doctortodds-auto-save-addon-enhanced-auto-save.158478/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-17 07:21 , Processed in 0.109845 second(s), 51 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表