Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Desparately missing something here...

Featured Replies

Hi all,

Please help my baffled head.

FSX SE/Latest Linda/latest FSUIPC.

Linda installed and running, it sees all my HID/Sticks etc but I want to create a new module for an add-on helicopter. I have a collective with certain buttons etc and I think I know what LINDA can do for me to make it all lovely however, LINDA just doesn't see anything that isn't an FSX Default aircraft in the 'New aircraft module' window.

So, I have two questions at least...

1_ How do I get LINDA to find my Rotorcraft? (Bell_205_LCSD)

2_ What is meant by 'Aircraft search string' (short string) in that window.

I accept that the solution is probably in a manual or even somewhere on this forum but I'm blowed if I can find it or an explaination anywhere. This seems to be more difficult than writting the actual .lua file.

Please help!

Thanks in advance,

D

You are not going mad. There is an error in the code preventing the New Module picking up the Rotorcraft and adding them to the list. I can not offer you a workaround at the moment. I am looking at the code now.

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

I wait with baited breath ScotFlieger! I'm just glad it isn't me.

D

Download 3.0.12 for fix.

Note It will only pick up aircraft in the /simobjects/aircraft and /simobjects/rotorcraft folders. it will not search the extended P3D add-ons folders.

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

I'll try that then, thank you very much!

  • Author

Result; happiness!

Can I be a bit cheeky now and ask you one more thing?

Now that I have a module for my helicopter, can you tell me why this little piece of code that I have started with doesn't quite work? It trips the switch okay but it doesn't play the sound.

function Battery_on ()
    ipc.writeUD("281C", 1)
    DspShow ("BAT", "on")
ref = sound.playloop(Battery_Hum)
sound.adjust(ref, 100)
str = sound.device(0)
end

function Battery_off ()
    ipc.writeUD("281C", 0)
    DspShow ("BAT", "off")
sound.stop(ref)
end

The sound is in the defualt sound folder of FSX but isn't being triggered by the switch condition... And I can't see why.

Many thanks in advance,

D

Writing to the FSUIPC offset won't itself play the sound. It is best to find the Lvar that moves the switch concerned. I would not myself use the sound commands you are using and which I am unfamiliar with. I would also where possible call the built in functions for Battery On/Off that try to write to the offset yourself. See FSX Default library.

Is it a default or add-on helicopter you are trying to use?

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

It is an add-on. The panel model has a switch (A:ELECTRICAL MASTER BATTERY,bool) cribbed from another model, operated by a simple 'on'/'off' panel mounted switch on my collective.

So you would suggest the FSX Library 'Toggle Master Battery' instead? Okay. The sound commands come from the FSUIPC Lua Library. It was the only reference to prompting a sound file I have found... So far.

Thanks,

D

Switch on LINDA Developer mode and open the Tracer. You will get a list of all Lvars available for your aircraft. One should be related to the Battery. Did the Battery Master in FSX Default operate the cockpit switch?

Edited by ScotFlieger

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

Yes, the code I showed you worked perfectly in that it operated the switch and everything functioned however, it was not triggering the sound file.

I appreciate that this should be simple but it's day 1 for me and I haven't got my head around the language quite yet.

If I can crack the sound code, it'll give me a huge boost in doing more.

Thanks,

D

Open LINDA common.lua and search for my sounds function. You will see a call to modest/modereset sounds.

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

I'm sorry but I must be getting more dim as the day goes on. I've opened common.lua and found the 'sounds' function. I don't see a modest/modereset call anywhere in there. Is it in the _loggg section? there's a ref=sound.play (fname) call in there but that's what I've already used to no avail.

I've also found references to 'Sounds("modereset")' in MCP Mode code but none of that makes sense to me at this point.

I know I'm rushing into this, perhaps I need to slow down and keep reading stuff.

At least I've got the switch working for now.

I'm sorry but I can't teach you LUA programming. 

The sound function takes the argument of the sound file you wish to use without the extension. For example, Sounds("Button-Click"). All LUA functions/variables are case sensitive The modereset.wav file in sounds folder gives 2 beeps and is used for the MCP logic. 

Good news about the switch.

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

You have been more than helpfull and shown me the way to get started. I've learnt more from your postings today than I would have after days of pouring over literature and for that I thank you for your time.

This last post is all I need to carry on, so thanks again and have a glorious weekend!

D

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.