View Issue Details

IDProjectCategoryView StatusLast Update
0000667The Dark ModCodingpublic29.08.2008 14:15
ReporterSneaksieDave Assigned Togreebo  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSVN 
Fixed in VersionSVN 
Summary0000667: Divide by zero error in rand_osc.script
DescriptionEach time I turn the player lantern, I get the following three warnings:

WARNING: script\rand_osc.script(112): Thread 'idlight_light_lantern_moving_49': Divide by zero
WARNING: script\rand_osc.script(113): Thread 'idlight_light_lantern_moving_49': Divide by zero
WARNING: script\rand_osc.script(114): Thread 'idlight_light_lantern_moving_49': Divide by zero
TagsNo tags attached.

Activities

greebo

greebo

06.05.2008 05:17

administrator   ~0001195

This is due to the lantern light still being a "moving" light with all oscillation frequencies set to 0. I'd suggest making the lantern light a non-moving one.
SneaksieDave

SneaksieDave

06.05.2008 18:19

reporter   ~0001196

Ah, that makes sense. Okay, I'll take on the fix to the lantern, and when that's finished, will open this back up for a general fix to the script (I assume it's a good idea to handle that for other purposes).
SneaksieDave

SneaksieDave

06.05.2008 18:42

reporter   ~0001197

I've fixed the problem with the player lantern; it no longer throws the warnings.

Now submitting this bug back to the pool for the general fix of the potential for div by zero in the script (low priority; for all I know maybe this exists everywhere in Doom3, and that's why they catch it).
greebo

greebo

06.07.2008 07:47

administrator   ~0001441

The script is now terminating if all frequencies are zero and a warning is emitted, suggesting to convert this light to a non-moving one.
SneaksieDave

SneaksieDave

29.08.2008 14:15

reporter   ~0001529

Confirmed for pre- and post- oscillation versions of lamp.

Issue History

Date Modified Username Field Change
06.05.2008 02:45 SneaksieDave New Issue
06.05.2008 05:17 greebo Note Added: 0001195
06.05.2008 05:18 greebo Status new => acknowledged
06.05.2008 18:18 SneaksieDave Status acknowledged => assigned
06.05.2008 18:18 SneaksieDave Assigned To => SneaksieDave
06.05.2008 18:19 SneaksieDave Note Added: 0001196
06.05.2008 18:42 SneaksieDave Note Added: 0001197
06.05.2008 18:42 SneaksieDave Assigned To SneaksieDave =>
06.05.2008 18:42 SneaksieDave Status assigned => feedback
06.05.2008 18:43 SneaksieDave Priority normal => low
06.05.2008 18:43 SneaksieDave Severity normal => minor
06.07.2008 07:46 greebo Status feedback => assigned
06.07.2008 07:46 greebo Assigned To => greebo
06.07.2008 07:47 greebo Note Added: 0001441
06.07.2008 07:47 greebo Status assigned => resolved
06.07.2008 07:47 greebo Fixed in Version => SVN
06.07.2008 07:47 greebo Resolution open => fixed
29.08.2008 14:15 SneaksieDave Note Added: 0001529
29.08.2008 14:15 SneaksieDave Status resolved => closed