Problem No LuaMFD displayed...why?

Genesis27

New member
Joined
Jul 10, 2009
Messages
86
Reaction score
0
Points
0
Hi...I was wondering if anyone could figure out why the LuaMFD does not show on my left side MFD when I run the Space Shuttle Tutorial....I am using Orbiter 2010 and I have activated the LuaMFD in Modules so I know it should be displayed...but it is not even an option when I hit "SEL" on the left MFD...it even says during the tutorial playback, if the LuaMFD is not showing, activate in modules and restart...I've done this about four times now and still nothing...any thoughts guys ?...thanks
 

Tommy

Well-known member
Joined
Aug 14, 2008
Messages
2,019
Reaction score
86
Points
48
Location
Here and now
How many add-on MFD's do you have? Orbiter is only capable of having so many (forget exact number), so if you've installed a lot of add-on MFD's you may have to disable some in the Launchpad in order to "make room" for the LuaMFD. Also, IIRC there is a Lua module (not an MFD) which also needs to be activated.
 

jambooger

Defender of the Stupid
Donator
Joined
Jan 24, 2010
Messages
241
Reaction score
0
Points
0
Location
Earth for now
Ive got the same problem. I have the LUAconsole but no LUAMFD. I installed it early before other MFD,s and it has never shown available.
 

martins

Orbiter Founder
Orbiter Founder
Joined
Mar 31, 2008
Messages
2,448
Reaction score
462
Points
83
Website
orbit.medphys.ucl.ac.uk
May I suggest to load LuaMFD into Dependency Walker and checking if there are any unresolved library links?

Inexplicable failure of modules to load can often be tracked down to missing runtime libraries.

Dependency walker should either come with your Visual C++ installation, or it can be downloaded here. It is an indispensable debugging and development tool, so every hardcore orbinaut should have it at his/her fingertips.
 

jambooger

Defender of the Stupid
Donator
Joined
Jan 24, 2010
Messages
241
Reaction score
0
Points
0
Location
Earth for now
May I suggest to load LuaMFD into Dependency Walker and checking if there are any unresolved library links?

Inexplicable failure of modules to load can often be tracked down to missing runtime libraries.

Dependency walker should either come with your Visual C++ installation, or it can be downloaded here. It is an indispensable debugging and development tool, so every hardcore orbinaut should have it at his/her fingertips.


Ok I can admit. I am LOST. How can I load into Dependency walker. I have tried to figure it out but,,,, Im LOST :(
 

martins

Orbiter Founder
Orbiter Founder
Joined
Mar 31, 2008
Messages
2,448
Reaction score
462
Points
83
Website
orbit.medphys.ucl.ac.uk
I'm currently in Linux world and I won't boot Windows just to check, but I am sure it is

File | Open | $orbiterroot\modules\plugin\LuaMFD.dll

What else would it be?

Also don't forget to add $orbiterroot to the search path in dependency walker, otherwise you'll get false alarms about modules (such as orbiter.exe) not found.
 

garyw

O-F Administrator
Administrator
Moderator
Addon Developer
Tutorial Publisher
Joined
May 14, 2008
Messages
10,485
Reaction score
209
Points
138
Location
Kent
Website
blog.gdwnet.com
I've just loaded it up myself in Dependancy walker, the process that Martins described worked first time for me.

It's quite a huge file list and on my own PC I seem to be missing the following files:

MSVCP80.DLL
MSVCR80.DLL
MSJAVA.DLL

I've not played with LUA at all so I wouldn't have noticed it but maybe that list above will give you a few pointers?
 

martins

Orbiter Founder
Orbiter Founder
Joined
Mar 31, 2008
Messages
2,448
Reaction score
462
Points
83
Website
orbit.medphys.ucl.ac.uk
Any idea about the version numbers of the missing files expected by LuaMFD.dll ? (if you select full path names, the version string should be part of the file name).

Note that Orbiter itself is linked against version 8.0.50727.4053 of those runtime libraries, so anybody able to run Orbiter at all should be guaranteed to have these installed.

However it may be possible that the Lua dlls themselves are linked against a different version of the (dynamic) runtime libraries. It never occurred to me to check this. Usually, later versions of the runtime libraries can be substituted for earlier ones, but not always and not automatically (this depends on the "policy" files associated with the runtimes, AFAIK). Can you check if there are multiple links to the msvc{r,p}80.dll with different version numbers?

On the other hand, this wouldn't explain why the Lua console works (if indeed it does), but the Lua MFD doesn't (both link to the same Lua dlls). If you can get the console to work, you should also check the LuaConsole.dll in dependency walker. If it shows the same missing libraries it may be a false alarm.
 

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
The dependent assembly identity of both LuaMFD's and LuaConsole's embeded manifests say it's version="8.0.50727.4053" publicKeyToken="1fc8b3b9a1e18e3b".


if the LuaMFD is not showing, activate in modules and restart...
The name of MFD mode used for LuaMFD.dll module in Orbiter is "Terminal MFD" and not "Lua MFD".

---------- Post added at 17:34 ---------- Previous post was at 16:49 ----------

(if you select full path names, the version string should be part of the file name).

If any of the msvc* files are missing, this won't show a version in the full path to it, only a name of file and Error opening file in the next column - I just tested that in dependency walker (added: though only if the path to WinSxS folder of the library isn't set in dependency walker).

(BTW, I'm missing only DWMAPI.DLL, but that's not critical.)
 
Last edited:

jambooger

Defender of the Stupid
Donator
Joined
Jan 24, 2010
Messages
241
Reaction score
0
Points
0
Location
Earth for now
OK Thanks to Martin I was able to use DW to open LuaMFD.dll. If Im reading the results correctly in the bottom payne it says LUA5.11.dll and LUAINTERPRETER.dll cannot be found. These file are in the Orbiter root folder. I dont understand what to do at this point.
 

martins

Orbiter Founder
Orbiter Founder
Joined
Mar 31, 2008
Messages
2,448
Reaction score
462
Points
83
Website
orbit.medphys.ucl.ac.uk
OK Thanks to Martin I was able to use DW to open LuaMFD.dll. If Im reading the results correctly in the bottom payne it says LUA5.11.dll and LUAINTERPRETER.dll cannot be found. These file are in the Orbiter root folder. I dont understand what to do at this point.

Also don't forget to add $orbiterroot to the search path in dependency walker, otherwise you'll get false alarms about modules (such as orbiter.exe) not found.
Did you do this? Do you get the same missing dependencies for LuaConsole.dll (which you said is working for you)?
 

jambooger

Defender of the Stupid
Donator
Joined
Jan 24, 2010
Messages
241
Reaction score
0
Points
0
Location
Earth for now
Did you do this? Do you get the same missing dependencies for LuaConsole.dll (which you said is working for you)?

I just tested LuaConsole.dll and yes I get the same exact missing dependencies, although yes LuaConsole works fine. What does that mean?

I just did a Clean install with no add-ons. TerminalMFD is available now. Is that the same as LuaMFD as ORB speculated above?
 
Last edited:

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
I just did a Clean install with no add-ons. TerminalMFD is available now. Is that the same as LuaMFD as ORB speculated above?
Highlight the LuaMFD entry in Active (or Inactive) modules on the Launchpad, and read:
TERMINAL MFD:

Adds the "Terminal" MFD mode - allows the execution of Lua commands and scripts from a spacecraft's MFD instrument.
You can also open the LuaMFD.dll with a hex editor and find "Terminal MFD".

The LuaMFD registers itself as "Terminal MFD" MFD mode.

---------- Post added at 12:10 ---------- Previous post was at 12:00 ----------

Oops, what I've just written is a beta feature, so 100606 won't display it for you, sorry.
 

martins

Orbiter Founder
Orbiter Founder
Joined
Mar 31, 2008
Messages
2,448
Reaction score
462
Points
83
Website
orbit.medphys.ucl.ac.uk
I just did a Clean install with no add-ons. TerminalMFD is available now. Is that the same as LuaMFD as ORB speculated above?

Highlight the LuaMFD entry in Active (or Inactive) modules on the Launchpad, and read:You can also open the LuaMFD.dll with a hex editor and find "Terminal MFD".

The LuaMFD registers itself as "Terminal MFD" MFD mode.

---------- Post added at 12:10 ---------- Previous post was at 12:00 ----------

Oops, what I've just written is a beta feature, so 100606 won't display it for you, sorry.
In other words: Yes.
 

jambooger

Defender of the Stupid
Donator
Joined
Jan 24, 2010
Messages
241
Reaction score
0
Points
0
Location
Earth for now
So with a clean install I have "TerminalMFD" In my full install I must have an addon that corrupted some .dll files. I guess I will have to reinstall all addons one at a time to find out which one is the offending addon.
 
Top