Khas Advanced Fog v3.0

Any news on that update about being able to turn it on and off more easily?
beautiful work! I would also like to see the ability to color the fog as well.
I am having the same issue as an earlier user and I was curious if this problem was ever solved. Everything worked properly back in May. Once I started working on other maps to get my demo ready, (and received a new computer) I went back to complete finishing touches on those maps and they were no longer working. (I also do not have access to the old computer to test if it still works there)

Any help would be awesome!

Edit: Discovered that when I turn "Variable Fog Density" Off. The error stops happening. So the error has something to do with the variable fog density.
For some reason I wasn't getting any notifications from this thread, sorry for not replying to you.

@Fred Ransom I'll see what I can do about this. PIXI is very unhelpful when debugging shader/webgl code, so this will be hard to fix.

@Skurge the order of the plugins matter, so perhaps you need to put fog before lighting. Otherwise you may create a custom fog.

@Gonor that's a cool idea! I'll add this feature to the next update.

@Solis an update is on the way. Hopefully I'll finish it by the end of the month, depending on the bugs I have to fix.

@Izzybelle thanks for reporting the bug. I'll do my best to fix it.
@Khas
This is great news! I'm super excited! Thanks!
Ah very good, that was the source of my problem!
is change of fog color planned?
@Gonor that's a cool idea! I'll add this feature to the next update.

I asked the same question a while ago and according to Khas', he'll add in in the next update.
Just Waiting, But in the Meantime I'm using old school fog. Here is a game and the zip file of the source code.
http://www.game.poweroc.com/Test8/www/index.html
http://www.game.poweroc.com/Test8/Test8.zip
I am having the same issue as an earlier user and I was curious if this problem was ever solved. Everything worked properly back in May. Once I started working on other maps to get my demo ready, (and received a new computer) I went back to complete finishing touches on those maps and they were no longer working. (I also do not have access to the old computer to test if it still works there)

Any help would be awesome!

Edit: Discovered that when I turn "Variable Fog Density" Off. The error stops happening. So the error has something to do with the variable fog density.


Thanks so much haha just updated to the newer plugins and fixed it because of what you did 🙂
Here's the latest update for Advanced Fog! I've implemented new features and solved some important problems. The full list of changes is below:

* Added "Transfer Reset" parameter
If ON, the fog is reset after every transfer (reset to off).

* Added "Auto Battle Fog" parameter
If ON, battles will use the same fog from map!

* Added colored fog
Now fogs can have colors!
You may add the color: {"r": 0-255, "g": 0-255, "b": 0-255} parameter to any fog's definition.

* Fixed bug "pixi cannot read property 'location' of undefined"
This bug happened to some users of other operating systems, but now it has been fixed.

* Fixed bug with uppercase OFF in [fog OFF]
Now it's less confusing to turn off the fog!


After substituting the old plugin, please delete and add it again in the Plugin Manager! You may check the updated tutorial to learn about how to use the new features.

Please note that the terms of use have been updated! If you want to use this plugin commercially, please read them here.

@Izzybelle @Fred Ransom @dragon1up I've fixed the bug you reported!
Here's the latest update for Advanced Fog! I've implemented new features and solved some important problems. The full list of changes is below:

* Added "Transfer Reset" parameter
If ON, the fog is reset after every transfer (reset to off).

* Added "Auto Battle Fog" parameter
If ON, battles will use the same fog from map!

* Added colored fog
Now fogs can have colors!
You may add the color: {"r": 0-255, "g": 0-255, "b": 0-255} parameter to any fog's definition.

* Fixed bug "pixi cannot read property 'location' of undefined"
This bug happened to some users of other operating systems, but now it has been fixed.

* Fixed bug with uppercase OFF in [fog OFF]
Now it's less confusing to turn off the fog!


After substituting the old plugin, please delete and add it again in the Plugin Manager! You may check the updated tutorial to learn about how to use the new features.

Please note that the terms of use have been updated! If you want to use this plugin commercially, please read them here.

@Izzybelle @Fred Ransom @dragon1up I've fixed the bug you reported!
Here's the latest update for Advanced Fog! I've implemented new features and solved some important problems. The full list of changes is below:

* Added "Transfer Reset" parameter
If ON, the fog is reset after every transfer (reset to off).

* Added "Auto Battle Fog" parameter
If ON, battles will use the same fog from map!

* Added colored fog
Now fogs can have colors!
You may add the color: {"r": 0-255, "g": 0-255, "b": 0-255} parameter to any fog's definition.

* Fixed bug "pixi cannot read property 'location' of undefined"
This bug happened to some users of other operating systems, but now it has been fixed.

* Fixed bug with uppercase OFF in [fog OFF]
Now it's less confusing to turn off the fog!


After substituting the old plugin, please delete and add it again in the Plugin Manager! You may check the updated tutorial to learn about how to use the new features.

Please note that the terms of use have been updated! If you want to use this plugin commercially, please read them here.

@Izzybelle @Fred Ransom @dragon1up I've fixed the bug you reported!

Can I have an example of how to change the fog's colours ? Like I've done the following for a map proprieties
[fog dense]
(color: {"r": 100-255, "g": 0-255, "b": 0-255})


Unless it can only be done for custom fogs, in which case an example would be great 🙂 + thanks for fixing up the previous error me and @Izzybelle @Fred Ransom had.
@dragon1up it can be done only with custom fogs. There's 3 fogs there as an example (red, green and blue).

You just need to add a new line with the color:
blue: {
speed: {x: 0.2, y: 0.07},
size: 1.0,
ambientDensity: 60,
playerDensity: 20,
playerRange: 5,
color: {"r": 0, "g": 0, "b": 255} <--- like this! 🙂
},
great work!
@dragon1up it can be done only with custom fogs. There's 3 fogs there as an example (red, green and blue).

You just need to add a new line with the color:
blue: {
speed: {x: 0.2, y: 0.07},
size: 1.0,
ambientDensity: 60,
playerDensity: 20,
playerRange: 5,
color: {"r": 0, "g": 0, "b": 255} <--- like this! 🙂
},


Thanks just got back home..first thing I did was test it out and it works !! Amazing job once again Khas 🙂
Hi I like the fog very much and am looking forward to the new Real-Time shadows for MV.
Sorry to see your Patreon site close. You May want to reconsider the choice after learning
what happens to Engineers from job TO job or when the project is done the job is done.
I did find a easy Bug to fix that you may have fixed already. Here is a fixed line of your code:
Khas.Fog.Settings.TRANSFER_RESET = String(Khas.Fog.PARAMETERS["Transfer Reset"]).toLowerCase() == "on";
After this fix it worked perfectly.
Thank you.
@Fred Ransom thanks! Actually the error happens if you didn't remove/add the plugin again in the plugin manager.
But it's a very simple thing indeed 🙂
is it possible to add the ability to use blend modes on the fog?
@lonewolph I guess it could be done! The fog is a sprite, so blend modes can be applied.
But I won't add any new features to this plugin (more details later!).
Hey @Khas 🙂
Thank you for the update...
I try it on my project and receive this error:
1.png

Original thread: https://forums.rpgmakerweb.com/threads/khas-advanced-fog-v3-0.77678/