For some reason, sectors with or without a tag in the maps I'm working on are randomly changing their light level to 0 (or so). The maps are for HeXen and are connected in a hub.
Can anyone think of a reason this is happening?
Edit: It only seems to happen in GZDoom.
Randomly Changing Light Levels
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- ChronoSeth
- Posts: 1631
- Joined: Mon Jul 05, 2010 2:04 pm
- Location: British Columbia
Re: Randomly Changing Light Levels
At the risk of being obvious or stupid: Do you make any calls with 0 as a sector argument? There may well be some sector-related function that does not treat 0 as a special value.
Are there any specials, scripts or similar things at all; particularly those that affect lighting? What revision of Gzdoom are you working with, and what Zdoom revision does it match? (Also, what version of Zdoom are you working with, where this does not happen, and does it still happen/not happen in the latest revision...)
Are there any specials, scripts or similar things at all; particularly those that affect lighting? What revision of Gzdoom are you working with, and what Zdoom revision does it match? (Also, what version of Zdoom are you working with, where this does not happen, and does it still happen/not happen in the latest revision...)
- ChronoSeth
- Posts: 1631
- Joined: Mon Jul 05, 2010 2:04 pm
- Location: British Columbia
Re: Randomly Changing Light Levels
I am not using any specials which affect lighting in any way. The only thing on the entire map which affects lighting is the generic lightning effect.
The only specials I'm using which have 0 as the affected sector are doors. (and last time I checked, a light tag of 0 means ignore)
This is very unusual though, because some of the sectors which are being affected have tags while others don't.
I'm using GZDoom r1217 (ZDoom r3224). The ZDoom version I tested with is r3131.
The only specials I'm using which have 0 as the affected sector are doors. (and last time I checked, a light tag of 0 means ignore)
This is very unusual though, because some of the sectors which are being affected have tags while others don't.
I'm using GZDoom r1217 (ZDoom r3224). The ZDoom version I tested with is r3131.
- Salad Viking
- Posts: 752
- Joined: Tue Apr 20, 2010 8:58 pm
- Location: In high orbit
Re: Randomly Changing Light Levels
Actually, this exact thing is happening to me, too. At first I thought it was a one-time glitch, but I've just noticed that it happens every time I play Hexen. Some sectors are just randomly dark. I'm playing the stock Hexen levels by the way, so it's not a mapping error.
Re: Randomly Changing Light Levels
ZDoom is currently at r3242. I don't know much about the rendering of Zdoom, so I can't tell if any patches in the range 3131-3224 introduced a lighting bug. I can barely observe that lighting is mentioned in the changelog. This looks like a bug. Perhaps worth trying to replicate in the latest ZDoom & GZDoom (I don't know what the latest GZdoom is). Salad Viking, are you running GZ too, and what revision numbers?
Unless the latest revisions fix it, I'd say make a bug post and list your observations there. Any pattern & reproduction of glitch may be of interest. If you save a game and load it repeatedly, do the same glitches repeat themselves, or do they vary? (I'd test things like that, you might just test the latest revisions and see if it needs a bug report.)
One could also go back to ZDoom and GZdoom 2.5 and see if the bug was already there.
Unless the latest revisions fix it, I'd say make a bug post and list your observations there. Any pattern & reproduction of glitch may be of interest. If you save a game and load it repeatedly, do the same glitches repeat themselves, or do they vary? (I'd test things like that, you might just test the latest revisions and see if it needs a bug report.)
One could also go back to ZDoom and GZdoom 2.5 and see if the bug was already there.
Re: Randomly Changing Light Levels
It looks like a genuine enough problem. I fired up Hexen in GZdoom r1218 and got the following:




I restarted my game (without quitting) and this time all the areas that I screenshotted above were fine...

but there was a dark sector by the front door that wasn't there the previous time.

I restarted my game again and the front door and other areas were fine, but this area was black and it hadn't been on the two previous plays.

However, it is a Zdoom problem, not GZdoom. Zdoom r3242


The above areas were all dark. No flickering or anything, just dark.
[edit] Bug reported http://forum.zdoom.org/viewtopic.php?f=2&t=30108
My guess is something to do with the recent change to allow light levels to be set outwith the 0-255 range. [/edit]




I restarted my game (without quitting) and this time all the areas that I screenshotted above were fine...

but there was a dark sector by the front door that wasn't there the previous time.

I restarted my game again and the front door and other areas were fine, but this area was black and it hadn't been on the two previous plays.

However, it is a Zdoom problem, not GZdoom. Zdoom r3242


The above areas were all dark. No flickering or anything, just dark.
[edit] Bug reported http://forum.zdoom.org/viewtopic.php?f=2&t=30108
My guess is something to do with the recent change to allow light levels to be set outwith the 0-255 range. [/edit]

