Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timers not being invoked during replay #5

Open
Danita opened this issue Apr 21, 2020 · 0 comments
Open

Timers not being invoked during replay #5

Danita opened this issue Apr 21, 2020 · 0 comments

Comments

@Danita
Copy link
Member

Danita commented Apr 21, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant