View Issue Details

IDProjectCategoryView StatusLast Update
0003308The Dark ModCodingpublic08.01.2023 03:20
Reportertels Assigned Tonbohr1more  
PrioritynormalSeveritynormalReproducibilityalways
Status closedResolutionunable to reproduce 
Product VersionTDM 1.08 
Fixed in VersionTDM 2.00 
Summary0003308: Targets of worldspawn are triggered in frame 0, but their script objects are initialized later
DescriptionIn case of entities with script objects, targeting them from worldspawn at map start does not work. A light f.i. that starts on, and should be turned off, stays on.

The reason is that the triggering happens in frame 0, bevore the script object is initialized. It later initializes the light again to be on based on the spawnargs.
Steps To ReproduceTarget atdm:lamp_electric_grill_lit from worldspawn.
Additional InformationThis can be fixed in two ways:

Toggling a light on/off can change the spawnargs, so the later init() call in tdm_light_holder will do the right thing.

Alternatively, we could delay the targeting from worldspawn by 1 or 2 frames.
TagsNo tags attached.

Relationships

related to 0003302 resolvedtels Placing the playerstart inside a trigger_once_entityname causes crash. 

Activities

Springheel

Springheel

14.07.2013 14:42

administrator   ~0005723

If anyone thinks it's important to fix this for 2.0, or is volunteering to do so, please speak up now; otherwise I'll remove it from the roadmap for 2.0.
grayman

grayman

23.07.2013 19:51

viewer   ~0005877

I took a look at this, and can't duplicate the problem.

I targeted a lit light from worldspawn, and it was off when the map started. Looking in the code, I can see that worldspawn triggers its targets in frame 0.

When I hit a button that also targets the light, the light turns on and off normally.

So I don't know what the problem is. Perhaps tels already fixed it.

Issue History

Date Modified Username Field Change
27.01.2013 00:11 tels New Issue
27.01.2013 00:11 tels Status new => assigned
27.01.2013 00:11 tels Assigned To => tels
27.01.2013 00:12 tels Relationship added related to 0003302
15.05.2013 15:26 tels Assigned To tels =>
03.06.2013 02:21 grayman Assigned To => grayman
03.06.2013 02:21 grayman Status assigned => new
03.06.2013 02:23 grayman Assigned To grayman =>
14.07.2013 14:42 Springheel Note Added: 0005723
23.07.2013 19:51 grayman Note Added: 0005877
02.08.2013 20:28 Springheel Target Version TDM 2.00 =>
08.01.2023 03:20 nbohr1more Assigned To => nbohr1more
08.01.2023 03:20 nbohr1more Status new => closed
08.01.2023 03:20 nbohr1more Resolution open => unable to reproduce
08.01.2023 03:20 nbohr1more Fixed in Version => TDM 2.00