Page 1 of 1

GZDoom will not run if sectorlights in GLDEFS specify size.

Posted: Wed Aug 05, 2015 19:58
by Aliotroph
I've tested this in several versions, including the latest dev build (g2.1.pre-1196-g02c3828).

I added a light to GLDEFS that looks like this:

Code: Select all

sectorlight PickupGlow
{
	color 0.5 0.5 1
	size 7
	scale 0.5
	offset 0 0 0
	dontlightself 1
	subtractive 0
}
It works nicely as a point light (minus the scale parameter), but when I try to assign any size to a sector light GZDoom emits the following on start:

Execution could not continue.
Script error, "cubetest5.wad:GLDEFS" line 33:
Unknown tag: size

If I take out the size line it works properly and displays whatever the default size is for a light.

Re: GZDoom will not run if sectorlights in GLDEFS specify si

Posted: Sat Aug 08, 2015 15:40
by Graf Zahl
Sector lights do not have a 'size' property, just like the error says, they use the sector's light level instead, that's the whole point of their existence.

Re: GZDoom will not run if sectorlights in GLDEFS specify si

Posted: Mon Aug 10, 2015 5:23
by Aliotroph
That makes more sense when I consider the only intensity control for point lights is their size. I see the wiki has been updated too.

Does the scale property work? Actors in dim sectors get smaller lights and bright sectors give large lights, but they don't seem to be affected by by the scale.