Timers not being invoked during replay
Danita opened this issue · 0 comments
This can be observed on the default B738. Open the file:
\Aircraft\Laminar Research\Boeing B737-800\plugins\xlua\scripts\B738.sound\B738.sound.lua
The timer in question is on line 50: trim_timer()
that should set the dataref laminar/B738/sound/trim_rotation_speed
every 200 msec with the trim rotation speed. You can observe the timer working correctly during normal play using DataRefTool or DataRefEditor and watching the values for the dataref in question.
Nevertheless, during replay mode the timer is not invoked, so the dataref is not updated, even though the B738_set_trim_rotation_speed()
which starts the timer is invoked on after_replay()
. Sometimes, under certain conditions, the timer executes again for a while during the replay but I haven't been able to reproduce consistently. Returning to normal play (exiting replay) resumes the timer execution normally.
This breaks the trim wheel sound on the B738 as well as other aircraft I'm working on.
Update: tested in XP11.41 and XP11.50b4