Hi everyone !
I am currently in the process of fixing the last inexplicable bugs in my map before releasing a new version.
One of the 2 bugs that makes me pull my hair out because I have no idea why it does not work is the fact that whatever I do, I can't get any weather effect to work in my map.
I first try to setup a global effect for testing in World Editor, I chose Northend light snow.
The weather effect shows in World Editor, but when I test the map, the effect is simply not there at all.
Also, I had Weather change options in my Host Controls triggers, and it does not work any better. Fun thing I used the same code in my old map back in 2004, and it used to work in Frozen Throne :
Note : WeatherEffect is just a global weathereffect variable.
While I am at it, my old map does not show weather effects anymore in Reforged.
Anyone has any idea about what has changed about weather effects with Reforged ?
Does anyone know how to get them to work ?
Note : I checked all my game options so far, and none was related to weather effects.
I am currently in the process of fixing the last inexplicable bugs in my map before releasing a new version.
One of the 2 bugs that makes me pull my hair out because I have no idea why it does not work is the fact that whatever I do, I can't get any weather effect to work in my map.
I first try to setup a global effect for testing in World Editor, I chose Northend light snow.
The weather effect shows in World Editor, but when I test the map, the effect is simply not there at all.
Also, I had Weather change options in my Host Controls triggers, and it does not work any better. Fun thing I used the same code in my old map back in 2004, and it used to work in Frozen Throne :
JASS:
function HostControls_Actions takes nothing returns nothing
.............................
local integer weatherEffect=0
local string typedOrder=GetEventPlayerChatString()
.............................
if (typedOrder=="+rain") then
set weatherEffect='RAhr'
endif
if (typedOrder=="+snow") then
set weatherEffect='SNhs'
endif
if (typedOrder=="+fog") then
set weatherEffect='FDwh'
endif
if (typedOrder=="+sunshine") then
set weatherEffect='LRaa'
endif
if (typedOrder=="+moonlight") then
set weatherEffect='LRma'
endif
if (typedOrder=="+calm") then
set weatherEffect=1
endif
if (weatherEffect>0) then
call PlayGlobalSound(WeatherSnd, WeatherSndDur)
call RemoveWeatherEffect(WeatherEffect)
if (weatherEffect>1) then
set WeatherEffect=AddWeatherEffect(bj_mapInitialPlayableArea, weatherEffect)
call EnableWeatherEffect(WeatherEffect, true)
endif
endif
...........................
endfunction
Note : WeatherEffect is just a global weathereffect variable.
While I am at it, my old map does not show weather effects anymore in Reforged.
Anyone has any idea about what has changed about weather effects with Reforged ?
Does anyone know how to get them to work ?
Note : I checked all my game options so far, and none was related to weather effects.
Last edited: