A fix for Compatibility Issues between DoctorTodd's Auto Save and Khas Ultra Lighting
This will change the Auto-Save trigger to first dispose of all the lighting, then trigger the auto-save, the restore the lighting.
Disclaimer: I know there used to be an official addon by Khas, however this is no longer available (Or I could not find it). This script is intended for those that already have the Khas Ultra Lighting script and wish to use DoctorTodd's Auto Save. I can not say how similar to the original Khas script this is, and will not be providing the Khas Ultra Lighting system.
If you do not have Khas Ultra Lighting then there are alternatives such as Khas Amazing Lighting or Victor Engine Lighting which are freely available at the time of writing.
Script:
https://cloudthewolf.com/view-file/-vx-ace-khas-ultra-lighting
Or just copy from below:
Ruby:
#=============================================================================== # # CloudTheWolf Khas Ultra Lighting / DoctorTodd's Auto Save Compatibility # Author: CloudTheWolf # Date (19/06/2023) # Version: (1.0.0) (VXA) # Level: N/A # # Website: https://cloudthewolf.com/ # #=============================================================================== # # Disclaimer: I know there used to be an official addon by Khas, however this is # no longer available. This script is intended for those that already # have the Khas Ultra Lighting script and wish to use DoctorTodd's # Auto Save. I can not say how similar to the original Khas script # this is, and will not be providing the Khas Ultra Lighting system. # If you do not have Khas Ultra Lighting then there are alternatives # such as Khas Amazing Lighting or Victor Engine Lighting which are # freely available at the time of writing. # #=============================================================================== # # Description: Fixes compatibility issues between Khas Ultra Lighting and DT's Auto Save # # Credits: Me (CloudTheWolf), Khas, DoctorTodd # #=============================================================================== # # Instructions # Paste 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. # #=============================================================================== $imported = {} if $imported.nil? module SceneManager def self.kul_dispose if @scene.is_a?(Scene_Map) @scene.spriteset.dispose_ultra_graphics else @stack.reverse.each do |s| if s.is_a?(Scene_Map) s.spriteset.dispose_ultra_graphics return end end end end def self.kul_restore if @scene.is_a?(Scene_Map) @scene.spriteset.initialize_ultra_graphics else @stack.reverse.each do |s| if s.is_a?(Scene_Map) s.spriteset.initialize_ultra_graphics return end end end end end module Autosave def self.call SceneManager.kul_dispose DataManager.save_game_without_rescue(0) SceneManager.kul_restore end end 复制代码
本贴来自国际rpgmaker官方论坛作者:CloudTheWolf处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/cloudthewolf-khas-ultra-lighting-dts-auto-save-unofficial-compatibility-fix.158477/