Khas Awesome Light Effects Issue

I want to use the following script call

Spoiler
DataManager.load_game(x)
Sound.play_load
Fiber.yield while $game_message.visible
screen.start_fadeout(30)
wait(30)
$game_system.on_after_load
SceneManager.goto(Scene_Map)
To load a specific save file.

The problem is that I get the following message:

Spoiler
Script 'Khas Awesome Light Effects' line 976: NoMethodError occurred.

undefined method 'bitmap' for nil:NilClass
Any ideas?
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 ... 
Nope. Didn't work.
too bad, sorry. =(
It's ok Amanda, go play some games now.
uhm.. what?
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)
Are you sure? Because the line that is causing the problem isn't called by this method.

Try to replace the first line by this:

Code:
SceneManager.scene.dispose_spritesetDataManager.load_game(9)SceneManager.scene.create_spriteset
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 😀
That gives me another error. The issue has been solved though, with a scriptlet from a fellow developer.

Thank you for your time!
What does the scriptlet have on it? In case anymore of is have the same issue 🙂

Original thread: https://forums.rpgmakerweb.com/threads/khas-awesome-light-effects-issue.38138/