Pablojc

MJ Dash 8 Q-400 problem after assigning a command

Recommended Posts

Good evening everyone,

I am using linda for MJ Dash 8 Q-400 with module 2.5 I only use Saitek Panels.

My problem is that after assigning a command to a button or switch, I get this error:
LUA Error: ... a-cfg / aircrafts / Majestic Dash 8 Q-400 / config-mcp.lua: 306: attempt to perform arithmetic on global 'n' (a table value)

It does not seem to work, but after closing FSX and opening again, all assignments work fine. I already changed the original ".default" for ".lua" file.
The problem is that they do not work immediately and can not check in hot.

Thanks for your support.
Paul

(My apologies, I used google translate)

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

The config-mcp.lua error suggests that you are trying to run the VRInsight panel when you say you only use the Saitek Panels. I suggest you go to Setup Combo page and disable the MCP panel. Then click on restart Lua engine. 

If this does not work I need to ask which version of LINDA you are using. If you still have the problem please follow the fault diagnosis thread procedure and send me the log files. 

Share this post


Link to post
Share on other sites

Thanks Scot for your quick reply.

I already have disabled MCP combo setting in the "Setup MCP Combo".
I sent you the information requested.

Thanks in advance

Paul

Share this post


Link to post
Share on other sites

Hi Paul, thank you for your email with the logs. Can I offer you a belated welcome to the LINDA forum?

You are using a very old version of LINDA (1.1.3) which I am unable to support. Please download and install the latest LINDA 3.0.1 which is compatible with all FSX/P3D 32- and 64-bit versions. If this still gives you problems, please turn on Verbose GUI and LUA logging in LINDA Setup. Make sure you have the latest version of the Majestic Dash 8 Q400 module (2.5) aircraft module installed.

You did not say what version of FSUIPC4 you are using. This needs to be the latest registered version 4.469. You will also need to edit the FSUIPC4.ini file (in /FSX/modules), search for LogOptionProtect and change this setting to NO.

LINDA 3.0.1 does support the Saitek Panels and does not require Spad/SpadNxt to be running. To set this up, go to Setup LINDA and tick the Saitek Panels checkbox. Then go to Setup Joysticks and disable the Radio and Multi panels (if present). If you wish to use Spad/SpadNxt, then untick Saitek Panels on Setup LINDA and disable all Saitek panels in Setup Joystick.

Please note that the Saitek Panels only work fully for standard default FSX aircraft. Some advanced aircraft like the Q400 do not comply with the standard interface and therefore may not work correctly with your panels.

Should you still see the error message of others please send me the log files again by email.

Share this post


Link to post
Share on other sites

Thanks for the welcome to the forum and your answer.

I commented that I downloaded and installed (yesterday after writing to you) version 3.0.1 of Linda and I had many strange problems: the screen of the radio panel and multipnael when starting FSX and Linda, they start to blink. Also the numbers in the screen of the multipanel, marked numbers nothing with reality, also makes increases in altitude of 400ft in 400ft, but the Airplane MCP, increases of 100ft in 100ft, the illuminated buttons of HDG, NAV, IAS, ALT, VS, APR and REV and the landing gear lights were also crazy.

I already downloaded the MJ Dash 8 Q400 module ver. 2.5 (but in LINDA when selecting this Airplane, I read "Module ver 2.4 up right.") I also have FSUIPC 4.469 registered.
I am currently using PMDG airplanes (737NGX and 777) with Linda and Spad and I have been able to set and operate any button, switch or lever.

I will reinstall LINDA 3.0.1 and follow the steps you recommend to see if everything works without using SPAD.

Thank you very much for your support and I will give you the results.

Paul

Share this post


Link to post
Share on other sites

Hi Paul

With LINDA 3.0.1 I have added an indicator to the Saitek Panels which flash the Switch panel landing gear lights, the Multi panel AP buttons and display dashes on the Radio panel. This is to prompt the user to press a switch/button to ensure the panel switch state is read. This is explained in the Release Notes.

If your Saitek Panel displays are blinking then this is because you have 2 sets of software trying to write to it. As mentioned, the panel displays ONLY reflect the values available in FS default aircraft.

Advanced aircraft like the Q400 do not use the FSX standard and displays may not match between the panels and the simulator. The same applies to PMDG aircraft. I recommend that you use an FSX Default like B58 for setting and ensuring the correct software (LINDA or Spad) is controlling the panels. This is before loading your chosen aircraft. A method of synchronising the advanced aircraft with the panels is being developed but I can not give you a timescale.

Let me know how you get on.

 

Share this post


Link to post
Share on other sites

Thanks Scot,

I keep you informed of the results. I'm sure will annoy you, until get the panels ready and enjoy a more real flight.

Really grateful.

Paul

Share this post


Link to post
Share on other sites

I won't be annoyed. The important point is to get you up and running. 

Share this post


Link to post
Share on other sites

Hi Scot, I hope you're well.

I have already installed and running the new version of LINDA 3.0.1, and everything works fine. I have some flaws:

1- Whenever I open FS and LINDA, is it normal for me to press a button to make the all panels work?

2- My Saitek Multi Panel does not display the same number in the MCP ALT panel of the plane. Also when I turning the rotary knob the lights of the Multi Panel buttons blink and stay off until I press any of them.

I have to keep using SPAD because otherwise I can not use the MP to assign ALT, HDG, IAS ... etc.
I'm waiting for your suggestion.

Regards,
Paul

Share this post


Link to post
Share on other sites

1 - yes. You need to operate a button/switch on each panel to ensure that the correct switch positions are auctioned by LINDA. 

2 - What version of MCP do you have? Additional code is required to synchronise the MCP and Multi Panel displays. Are you still using the Q400 or have you checked with a default aircraft first. 

Share this post


Link to post
Share on other sites

Excuse me Scot, do not explain it well.

The MCP said on the plane. I do not have MCP physical panel.
I'm doing tests with the PMDG 737NGX which is the plane I use very frequently.

I read in a post, that adding some codes in the file "action.lua", could make that well functions the synchronization of the numbers in the panel of Saitek and the one of the airplane. Do you know if it works?

This is the link:

Paul

Share this post


Link to post
Share on other sites

I am sorry if I misunderstood you. It is difficult to read minds at a distance. You do need to say whether you are referring to the simulation or the hardware and what aircraft you are using. The title of this thread that you started refers to the Q400 not the PMDG 737NGX. 

As I have tried to explain above, the Multi Panel ONLY works with the default aircraft and not advanced aircraft like the Q400 or 737NGX. The discussion by CrokyBird is a way to overcome this shortcoming but I have not investigated this any further as I do not have the time at present. It will be later this year before I can look at this problem.

Please feel free to experiment for yourself but please remember I can not support such attempts. It is not recommended that you make any changes to the actions.lua file as this file will be overwritten with new updates. You should use the aircraft's user.lua file for new or modified code.

Share this post


Link to post
Share on other sites

Thank you Scott for your response.

Sorry that I have deviated from the main topic, I started with the MJ Q400 and ended up complicating you with the PMDG 737 ..... sorry man I want everything to work perfectly well very fast !!! .... jejeje

When you say that you do not modify the file "action.lua and do it in the" user.lua, the truth is I do not know how to do it.  The curious thing with this modification in the file "action.lua", is that now the altitude shows in feet and meter .... jejejeje I am like crazy.

Now I will start with the MJ Q400 to see how everything is going and I will comment on the results.

Thanks Scot.
Paul

Share this post


Link to post
Share on other sites

Hi Paul, I am unable to teach you LUA programming but there are plenty of examples within LINDA and references on the internet. 

The code shown in the example in the actions.lua can simply be placed in the user.lua. The user.lua is loaded after the actions.lua. Any functions in user.lua 'override' or replace those in the actions.lua. 

Share this post


Link to post
Share on other sites

Ok Scot, thanks for your support and I keep you informed of what resulted from the experiment.

I will start the programming with the MJ Q400 and ask you for help if necessary.

Thanks again for your patience.

Paul

Share this post


Link to post
Share on other sites

Hi Scot

Well everything works fine with the MJ Dash 8 Q400, now I can program the buttons and activate immediately (they already work without restarting the FS).

The other thing I tell you about, on PMDG airplanes (737-777), when I turn the knobs for altitude, the screen is displayed in meter and feet and is uncomfortable to read (happens in the SMP). The same happens with IAS, HDG and VS.

I will continue playing with SPAD and LINDA to see if I can fix it. Any suggestions you have please let me know.

Greetings from Caracas.
Paul

Share this post


Link to post
Share on other sites

Hi Scot, I hope everything is fine.

I already installed everything clean, the latest version of LINDA, FSUIPC and MJ Dash8 Q400. Now the settings of the buttons and switches are activated immediately.

The problem now is when turning the knob to increase or decrease the Alt, VS, IAS and HDG, the Multi Panel display shows the altitude in feet but when releasing the knob, the Multi Panel shows the altitude in meters again. This happens in the MJ Dash8 Q400 and PMDG 737 and 777.

Any suggestions?

Thanks in advance

Paul

Share this post


Link to post
Share on other sites

Hi Paul

There are differences in the way altitude is stored in different Flt Sims and some aircraft. The FSUIPC offset definition is in Metres and this has to be converted for use in Feet except if using P3D or A2A aircraft (i.e. C172/C182). There is a test in LUA to correct this differences. I have tested with default and A2A aircraft are they are working correctly. 

As I am sure I have mentioned before, the Multi Panel will not work correctly with Q400 or PMDG aircraft as they are not standard 'FSX' aircraft. Please remind which Flt Sim, LINDA and FSUIPC versions you are using.

Share this post


Link to post
Share on other sites

The funny thing is that with LINDA version 1.0.3, I did not have that error with any airplane. The problem started after I made the update to version 3 of LINDA.

Thanks

Paul

Share this post


Link to post
Share on other sites

I forgot to tell you that also when using the rotating knob the lights blink in the multipanel

Paul

Share this post


Link to post
Share on other sites

A lot has changed over the past 2 years between 1.13 and 3.0.1. That includes changes to the management of altitude and the introduction of P3D v3 and v4. You still don't say what versions you are using of FSUIPC and FSX/P3D.

Share this post


Link to post
Share on other sites
1 minute ago, Pablojc said:

I forgot to tell you that also when using the rotating knob the lights blink in the multipanel

Paul

That suggests you have not set up Saitek options correctly. What are you using to drive the Multi-panel?

Share this post


Link to post
Share on other sites
1 minute ago, ScotFlieger said:

That suggests you have not set up Saitek options correctly. What are you using to drive the Multi-panel?

I'm using to control the multipanel only SPAD

Share this post


Link to post
Share on other sites

OK. When using SPAD you need to deselect Saitek Panels on Setup LINDA and disable the Multi-panel in Setup Joysticks.

I will take a look at the Altitude Metre/Feet issue for FSX with Q40/PMDG when I can find some time. It will not be quick. However, using SPAD only (with LINDA disabled as above) should remove this problem for you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now