Khas Ultra Fog Error

I recently started a new project in VX Ace for testing purposes, and while testing Khas' Ultra Fog, I received an error that says

Code:
Script 'KUL | Ultra Fog' line312 NoMethodError occurred.

undefined method 'initialize_fog' for
#<Spriteset_Scene:0xe92f384>

I went back to one of my older projects that used the Ultra Fog script, and it works fine there. All of Khas' scripts are above any other custom scripts I'm using, and the only difference I can immediately notice between my old project and new project is the automatic addition of NeonBlack's Star Passability and Event Jitter bug fixes above Materials, and removing those doesn't seem to fix it.

Could there have been an update to one of VX Ace's default engine scripts that made Khas' Ultra Fog unusable? And if so, would anyone be able to provide a solution?
it's basically missing some data, but unfortunately doesn't tell which type of data it is missing.

can you follow the link "How to use a script" in my signature to the bughunting section, download and install a backtracer script in your project and then try to get the error again with the console open?

The backtracer will put the full error trace on the console, and we would need a screenshot of that to find out what exactly is happening.
Thank you! Using Hime's backtracer, I managed to track down the issue to the 'Scene Event Animations' addon for Hime's Scene Interpreter script, disabling that allows Ultra Fog to run perfectly. The console also lists Galv's Character Effects script for some reason, though Ultra Fog runs fine with it enabled, so I'm not sure what the issue there is.

The console readout is attached below.
Could be just a script order.
I admin I'm not using Khas Ultra Fog, but I have the Ultra Lighting. And I have Hime scene Interpreter as well with no issues.

Maybe you could just put it above or below the other scripts.
Could be just a script order.
I admin I'm not using Khas Ultra Fog, but I have the Ultra Lighting. And I have Hime scene Interpreter as well with no issues.

Maybe you could just put it above or below the other scripts.
Yeah, that was the first thing I tried once I realized which scripts were clashing, unfortunately no luck :/ It runs into an error regardless of script order. Until I or someone else finds a solution I suppose I could always just forgo the Ultra Fog script entirely and add in a fog using pictures, it'll just take some extra steps.
I just loaded up the KUL demo and threw in scene Interpreter and the only thing I found wrong was that scene Interpreter broke Khas Message System
Which I fixed by commenting out the section at the bottom for messages.
@LucaBicono what the backtracer basically does is listing all scripts that are in the process stack when an error is found. That is why it always ends with "main" and the command to start the game.

That does not mean that all of the lines are problems, it just means that these are the functions that currently handled the data when the engine found part of it missing.
That can indicate that two scripts are incompatible or messing with each other, but it is not a guarantee for that.

But it provides more infor than that, and if someone else get the scripts working together that you have problems with, then you need to look at that "more info".
In your specific case the functions directly before the error is called are all dealing with scanning a note for a command and trying to execute it.

Together with @Roninator2 's tests this suggests to me that you made a mistake in the data for the command to start that particular light or fog.
try to find the event or whatever that is being called at that moment and check that for configuration errors or typo's.
@LucaBicono what the backtracer basically does is listing all scripts that are in the process stack when an error is found. That is why it always ends with "main" and the command to start the game.

That does not mean that all of the lines are problems, it just means that these are the functions that currently handled the data when the engine found part of it missing.
That can indicate that two scripts are incompatible or messing with each other, but it is not a guarantee for that.

But it provides more infor than that, and if someone else get the scripts working together that you have problems with, then you need to look at that "more info".
In your specific case the functions directly before the error is called are all dealing with scanning a note for a command and trying to execute it.

Together with @Roninator2 's tests this suggests to me that you made a mistake in the data for the command to start that particular light or fog.
try to find the event or whatever that is being called at that moment and check that for configuration errors or typo's.
I see, thank you for explaining! As far as I can tell, it only seems to come up with an error when loading a map with a notetag in the map properties themselves which is what creates the fog. As far as I can tell, I have the syntax correct, that being the notetag is written down as [fog fog_name]. As far as I can tell, there's no script call commands in the script's instructions or the user guide pdf that allow me to change the fog through script calls, so I can only set the fog up once per map through map property notetags.
That seem to point to a three-part-interaction.
if disabling the animation add-on for the scene interpreter makes the command go through without problems, and all other functions are compatible like the test of roninator says (very likely he didn't test that specific function), then most likely the data processing of the map note by one of the scripts changes it far enough to cause problems with the other one.

This goes a bit too far into the specific code for me (I probably know more about the theoretical sides of how computers and programming work than most other people here, but never got down to the specifics of RGSSx and don't have those script either).

But I would suggest as a test is adding a few spaces to that map note in front and at the end and between all arguments. Spaces are used to structure commands and indicate data points, and depending on how the note is processed this can solve a few problems with data disappearing.
(unlikely because both Tsukihime and Khas are better programmers than to make the mistakes I think of, but doesn't cost you more than a minute to test).
I also added in Galv's Character Effects. I can't get it to break.
What is in the settings for the fogs?
Ruby:
  "mountain" => {
    :graphic => "fog1",
    :opacity => 50,
    :blend => 0,
    :vx => 0.5,
    :vy => 0.00
  },
Did you use the file name or the tag name?

What is your script order?
Can you provide a screen shot of the scripts?
1646272414897.png


disabling the animation add-on
Confused about what you are referring to. the only part of the scene interpreter I disabled was this
Ruby:
class Scene_Map
  def create_message_window
    @message_window = Window_SceneMessage.new unless @message_window && !@message_window.disposed?
  end
end

The fog is automatically loaded on the map when the map is loaded acording to the note tags.
1646272621269.png


It's likely some mistake in the settings.
Confused about what you are referring to.
the comment from the OP earlier:
I managed to track down the issue to the 'Scene Event Animations' addon for Hime's Scene Interpreter script, disabling that allows Ultra Fog to run perfectly.
My mistake. I didn't have that added in. I thought this was just the scene interpreter
Let me test now
Okay! So! I may have found a solution?? Just by messing around???

I noticed that both Ultra Fog and Scene Event Animations used a '@spriteset'...I wanna say variable? So, I went into the SEA script and changed all instances of 'spriteset' into 'spritesets' instead. As far as I can tell that fixed it, and both scripts are now working without issue, though I'm not sure if I may have accidentally just broken SEA and just haven't realized it yet. Looking through the base engine scripts for VXA, I can't find any other reference to 'spriteset', so the working theory right now is that it was just a matter of both scripts using the same name for separate variables, as coincidental as that may sound.

For posterity's sake, however;
I also added in Galv's Character Effects. I can't get it to break.
What is in the settings for the fogs?
Ruby:
  "mountain" => {
    :graphic => "fog1",
    :opacity => 50,
    :blend => 0,
    :vx => 0.5,
    :vy => 0.00
  },
I have those same settings as well.
Did you use the file name or the tag name?
Tag name, so the notetag is written as [fog mountain].
What is your script order?
Can you provide a screen shot of the scripts?
khasBug2.png

Original thread: https://forums.rpgmakerweb.com/threads/khas-ultra-fog-error.145379/