July 20, 20196 yr 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
July 20, 20196 yr 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
July 20, 20196 yr 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
July 20, 20196 yr 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
July 20, 20196 yr 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
July 20, 20196 yr 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
July 20, 20196 yr 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 July 20, 20196 yr 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
July 20, 20196 yr 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
July 20, 20196 yr 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
July 20, 20196 yr 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.
July 20, 20196 yr 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
July 20, 20196 yr 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
July 20, 20196 yr Your are welcome. 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
Archived
This topic is now archived and is closed to further replies.