View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003051 | The Dark Mod | Coding | public | 06.03.2012 07:17 | 13.12.2022 04:58 |
Reporter | tels | Assigned To | duzenko | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | TDM 1.07 | ||||
Target Version | TDM 2.11 | Fixed in Version | TDM 2.11 | ||
Summary | 0003051: Targeting a bind children causes endless "trigger" loops | ||||
Description | When you have f.i. a binary mover that targets an entity, which is at the same "bind time" (e.g. the mover is bound to it, or the entity is bound to the mover, or both are bound to the same bindmaster), then activating the mover will trigger the mover's targets, which includes the mover itself, which will result in an endless trigger loop. If there is a mover involved, the loop will continue whenever the lever/button etc reaches on of it's end states. If this is an "instant" triggering entity, a lockup with 100% CPU will likely be the result. | ||||
Additional Information | Proposed solution is to not activate a bound children if it is the same as the entity that started the activation in ActivateTargets() in Entity.cpp. | ||||
Tags | No tags attached. | ||||
The one application (lamp entities with a lever attached that targets the lamp, to toggle it on/off) works now because the loop is stopped in the script: we only activate targets when these targets where not already activated as bound children, so the lever does work correctly. But this bug might still exist if you attach a lever to another mover, and then target one from the other. Still investigating to see if it can be triggered. |
|
Fixed by Duzenko in Rev 9923 https://github.com/stgatilov/darkmod_src/commit/7a6eeb93aad43b342466b7781b31e8f0482758f6 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
06.03.2012 07:17 | tels | New Issue | |
06.03.2012 07:17 | tels | Status | new => assigned |
06.03.2012 07:17 | tels | Assigned To | => tels |
06.03.2012 07:20 | tels | Relationship added | related to 0003048 |
06.03.2012 22:35 | tels | Note Added: 0004375 | |
15.05.2013 15:26 | tels | Assigned To | tels => |
13.11.2014 01:42 | grayman | Status | assigned => new |
13.12.2022 04:57 | nbohr1more | Assigned To | => duzenko |
13.12.2022 04:57 | nbohr1more | Status | new => resolved |
13.12.2022 04:57 | nbohr1more | Resolution | open => fixed |
13.12.2022 04:57 | nbohr1more | Fixed in Version | => TDM 2.11 |
13.12.2022 04:57 | nbohr1more | Target Version | => TDM 2.11 |
13.12.2022 04:58 | nbohr1more | Note Added: 0015556 |