Khas Awesome Light Effects Issue

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
I want to use the following script call

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:

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

undefined method 'bitmap' for nil:NilClass
Any ideas?
 

FeaR616

Veteran
Veteran
Joined
Nov 22, 2014
Messages
277
Reaction score
52
First Language
german
Primarily Uses
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 ... 
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
Nope. Didn't work.
 

FeaR616

Veteran
Veteran
Joined
Nov 22, 2014
Messages
277
Reaction score
52
First Language
german
Primarily Uses
too bad, sorry. =(
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
It's ok Amanda, go play some games now.
 

FeaR616

Veteran
Veteran
Joined
Nov 22, 2014
Messages
277
Reaction score
52
First Language
german
Primarily Uses
uhm.. what?
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
Reference to the SAW franchise. You know... because of the avatar...
 

FeaR616

Veteran
Veteran
Joined
Nov 22, 2014
Messages
277
Reaction score
52
First Language
german
Primarily Uses
oh, silly me! did not thought of that! 

good one!! XD
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
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.
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
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.
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
I understand... can you copy the faulty line here?
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
By faulty line you mean the line where the error supposedly happens?
If so, this is the one:

$game_map.light_surface.bitmap.clear
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
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.
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
The issue seems to be with the line DataManager.load_game(9)
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
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
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
That gives me another error. The issue has been solved though, with a scriptlet from a fellow developer.
Thank you for your time!
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
You're welcome! Good luck with your project :D
 

Simon D. Aelsi

Voice Actor/Composer
Veteran
Joined
Feb 22, 2014
Messages
4,838
Reaction score
1,394
First Language
Hylian
Primarily Uses
RMVXA
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 :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top