Search found 10 matches

by floatingcub
Fri Apr 02, 2021 4:31 am
Forum: Lua and API Scripting Help
Topic: Errors when using library files
Replies: 6
Views: 2691

Re: Errors when using library files

Code: Select all

Perfect, thanks!
;)

-Bryan
by floatingcub
Fri Apr 02, 2021 12:41 am
Forum: Lua and API Scripting Help
Topic: Errors when using library files
Replies: 6
Views: 2691

Re: Errors when using library files

Thanks Tony. A quick change, as you suggested, and I see that it works now.

On a related note, what is the trick to posting code here so the interpreter doesn't add a space between each line? In my initial post I chose LUA from the 'Select code' dropdown in the editor.

-Bryan
by floatingcub
Thu Apr 01, 2021 11:59 pm
Forum: Lua and API Scripting Help
Topic: Errors when using library files
Replies: 6
Views: 2691

Re: Errors when using library files

Nevermind, I just found this on the wiki ( http://siminnovations.com/wiki/index.php?title=Lua_libraries ): When the instrument is started, your library lua files will be executed first, followed by the logic.lua. Given this, I will have to think hard about how the use of libraries is beneficial or e...
by floatingcub
Thu Apr 01, 2021 11:33 pm
Forum: Lua and API Scripting Help
Topic: Errors when using library files
Replies: 6
Views: 2691

Errors when using library files

Hello, Hoping someone can help unlock a mystery for me. I've got an annunciator instrument I built which 100% works as expected. In an effort to better organize it, and in preparation to transition to LEDs instead of images, I split related functions out of the main script and created library files....
by floatingcub
Wed May 13, 2020 4:25 pm
Forum: Lua and API Scripting Help
Topic: Manage Subscriptions Using Timers
Replies: 8
Views: 2959

Re: Manage Subscriptions Using Timers

What is the appropriate way to send it? FWIW, the crashes occur even when I don't run the instrument. Although AM is running other instruments, I suspect a third party piece of hardware which does not use AM is the culprit. But since I can't change how that hardware runs, I started looking to lighte...
by floatingcub
Wed May 13, 2020 3:21 am
Forum: Lua and API Scripting Help
Topic: Manage Subscriptions Using Timers
Replies: 8
Views: 2959

Re: Manage Subscriptions Using Timers

Crashes on Windows.

Separate subscriptions sounds like the way to go. Thanks for all the replies.

-Bryan
by floatingcub
Fri May 08, 2020 1:42 pm
Forum: Lua and API Scripting Help
Topic: Manage Subscriptions Using Timers
Replies: 8
Views: 2959

Re: Manage Subscriptions Using Timers

Thanks for the reply. I have been experiencing some random crashes lately, and although I don’t suspect AM, it is the one piece that I can control as opposed to some purchased hardware that I suspect may be the cause. Hence my desire to be as efficient as possible. When you say smaller subscriptions...
by floatingcub
Fri May 08, 2020 4:52 am
Forum: Lua and API Scripting Help
Topic: Manage Subscriptions Using Timers
Replies: 8
Views: 2959

Manage Subscriptions Using Timers

Hi All, I'm currently building a somewhat unrealistic, multi-airplane, catch-all kind of annunciator that requires a lot of variables from the sim (using FSX). There's enough going on that if I am not careful while printing some output for debugging, AM hangs. Besides what I've encountered during de...
by floatingcub
Thu Apr 23, 2020 2:20 pm
Forum: Air Manager Help
Topic: Plugin Update Killed FS Connection
Replies: 2
Views: 1474

Re: Plugin Update Killed FS Connection

Thanks for the suggestion. I re-installed the plugin from the link you provided and that resolved the issue.

Thanks,
-Bryan
by floatingcub
Thu Apr 23, 2020 6:08 am
Forum: Air Manager Help
Topic: Plugin Update Killed FS Connection
Replies: 2
Views: 1474

Plugin Update Killed FS Connection

Hi all, I'm relatively new to AM, and for the past few months have been using it to run some hardware I purchased. I've also made some strides in developing my own scripts for some hardware I intend to make myself. I noticed the other day that AM advertised a plugin update, so tonight I installed it...