Hi everybody,
I was just taking a look over the community threads and find out some flashlight ones.
So, I've thought that was cool and wrote my own version, but I'm getting a strange bug.
When the player reaches a specific Z coord, the light simply stops being rendered, I really tried everthing, but I can't figure out whats happening.
That "specific z coord" is totally random, each map stops rendering it in a diffrent z coord.
There is a test map inside the zip file.
I'm using the latest Eduke32 version.
flashlight.zip (68.55K)
Number of downloads: 185
Page 1 of 1
Polymer flashlight suddenly stops rendering
#1 Posted 24 November 2020 - 05:37 PM
This post has been edited by RPD Guy: 24 November 2020 - 05:37 PM
#2 Posted 24 November 2020 - 05:59 PM
I tried some stuff and I've got nothing. I did determine the following:
-the light does have the correct sector at all times and the problem is not related to that
-it doesn't matter whether you use "setsprite" to set the coords and sector or set them all individually
-the problem persists regardless of whether you use the positioning offset code to make it slightly to the right of the player, and also regardless of whether it's at the player's head height or lower
-it also doesn't matter whether you use statnum 14 (light) for the SE or the regular SE statnum of 3
-the light already has maximum priority, and manually setting that by setting cstat makes no difference either
-it doesn't matter if you delete the other lights in the map -- the flashlight is determined to turn off when you reach that height regardless
In short, yes its fucked and nothing that you can do seems to matter. I'm glad that I'm no longer trying to develop for Polymer.
This post has been edited by Danukem: 24 November 2020 - 06:33 PM
#3 Posted 24 November 2020 - 07:34 PM
I discovered this problem long ago. My solution was to raise the whole map up until its lowest point is high enough that the light works. Before that workaround I pulled out a few handfuls of hair in frustration.
This post has been edited by Mark: 24 November 2020 - 07:36 PM
#6 Posted 24 November 2020 - 08:17 PM
Mark, on 24 November 2020 - 07:55 PM, said:
It still would be great to know why it happens.
I am curious too, I guess this problem might have something with the behavior that some sectors don't let the light pass, due to it's relative positioning with the light source.
Maybe you can't understand what I'm trying to explain up there, english is not my native language, so it's hard to figure out how to make it clear, so here is a fresh printscreen:
EDIT: This also happens when you move the light source (SE) and don't update it's sectnum (as Dan mentioned before)
This post has been edited by RPD Guy: 24 November 2020 - 08:21 PM
Share this topic:
Page 1 of 1