[Ace] Khas Lighting Out of Range Error w/ Shadows

cavemanK

Villager
Member
Joined
May 17, 2016
Messages
28
Reaction score
9
First Language
English
Primarily Uses
Hello everyone, 

I am getting a very frustrating error using Khas' Awesome Lighting Script in combination with Falcao ABS (among many others) where the game will randomly crash on a variety of maps due to an out of range float being passed through one of the many shadow calculating functions. Watching the values indicates that the values are okay until it increases dramatically in one frame.


Has anyone experienced this before? I tried taking a look around, but couldn't find any topics with a solution. I'm guessing it's due to the amount of characters walking around my map with the ABS system, and my first thought is to try and clamp the value before it's passed into the shadow methods. 



Perhaps this is an issue than Ultra Lighting solves...?

I can't post the game yet, I don't have access to it at the moment. I will try to post it soon. Any help you could provide in the meantime is appreciated!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,552
Reaction score
12,065
First Language
English
Primarily Uses
RMMV
details of the error would be helpful - what script, what line, what is in the line?  Switching from one script to another is not necessarily going to avoid a problem - it might introduce more.  So good to spend some time trying to resolve it before looking for alternatives - "better the devil you know".
 

cavemanK

Villager
Member
Joined
May 17, 2016
Messages
28
Reaction score
9
First Language
English
Primarily Uses
Thanks! Apologies for taking so long to reply. I've attached a picture of one of the errors I got. As I've been working, I've noticed that it occurs with lower frequency in low-contrast lighting conditions:


.View attachment 55605


And another:

/monthly_2017_01/floatOFR.png.5de8d9a1adce14d703872962a03f6a74.png


The line of the error changes based on which parameters are provided to the method (or whatever they're called in Ruby ()=]). From what I can tell, it's mostly occurring in the Block_SL class, but I think it changes every so often. 

Here is the script:

<--snip-->



I'm just working on a few more accessibility things with my game before posting it. The issue is a little difficult to recreate anyways so I'm trying to narrow it down. 

Thanks again
 
 
Last edited by a moderator:

Kes

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,637
Reaction score
10,934
First Language
English
Primarily Uses
RMVXA
cavemanK, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.



If you want to add something, simply edit your earlier post.


In addition, please do not post whole scripts. There are a lot of reasons for this, including that the original sites for the scripts usually contain additional info and bugfixes (if any).  Please provide a link instead.
 

cavemanK

Villager
Member
Joined
May 17, 2016
Messages
28
Reaction score
9
First Language
English
Primarily Uses
Sorry! It's all fixed if you want to remove the second post at some point.

@Shaz the script is linked in original post
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Me: "Finally finished most of my game backlog. Probably time to do some gamedev" | Steam: *offer sales*
If I recorded while I created (what I think is) a small plugin, would you be interested enough in the process to watch it?
I keep trying to explain to clients that the huddle masses behind the old K-Mart are a Fallout Reenactment group. Somehow I don't think they believe me. :LZSskeptic:
Hey people! What do you think about a core plugin? This will save some lines of code that I repeatedly use in all my plugins...
Wondering if I should make my enemies scale in my non-linear rpg. I'm leaning towards yes, but I don't want to use Yanfly's plugin...

Forum statistics

Threads
94,594
Messages
922,168
Members
124,464
Latest member
foghiszdenisz
Top