[v2.08] Timer Failed! - Dusk/dawn events
Peekofwar opened this issue · 4 comments
I've noticed that whenever the game time or weather ticks over, the dusk and dawn events don't seem to trigger. I have two relays in my map called dusk
and dawn
.
This particular error happened at dawn:
[StormFox 2] lua/stormfox2/functions/sv_mapio.lua:22: Tried to use a NULL entity!
1. Fire - [C]:-1
2. setELight - lua/stormfox2/functions/sv_mapio.lua:22
3. unknown - lua/stormfox2/functions/sv_mapio.lua:31
Timer Failed! [StormFox2.mi.lights][@lua/stormfox2/functions/sv_mapio.lua (line 29)]
- Set the time a few minutes prior to either dusk or dawn.
- Allow Stormfox to tick over the time.
- There should be a script error in the console.
- Relays won't have triggered.
SF2 will try and turn on/off all "env_projectedtexture", "light_dynamic", "light" and "light_spot"'s on the map, if they meet the following criterias:
- If the entity has "night" or "day" as part of their targetname or named "1". ( or no targetname for light_spot )
- The entitys targetname doesn't have "indoor" in the name.
The error happens because the entity it tried to toggle got deleted. I've made a patch.
Would it be possible for you to upload your map so I can test it?
Would it be possible for you to upload your map so I can test it?
https://steamcommunity.com/sharedfiles/filedetails/?id=2365722107
Heads-up: The next update to the map moves some stuff into instances including the lanterns. This means that the lantern's relays will change from dawn
to dawn-instanceauto7
or instanceauto7-dawn
for example.
If I don't add a prefix or postfix, destroying one lantern will kill all lanterns in the map. I was considering making one dawn
and dusk
relay that would interface with the street lanterns through func_instance_io_proxy
, but that func_
entity doesn't exist in GMod.
Should be fixed in 2.09.
Problem seem to be that weather on the server was nil, therefore never sets the light or update the logic_relays.
Feel free to reopen if it still have problems.