I am not sure if this helps in any way, but I run into an error myself with Khas Awesome Lights when I want to save. I found the following script snippet that solved that:
module DataManager def self.save_game_without_rescue(index) File.open(make_filename(index), "wb") do |file| $game_system.on_before_save scene = SceneManager.scene scene.dispose_lights if scene.is_a?(Scene_Map) Marshal.dump(make_save_header, file) Marshal.dump(make_save_contents, file) scene.setup_lights if scene.is_a?(Scene_Map) @last_savefile_index = index end return true endendclass Scene_Map def dispose_lights; @spriteset.dispose_lights; end def setup_lights; @spriteset.setup_lights; endendmaybe... you could try the dispose_lights and setup_lights things ...
It's ok Amanda, go play some games now.
Reference to the SAW franchise. You know... because of the avatar...
oh, silly me! did not thought of that!
good one!! XD
Have you tried to start a new game (then load it) after you installed my script?
Old save files aren't compatible after installing awesome light effects.
I even tried it on a new project, Khas. Any suggestions? I also have another issue with the script, but I'll get to that later.
I understand... can you copy the faulty line here?
By faulty line you mean the line where the error supposedly happens?
If so, this is the one:
$game_map.light_surface.bitmap.clear
I tried here and the code works, weird...
Which line of the code you're calling is giving the error? You may split it into several script calls to know which one.
The issue seems to be with the line DataManager.load_game(9)
That gives me another error. The issue has been solved though, with a scriptlet from a fellow developer.
Thank you for your time!
You're welcome! Good luck with your project 😀