raptor84 Posted January 14, 2024 Report Posted January 14, 2024 Hello everyone, I'm having some trouble with the current version of FSUIPC for P3Dv5. Context: I have a new PC with P3Dv5.4 installed while I have another PC that has P3Dv4.5 on it. With the current FSUIPC installed on new PC, along with all the hardward (yoke, throttle, etc.) I copied the content in the FSUIPC.ini file that I had for P3Dv4.5 for the Aerosoft A320 professional and pasted it into the FSUIPC.ini for P3Dv.5. When I start up P3Dv5 and go to FSUIPC, go to the Buttons & Switches tab and select Profile specific? check box, FSUIPC seems to acknowledge the profile. However, the issue I'm currently having is, when I press a function key, for example, if I want to turn off the RWY Turn off lights, by pressing Ctrl + F6, it should turn off the light like it did in P3Dv4.5 yet nothing happens when I do it in P3Dv5. None of the inputs I do such as moving the yoke, throttle, joystick, I'm not seeing the movements made on the aircraft. Any thoughts? I know that the .ini for P3Dv4.5, the FSUIPC is out of date and perhaps the detection of my hardward (i.e. yoke, throttle, etc.) is missing, but that's intentional. The hardware is now connected to the new PC and I never bothered to update FSUIPC for P3Dv4.5 because earlier 2023, I was having trouble getting P3Dv4.5 work where it worked one day and all of sudden, it decided not to work. Presumably it a corrupt file somewhere and I wasn't going to figure it out even though I tried some of the troubleshoots to get P3Dv4.5 running. FSUIPC6 (for P3Dv5).iniFetching info... FSUIPC6 (for P3Dv5).logFetching info... FSUIPC6 (for P3Dv4).iniFetching info...
John Dowson Posted January 15, 2024 Report Posted January 15, 2024 On 1/14/2024 at 11:17 PM, raptor84 said: I copied the content in the FSUIPC.ini file that I had for P3Dv4.5 for the Aerosoft A320 professional and pasted it into the FSUIPC.ini for P3Dv.5. Expand You can do this but you need to manually update the [JoyNames] section as your devices GUIDs will have changed. I have done this for you in the attached ini file if you could try it. Any issues, please re-attach your .log and .ini from the same session please. Note you also need to copy across your lua scripts to the new PC - mainly My320functions.lua as you have quite a few assignments to that one... John FSUIPC6.iniFetching info...
raptor84 Posted January 15, 2024 Author Report Posted January 15, 2024 On 1/15/2024 at 9:17 AM, John Dowson said: You can do this but you need to manually update the [JoyNames] section as your devices GUIDs will have changed. I have done this for you in the attached ini file if you could try it. Any issues, please re-attach your .log and .ini from the same session please. Note you also need to copy across your lua scripts to the new PC - mainly My320functions.lua as you have quite a few assignments to that one... John FSUIPC6.ini 6.02 kB · 0 downloads Expand Thanks for the help. I will give it a try. My lua scripts "My320functions.lau" is already in the new PC. I have it in 3 different places (as seen below) because I mirrored it on how I have it on the other PC, that way FSUIPC is sure to read it. It may be a bit much, but at less I feel safe about it 😁 C:\Users\...\Documents\Prepar3D v5 Add-ons\FSUIPC6 C:\Users\....\Documents\FSUIPC6 C:\FSUIPC6
raptor84 Posted January 16, 2024 Author Report Posted January 16, 2024 On 1/15/2024 at 9:17 AM, John Dowson said: You can do this but you need to manually update the [JoyNames] section as your devices GUIDs will have changed. I have done this for you in the attached ini file if you could try it. Any issues, please re-attach your .log and .ini from the same session please. Note you also need to copy across your lua scripts to the new PC - mainly My320functions.lua as you have quite a few assignments to that one... John FSUIPC6.ini 6.02 kB · 1 download Expand Ok. I tried using the updated FSUIPC6.ini file you gave me. Again, opening up FSUIPC6, Buttons&Switches tab and putting check mark in the Profile specific? box, FSUIPC6 seems to recognize the profile I have "P3D A320" However, in the cockpit, pressing any of the assigned keys I have based off my "My320functions.lua" file (i.e. Ctrl + F7 to turn off Nose Light), nothing happens. I uninstalled FSUIPC6, deleted any folders/files left behind, restarted PC, re-installed FSUIPC6 and placed the updated .ini and My320functions.lua files in the "C:\FSUIPC6" folder, fired up P3Dv5 and opened up FSUIPC from the add-on menu within P3Dv5 and selecting my profile, again FSUIPC6 seems to recognize the profile and yet nothing happens. Going over the FSUIPC6 log, I see that there may be an error ( *** LUA Error: C:\FSUIPC6\My320functions.lua:191: Event proc not found ). I'm not sure if that's what causing the issue? That LUA file is actually in the C:\FSUIPC6 folder and I don't think the LUA file itself should not be an issue because that's the same LUA file is use in P3Dv4.5. I've attached it for your reference. Perhaps you'll find the error that I can't see. FSUIPC6.1.logFetching info... My320functions.luaFetching info...
John Dowson Posted January 16, 2024 Report Posted January 16, 2024 On 1/15/2024 at 9:51 PM, raptor84 said: I have it in 3 different places (as seen below) Expand Lua files, by default, should be placed in your FSUIPC6 installation folder. On 1/16/2024 at 1:33 AM, raptor84 said: I see that there may be an error ( *** LUA Error: C:\FSUIPC6\My320functions.lua:191: Event proc not found ). I'm not sure if that's what causing the issue? Expand Line 191 is: event.flag(12,"AB_OVH_Ext_LANDING_retract") There is no such function called AB_OVH_Ext_LANDING_retract in the lua file, hence the error. On 1/16/2024 at 1:33 AM, raptor84 said: Again, opening up FSUIPC6, Buttons&Switches tab and putting check mark in the Profile specific? box, FSUIPC6 seems to recognize the profile I have "P3D A320" However, in the cockpit, pressing any of the assiKeysgned keys I have based off my "My320functions.lua" file (i.e. Ctrl + F7 to turn off Nose Light), nothing happens. Expand Can you see the assignment to that button in the button assignments window? Can you set logging for Buttons & Keys as well as Events, and show me an FSUIPC6.log file showing your issue. Also, please attach your FSUIPC6.ini file every time you attach a log file - I need to see these both together to determine what is happening. Note that you also have another error in your log file: Quote 1110 VRI port 1 "com0" failed to open Expand John
raptor84 Posted January 17, 2024 Author Report Posted January 17, 2024 On 1/16/2024 at 12:01 PM, John Dowson said: Lua files, by default, should be placed in your FSUIPC6 installation folder. Expand Thanks for the reminder. In new PC, I did exactly that, putting my lua file in the installation folder ( C:\FSUIPC6 ) On 1/16/2024 at 12:01 PM, John Dowson said: 1110 VRI port 1 "com0" failed to open Expand As for the other error below, I don't know what that is. Never had that error or encountered any issues when using P3Dv4.5 (perhaps the reason why it doesn't fully launch anymore, you know, showing my the menu where you select airplane, create flight plan, etc.) If you go back to the beginning of the thread, I provided both my .ini files for P3Dv4 and P3Dv5 and then you replied back in the next post with an updated .ini file to use in P3Dv5 in which I downloaded it and put in the FSUIPC folder. So I don't know where that VRI port error is coming from. On 1/16/2024 at 12:01 PM, John Dowson said: Line 191 is: event.flag(12,"AB_OVH_Ext_LANDING_retract") There is no such function called AB_OVH_Ext_LANDING_retract in the lua file, hence the error. Expand I don't have that function in my lua file then again, I may have taken it out, forgetting the reason why. I've attached both lua files with the dates in the title name. I think what I did was I updated the lua and may have copied the wrong lua and placed it in the FSUIPC folder. The lua file that is working in P3Dv4 (error free when last check on 16May23) is the file name titiled My320functions (04062022). I'ma go back myself and take a look myself. In fact, the My320functions (04062022) lua, seems to work but I think I got some of my key assignments wrong, for example, Strobe lights not turning on, hmmm... Either way, I've attached the files below and a link to the FSIUPC6 log as well since the file was too big to upload here. FSUIPC6 log file My320functions (03272022).txtFetching info... My320functions (04062022).txtFetching info... FSUIPC6.iniFetching info...
John Dowson Posted January 17, 2024 Report Posted January 17, 2024 On 1/17/2024 at 12:37 AM, raptor84 said: 1110 VRI port 1 "com0" failed to open Expand This was because you had a VRInsight section in your ini - I have removed this in the ini file attached below. Looks like the name of your T.16000M Joystick has changed - it was just 'T.16000M' but is now 'T.16000M Joystick'. This is why your assignments to this device were not recognised. I have corrected for this in the ini attached below. if you are having problems with your lua, try debugging them. I they have errors on your new PC then they would have had errors on your old PC, or they are different scripts... In the log file you have the following: Quote 830234 *** LUA Error: C:\FSUIPC6\My320functions.lua:148: attempt to call global 'AB_MPL_LightSwitch' (a nil value) 832015 *** LUA Error: C:\FSUIPC6\My320functions.lua:148: attempt to call global 'AB_MPL_LightSwitch' (a nil value) 835984 *** LUA Error: C:\FSUIPC6\My320functions.lua:105: attempt to call global 'AB_MPL_LightSwitch' (a nil value) 843500 *** LUA Error: C:\FSUIPC6\My320functions.lua:155: attempt to call global 'AB_MPL_LightSwitch' (a nil value) 1826890 *** LUA Error: C:\FSUIPC6\My320functions.lua:148: attempt to call global 'AB_MPL_LightSwitch' (a nil value) 1838359 *** LUA Error: C:\FSUIPC6\My320functions.lua:162: attempt to call global 'AB_MPL_LightSwitch' (a nil value) 1845343 *** LUA Error: C:\FSUIPC6\My320functions.lua:162: attempt to call global 'AB_MPL_LightSwitch' (a nil value) 1851672 *** LUA Error: C:\FSUIPC6\My320functions.lua:176: attempt to call global 'AB_OVH_Pushbutton' (a nil value) 1863390 *** LUA Error: C:\FSUIPC6\My320functions.lua:176: attempt to call global 'AB_OVH_Pushbutton' (a nil value) 1863734 *** LUA Error: C:\FSUIPC6\My320functions.lua:162: attempt to call global 'AB_MPL_LightSwitch' (a nil value) ... 2358078 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 2358078 .. Key not programmed -- passed on to FS ... 2358328 KEYDOWN: VK=116, Waiting=0, Repeat=N, Shifts=2 2358328 .. Key not programmed -- passed on to FS ... 2358843 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 2358843 .. Key not programmed -- passed on to FS ... 2358984 KEYDOWN: VK=117, Waiting=0, Repeat=N, Shifts=2 2358984 .. This key is programmed in FSUIPC6 'Keys' options 2359015 *** LUA Error: C:\FSUIPC6\My320functions.lua:176: attempt to call global 'AB_OVH_Pushbutton' (a nil value) ... 2359297 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 2359297 .. Key not programmed -- passed on to FS ... 2359437 KEYDOWN: VK=118, Waiting=0, Repeat=N, Shifts=2 2359437 .. This key is programmed in FSUIPC6 'Keys' options 2359468 *** LUA Error: C:\FSUIPC6\My320functions.lua:162: attempt to call global 'AB_MPL_LightSwitch' (a nil value) ... 2373812 KEYDOWN: VK=112, Waiting=0, Repeat=N, Shifts=2 2373812 .. This key is programmed in FSUIPC6 'Keys' options 2373843 *** LUA Error: C:\FSUIPC6\My320functions.lua:148: attempt to call global 'AB_MPL_LightSwitch' (a nil value) ... Expand The lua errors should be obvious - you are using functions AB_MPL_LightSwitch, AB_OVH_Pushbutton and AB_MPL_LightSwitch which are not defined anywhere. This must also have occurred on your old PC, or it is a different script. And you only have assignments to keys F1, F2, F3, F4, F6 and F7. No assignments to F6 (116) or ctrl (17). FSUIPC6.iniFetching info...
raptor84 Posted January 17, 2024 Author Report Posted January 17, 2024 On 1/17/2024 at 9:41 AM, John Dowson said: This was because you had a VRInsight section in your ini Expand Well, that's interesting. Does that section automatically in the .ini file?? If that part is in my ini file for P3Dv4.5, never experience any issues with it. On 1/17/2024 at 9:41 AM, John Dowson said: Looks like the name of your T.16000M Joystick has changed - it was just 'T.16000M' but is now 'T.16000M Joystick'. This is why your assignments to this device were not recognised. I have corrected for this in the ini attached below. Expand Hmmm.... I'm surprised the name of the Joystick got changed. I think the new PC read it differently than what my old PC had read it. On 1/17/2024 at 9:41 AM, John Dowson said: if you are having problems with your lua, try debugging them. If they have errors on your new PC then they would have had errors on your old PC, or they are different scripts... Expand Remind me again, how do you debug them?? Its been a couple of years and I forgot how. Again, in my old PC, never had any issues so I like to think that it may be a different script?? I mean, new PC is Windows 11 and old PC is Windows 7, so I don't know if that has anything to do with it. On 1/17/2024 at 9:41 AM, John Dowson said: The lua errors should be obvious - you are using functions AB_MPL_LightSwitch, AB_OVH_Pushbutton and AB_MPL_LightSwitch which are not defined anywhere. This must also have occurred on your old PC, or it is a different script. And you only have assignments to keys F1, F2, F3, F4, F6 and F7. No assignments to F6 (116) or ctrl (17). Expand Wow, then something bad really happened when I made copy of my lua file from old PC into new PC because in my old PC, again, everything worked, no issues, no errors. All buttons on joystick, key assignments I pressed did what they were suppose to do in P3Dv4.5 (old PC). So naturally, I would assume that if I copied the same lua file into new PC (P3Dv5), everything should work as assigned. Thank you for correcting the ini file. Do I need to have any other file/program installed with FSUIPC6???
John Dowson Posted January 18, 2024 Report Posted January 18, 2024 On 1/17/2024 at 6:45 PM, raptor84 said: Well, that's interesting. Does that section automatically in the .ini file?? If that part is in my ini file for P3Dv4.5, never experience any issues with it. Expand It does not get added automatically - you must have added this, and it is also in your ini file for P3Dv4. This won't cause any issues, just log a message. On 1/17/2024 at 6:45 PM, raptor84 said: Hmmm.... I'm surprised the name of the Joystick got changed. I think the new PC read it differently than what my old PC had read it. Expand Probably due to a windows or driver update. Nothing to worry about. On 1/17/2024 at 6:45 PM, raptor84 said: Remind me again, how do you debug them?? Expand Well, any errors are logged with the line number in your FSUIPC5.log file. You can also set logging for lua plugins, which will log each line executed, and you can send these logging statements to a separate log file if you wish. See the options in FSUIPC's logging tab. On 1/17/2024 at 6:45 PM, raptor84 said: Again, in my old PC, never had any issues so I like to think that it may be a different script?? Expand It must either be a different script, or you would have had the same issues on your old PC. You said they were in 3 places (always a bad idea!) - maybe you copied the wrong one? On 1/17/2024 at 6:45 PM, raptor84 said: I mean, new PC is Windows 11 and old PC is Windows 7, so I don't know if that has anything to do with it. Expand No, this would make no difference to this issue, as the issue is missing lua functions. On 1/17/2024 at 6:45 PM, raptor84 said: Wow, then something bad really happened when I made copy of my lua file from old PC into new PC because in my old PC, again, everything worked, no issues, no errors. All buttons on joystick, key assignments I pressed did what they were suppose to do in P3Dv4.5 (old PC). So naturally, I would assume that if I copied the same lua file into new PC (P3Dv5), everything should work as assigned. Expand Maybe you copied the wrong ini file as well? On 1/17/2024 at 6:45 PM, raptor84 said: Do I need to have any other file/program installed with FSUIPC6??? Expand That depends....generally not, but, if, for example, you were using GoFlight or PFC devices, then you would also need to install the drivers for these. Your ini also references the following lua files: Quote [LuaFiles] 1=ipcReady 2=LINDA 3=actions 4=autopilot 5=approach 6=My320functions Expand So they should be present. However, if you are not using any of these (note that ipcReady.lua will always be started automatically) then you can remove the entries. However, do NOT change the index number of the scripts you are using (My320functions.lua) otherwise the assignments to this script will no longer work. Are you also using LINDA? If so, make sure that is installed and up-to-date.
raptor84 Posted January 18, 2024 Author Report Posted January 18, 2024 On 1/18/2024 at 9:29 AM, John Dowson said: Quote [LuaFiles] 1=ipcReady 2=LINDA 3=actions 4=autopilot 5=approach 6=My320functions Expand So they should be present. However, if you are not using any of these (note that ipcReady.lua will always be started automatically) then you can remove the entries. However, do NOT change the index number of the scripts you are using (My320functions.lua) otherwise the assignments to this script will no longer work. Are you also using LINDA? If so, make sure that is installed and up-to-date. Expand I don't have LINDA installed on new PC, so is it ok if I remove it?? How about the actions one? Should I remove that as well?? And if I understood correctly about the index number, if I did remove LINDA and actions, it should look like this below, right? [LuaFiles] 1=ipcReady 4=autopilot 5=approach 6=My320functions Going over my lua file last night, I made some updates has I had some key assignment missing (i.e. Ctl+F8) and after making the updates in my lua and ini files, everything now works as they should. Buttons on the joystick I haven't tried yet however I assume everything there is working as they should as well. Also, I wanted to know if there was an Lvar entry for the predictive windshear (PWS)?? For example, if I were to copy and replace the "GCS" with "PWS", will work FSUIPC recognize it that way if I were to add an assignment key (i.e. if I pressed CTL+F9 ), it could have the PWS switch go from AUTO to OFF?? function AB_WX_GCS_off () ipc.writeLvar("AB_WX_GCS", 0) AB_MPL_LightSwitch () DspShow ("GCS", "off") end
John Dowson Posted January 19, 2024 Report Posted January 19, 2024 On 1/18/2024 at 7:11 PM, raptor84 said: I don't have LINDA installed on new PC, so is it ok if I remove it? Expand Yes. On 1/18/2024 at 7:11 PM, raptor84 said: How about the actions one? Should I remove that as well?? Expand Yes - remove all entries for scripts not installed. On 1/18/2024 at 7:11 PM, raptor84 said: if I did remove LINDA and actions, it should look like this below, right? [LuaFiles] 1=ipcReady 4=autopilot 5=approach 6=My320functions Expand Yes. Or maybe just: Quote [LuaFiles] 6=My320functions Expand On 1/18/2024 at 7:11 PM, raptor84 said: Also, I wanted to know if there was an Lvar entry for the predictive windshear (PWS)?? Expand I don't know...try listing the lvars to see what is available.
raptor84 Posted January 25, 2024 Author Report Posted January 25, 2024 On 1/19/2024 at 8:49 AM, John Dowson said: On 1/18/2024 at 7:11 PM, raptor84 said: Also, I wanted to know if there was an Lvar entry for the predictive windshear (PWS)?? Expand I don't know...try listing the lvars to see what is available. Expand I did try using the Lvar function AB_WX_GCS_off replacing "GCS" with "PWS" and it works. Tried it a few times. I assume the function AB_WX_PWS_on and function AB_WX_PWS_toggle will work as well. function AB_WX_PWS_off () ipc.writeLvar("AB_WX_PWS", 0) AB_MPL_LightSwitch () DspShow ("PWS", "off") end
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now