Jump to content
The simFlight Network Forums

Lua scripts dont work from prepar v4 to v5?


Recommended Posts

Hi Pete,

i migrate my system from p3d v4 to v5. 

I jjust now purhcased the upgrade from fuispc 5 to 6.

I imported all lua and macro files and in ini is correct read and set the lua macro and auto, but when

i start the mobiflight my profile but the offset dont come to read and my hardware dont work.

Is now incmpatible or offset is changed from v4 to v5?

 

many thanks,

SImone

Link to comment
Share on other sites

Hi Simone,

what version of FSUIPC6 are you using? There were some issues in earlier versions of FSUIPC6 (relating to the use of 'require' and the [undocumented] LuaPath ini parameter), but these have been fixed. The latest version is 6.0.8, so if not using that please update first and try again.

If you are still having issues, I need to see your .log and .ini files.

John

Link to comment
Share on other sites

[General]
UpdatedByVersion=6008
History=VLEUKEO3LW8C30H5BB4P6
InitDelayDevicesToo=No
PMDG737offsets=Auto
PMDG747offsets=Auto
PMDG777offsets=Auto
Annotate=Yes
UseSystemTime=No
UseMidMouseBtn=Yes
MouseWheelMove=No
MouseWheelTrim=No
MouseWheelTrimSpeed=1
JoystickTimeout=20
RestoreSimcWindows=No
FixMachSpeedBug=No
AutoScanDevices=Yes
DisconnTrimForAP=No
ZeroElevForAPAlt=No
ThrottleSyncAll=No
WhiteMessages=No
ShowPMcontrols=No
SpoilerIncrement=512
MagicBattery=No
RudderSpikeRemoval=No
ElevatorSpikeRemoval=No
AileronSpikeRemoval=No
ReversedElevatorTrim=No
ClockSync=No
ClockSyncMins=5
ClearWeatherDynamics=No
TimeForSelect=4
LoadFlightMenu=No
LoadPlanMenu=No
PauseAfterCrash=No
BrakeReleaseThreshold=75
SaveDataWithFlights=No
ZapSound=firework
ZapAirRange=1.50
ZapGroundRange=0.25
ZapCylinderAltDiff=0
ShortAircraftNameOk=Substring
UseProfiles=Yes
EnableMouseLook=No
DelayedMouseLookZoom=No
WideLuaGlobals=Yes
AxesWrongRange=No
TCASid=Flight
TCASrange=40,3
AxisCalibration=No
DirectAxesToCalibs=No
ShowMultilineWindow=Yes
SuppressSingleline=No
SuppressMultilineFS=No
AxisIntercepts=No
DontResetAxes=No
ThreadAffinityMask=x0
LuaAffinityMask=x0
InitDelay=0
GetNearestAirports=Yes
LogOptionProtect=Yes
TimeForLuaClosing=2
WeatherReadFactor=2
WeatherRewriteSeconds=1
TrafficStallTime=1
InitialStallTime=10
NormalStallTime=1
LuaRerunDelay=66
ComReadLoopTime=20
FSVersionUsed="Lockheed Martin® Prepar3D® v5",5.0.21.34709
SimConnectUsed=5.0.0.0

[Traffic Limiter]
AirportPreference=50
PlannedAirportsPreference=50
GroundPreference=50
NearerPreference=50
TargetFrameRate=0
TrafficLimit=0

[JoyNames]
AutoAssignLetters=No
0=SideWinder Force Feedback 2 Joystick
0.GUID={01E579E0-299A-11EA-8006-444553540000}

[JoystickCalibration]
RudderBlendLowest=1

[Axes]
PollInterval=10
RangeRepeatRate=10

[MacroFiles]
1=MADDOG_X

[LuaFiles]
1=MADDOG_X
2=MD_FGCP_PWR

[Buttons]
PollInterval=25
ButtonRepeat=20,10

[AutoSave]
Interval=60
Files=10
SaveOnGround=No
AutoSaveEnabled=No

[GPSout]
GPSoutEnabled=No

[GPSout2]
GPSoutEnabled=No

[WideServer]
WideFSenabled=Yes

[Sounds]
Path=E:\Lockheed Martin\Prepar3D v5\Sound\
Device1=Driver audio principale
Device2=Altoparlanti (2- High Definition Audio Device)
Device3=Digital Audio (S/PDIF) (2- High Definition Audio Device)

Link to comment
Share on other sites

yes i imported from fsuipc5 (that remain in the v4 modules) to v5 that is in the documents v5 addons:

v5.ini

[General]
UpdatedByVersion=5156
History=5VQH3HMM6UU6CNGY6KCXW
InitDelayDevicesToo=No
PMDG737offsets=Auto
PMDG747offsets=Auto
PMDG777offsets=Auto
Annotate=Yes
UseSystemTime=No
UseMidMouseBtn=Yes
MouseWheelMove=No
MouseWheelTrim=No
MouseWheelTrimSpeed=1
JoystickTimeout=20
RestoreSimcWindows=No
FixMachSpeedBug=No
AutoScanDevices=Yes
DisconnTrimForAP=No
ZeroElevForAPAlt=No
ThrottleSyncAll=No
WhiteMessages=No
ShowPMcontrols=No
SpoilerIncrement=512
MagicBattery=No
RudderSpikeRemoval=No
ElevatorSpikeRemoval=No
AileronSpikeRemoval=No
ReversedElevatorTrim=No
ClockSync=No
ClockSyncMins=5
ClearWeatherDynamics=No
TimeForSelect=4
LoadFlightMenu=No
LoadPlanMenu=No
PauseAfterCrash=No
BrakeReleaseThreshold=75
SaveDataWithFlights=No
ZapSound=firework
ZapAirRange=1.50
ZapGroundRange=0.25
ZapCylinderAltDiff=0
ShortAircraftNameOk=Substring
UseProfiles=Yes
EnableMouseLook=No
DelayedMouseLookZoom=No
WideLuaGlobals=Yes
AxesWrongRange=No
TCASid=Flight
TCASrange=40,3
AxisCalibration=No
DirectAxesToCalibs=No
ShowMultilineWindow=Yes
SuppressSingleline=No
SuppressMultilineFS=No
AxisIntercepts=No
DontResetAxes=No
ThreadAffinityMask=x0
LuaAffinityMask=x0
InitDelay=0
GetNearestAirports=Yes
LogOptionProtect=Yes
TimeForLuaClosing=2
WeatherReadFactor=2
WeatherRewriteSeconds=1
TrafficStallTime=1
InitialStallTime=10
NormalStallTime=1
LuaRerunDelay=66
ComReadLoopTime=20
Console=No
ConsoleWindowTopMost=No
OptionsDialogOffset=-2, -30
ControlsListBuild=34698
FSVersionUsed="Lockheed Martin® Prepar3D® v4",4.5.14.34698
SimConnectUsed=4.5.0.0

[Traffic Limiter]
AirportPreference=50
PlannedAirportsPreference=50
GroundPreference=50
NearerPreference=50
TargetFrameRate=0
TrafficLimit=0

[Buttons]
PollInterval=25
ButtonRepeat=20,10
1=P1,0,C65992,0     -{MIXTURE2_LEAN}-
2=U1,0,C65988,0     -{MIXTURE2_RICH}-
3=P1,1,C65987,0     -{MIXTURE1_LEAN}-
4=U1,1,C65983,0     -{MIXTURE1_RICH}-
5=R1,4,CM4:2,0     -{Macro ERROR: unknown Macro!: <unknown macro> !!!}-
6=R1,5,CM4:2,0     -{Macro ERROR: unknown Macro!: <unknown macro> !!!}-
7=R1,19,CM4:4,0     -{Macro ERROR: unknown Macro!: <unknown macro> !!!}-
8=R1,18,CM4:3,0     -{Macro ERROR: unknown Macro!: <unknown macro> !!!}-
9=P1,17,CM2:4,0     -{Macro ERROR: unknown Macro!: <unknown macro> !!!}-
12=P1,31,C66079,0     -{GEAR_UP}-
13=U1,31,C66080,0     -{GEAR_DOWN}-
14=R1,14,C65720,0     -{BRAKES_LEFT}-
15=R1,15,C65721,0     -{BRAKES_RIGHT}-
16=P1,13,CM2:3,0     -{Macro ERROR: unknown Macro!: <unknown macro> !!!}-
17=P1,10,CM2:3,0     -{Macro ERROR: unknown Macro!: <unknown macro> !!!}-
18=P1,11,CM4:6,0     -{Macro ERROR: unknown Macro!: <unknown macro> !!!}-
19=P1,12,CM4:5,0     -{Macro ERROR: unknown Macro!: <unknown macro> !!!}-
21=U1,3,K190,10     -{Key press: ctl+.>key}-
22=P1,3,K190,10     -{Key press: ctl+.>key}-

[AutoSave]
Next=1
Interval=60
Files=10
SaveOnGround=No
AutoSaveEnabled=No

[GPSout]
GPSoutEnabled=No
Port=COM12
Speed=4800
Interval=2000
PosTo6Decimal=No
SimModeIndicator=No
Sentences=

[GPSout2]
GPSoutEnabled=No
Port=<none set>
Speed=4800
Interval=2000
PosTo6Decimal=No
SimModeIndicator=No
Sentences=

[WideServer]
WideFSenabled=Yes

[Sounds]
Path=E:\Lockheed Martin\Prepar3D v4\Sound\
Device1=Driver audio principale
Device2=Altoparlanti (Realtek High Definition Audio)
Device3=Realtek Digital Output (Realtek High Definition Audio)
Device4=3 - PL2730H (AMD High Definition Audio Device)
Device5=6 - SA220Q (2- AMD High Definition Audio Device)
Device6=3 - SA220Q (2- AMD High Definition Audio Device)
Device7=4 - HDMI1 HDR (2- AMD High Definition Audio Device)
Device8=6 - PL2730H (AMD High Definition Audio Device)
Device9=4 - MStar Demo (AMD High Definition Audio Device)
Device10=3 - HDMI1 HDR (2- AMD High Definition Audio Device)
Device11=4 - SA220Q (2- AMD High Definition Audio Device)
Device12=Altoparlanti (2- Realtek High Definition Audio)
Device13=4 - SA220Q (3- AMD High Definition Audio Device)
Device14=5 - SA220Q (3- AMD High Definition Audio Device)
Device15=6 - PL2730H (3- AMD High Definition Audio Device)
Device16=3 - HDMI1 HDR (3- AMD High Definition Audio Device)

[MacroFiles]
1=MADDOG_X

[Buttons]
PollInterval=25
ButtonRepeat=20,10
1=P1,1,C65987,0     -{MIXTURE1_LEAN}-
2=U1,1,C65983,0     -{MIXTURE1_RICH}-
3=P1,0,C65992,0     -{MIXTURE2_LEAN}-
4=U1,0,C65988,0     -{MIXTURE2_RICH}-
5=R1,14,C65720,1     -{BRAKES_LEFT}-
6=R1,15,C65721,1     -{BRAKES_RIGHT}-
7=P1,3,C65752,1     -{PARKING_BRAKES}-
8=R1,18,CM4:3,0     -{Macro MD82TQ: ELEV_TRIM_DN}-
9=R1,19,CM4:4,0     -{Macro MD82TQ: ELEV_TRIM_UP}-
10=P1,5,C65608,0     -{ELEV_DOWN}-
11=P1,4,C65608,0     -{ELEV_DOWN}-
12=P1,17,CM2:4,0     -{Macro MD82MCP: AP}-
13=P1,13,CM2:3,0     -{Macro MD82MCP: ATHR}-
14=P1,10,CM2:3,0     -{Macro MD82MCP: ATHR}-
15=U1,3,C65752,0     -{PARKING_BRAKES}-
16=U1,14,C65720,0     -{BRAKES_LEFT}-
17=U1,15,C65721,0     -{BRAKES_RIGHT}-
18=P1,31,C66079,0     -{GEAR_UP}-
19=U1,31,C66080,0     -{GEAR_DOWN}-
20=R1,16,K226,8     -{Key press: <>key}-
21=P1,11,CM4:5,0     -{Macro MD82TQ: TOGA_R}-
22=P1,12,CM4:5,0     -{Macro MD82TQ: TOGA_R}-

[AutoSave]
Next=1
Interval=60
Files=10
SaveOnGround=No
AutoSaveEnabled=No

[GPSout]
GPSoutEnabled=No

[GPSout2]
GPSoutEnabled=No

[WideServer]
WideFSenabled=Yes

[LuaFiles]
1=MADDOG_X
2=MD_FGCP_PWR

[Auto]
1=Lua MADDOG_X

[Window.LUA display]
Docked=7364, 3132, 3485, 2384

[Window.Message Window]
NewDocked=18, 62, 1244, 17

[JoyNames]
AutoAssignLetters=No
0=SideWinder Force Feedback 2 Joystick
0.GUID={01E579E0-299A-11EA-8006-444553540000}

[Programs]
Run1=READY,KILL,C:\OpusFSI_v6\P3DSERVER.EXE
Run2=READY,KILL,C:\Users\MD80_VISUAL\Documents\Mobiflight\MFConnector.exe

[Window.SimConnectWindow]
NewDocked=720, 405, 480, 254

[Axes]
PollInterval=10
RangeRepeatRate=10

[JoystickCalibration]
RudderBlendLowest=1
AllowSuppressForPFCquad=Yes
ExcludeThrottleSet=Yes
ExcludeMixtureSet=Yes
ExcludePropPitchSet=Yes
SepRevsJetsOnly=No
ApplyHeloTrim=No
UseAxisControlsForNRZ=No
FlapsSetControl=0
FlapDetents=No
ReverserControl=66292
Reverser1Control=66422
Reverser2Control=66425
Reverser3Control=66428
Reverser4Control=66431
MaxThrottleForReverser=256
AileronTrimControl=66731
RudderTrimControl=66732
CowlFlaps1Control=66162
CowlFlaps2Control=66163
!1=CowlFlaps

 

 

v6.ini

[General]
UpdatedByVersion=6008
History=VLEUKEO3LW8C30H5BB4P6
InitDelayDevicesToo=No
PMDG737offsets=Auto
PMDG747offsets=Auto
PMDG777offsets=Auto
Annotate=Yes
UseSystemTime=No
UseMidMouseBtn=Yes
MouseWheelMove=No
MouseWheelTrim=No
MouseWheelTrimSpeed=1
JoystickTimeout=20
RestoreSimcWindows=No
FixMachSpeedBug=No
AutoScanDevices=Yes
DisconnTrimForAP=No
ZeroElevForAPAlt=No
ThrottleSyncAll=No
WhiteMessages=No
ShowPMcontrols=No
SpoilerIncrement=512
MagicBattery=No
RudderSpikeRemoval=No
ElevatorSpikeRemoval=No
AileronSpikeRemoval=No
ReversedElevatorTrim=No
ClockSync=No
ClockSyncMins=5
ClearWeatherDynamics=No
TimeForSelect=4
LoadFlightMenu=No
LoadPlanMenu=No
PauseAfterCrash=No
BrakeReleaseThreshold=75
SaveDataWithFlights=No
ZapSound=firework
ZapAirRange=1.50
ZapGroundRange=0.25
ZapCylinderAltDiff=0
ShortAircraftNameOk=Substring
UseProfiles=Yes
EnableMouseLook=No
DelayedMouseLookZoom=No
WideLuaGlobals=Yes
AxesWrongRange=No
TCASid=Flight
TCASrange=40,3
AxisCalibration=No
DirectAxesToCalibs=No
ShowMultilineWindow=Yes
SuppressSingleline=No
SuppressMultilineFS=No
AxisIntercepts=No
DontResetAxes=No
ThreadAffinityMask=x0
LuaAffinityMask=x0
InitDelay=0
GetNearestAirports=Yes
LogOptionProtect=Yes
TimeForLuaClosing=2
WeatherReadFactor=2
WeatherRewriteSeconds=1
TrafficStallTime=1
InitialStallTime=10
NormalStallTime=1
LuaRerunDelay=66
ComReadLoopTime=20
FSVersionUsed="Lockheed Martin® Prepar3D® v5",5.0.21.34709
SimConnectUsed=5.0.0.0

[Traffic Limiter]
AirportPreference=50
PlannedAirportsPreference=50
GroundPreference=50
NearerPreference=50
TargetFrameRate=0
TrafficLimit=0

[JoyNames]
AutoAssignLetters=No
0=SideWinder Force Feedback 2 Joystick
0.GUID={01E579E0-299A-11EA-8006-444553540000}

[JoystickCalibration]
RudderBlendLowest=1

[Axes]
PollInterval=10
RangeRepeatRate=10

[MacroFiles]
1=MADDOG_X

[LuaFiles]
1=MADDOG_X
2=MD_FGCP_PWR

[Buttons]
PollInterval=25
ButtonRepeat=20,10

[AutoSave]
Interval=60
Files=10
SaveOnGround=No
AutoSaveEnabled=No

[GPSout]
GPSoutEnabled=No

[GPSout2]
GPSoutEnabled=No

[WideServer]
WideFSenabled=Yes

[Sounds]
Path=E:\Lockheed Martin\Prepar3D v5\Sound\
Device1=Driver audio principale
Device2=Altoparlanti (2- High Definition Audio Device)
Device3=Digital Audio (S/PDIF) (2- High Definition Audio Device)
 

 

 

Link to comment
Share on other sites

As I said, you have nothing in your FSUIPC6.ini - it is a default one created when none is found. If you want to preserve your settings from FSUIPC5 to FSUIPC6, you just need to copy your FSUIPC5.ini file to your FSUIPC6 installation directory (and also copy all other files you need, such as .lua and .mcro), and rename your FSUIPC5.ini to FSUIPC6.ini.

Please see the provided Installation guide. This explains your options and how to migrate.

Link to comment
Share on other sites

but one question, i sse that i have one modules folder in prepar v5 with only key registartion ad one in documetns preparv5 addons.

i put all files in the documents /addons and i se that fsuipc6.ini as well copied the lua and files macro in side.

The new installer ricreate confusion beacuse said me that there is fsuipc5 to unistall prior to install the new fsuipc6 in v4/modules...

 

 

Link to comment
Share on other sites

Have you read the Installation guide, as I have mentioned several times?

The new installer will uninstall FSUIPC5 IF you select to install FSUIPC6 for P3Dv4 and you already have FSUIPC5 installed. If you only install for P3Dv5, it will not touch your FSUIPC5 installation. You can also install one version of FSUIPC6 for use by both P3Dv4 and P3Dv5, or you can have two distinct installations, one for each sim. It's really up to you.

When you install, you also choose the installation directory. The folder you select is where FSUIPC will be installed. It is better to choose a folder outside of the add-ons directory. If you don't want to change anything for P3Dv4, then you can select to install in the old FSUIPC5 Modules folder (but I would recommend against this).

All this (and more) explained in the Installation guide. Please read that document.

Link to comment
Share on other sites

Hi John, i read the documentation and the installer i think is a bit confusionary, becuase if i select to update the v4 and v5 the folder indicate me

is v4 nd in v5 not install correct fsuipc. 

For me was better to mantain different version like fsuipc4 until p3dv3, fsuipc5 for p3dv4 and now only v6 with classic installation.

In any case i resolve put the old fsuipc5 ini in the modules folder (not mentioned in the documentation) in p3d v5.

its now correct to put lua and macro files in v5 folders and leave them from prepar v5 addons ? 

 

thank you to assistance.

Simone

 

 

Link to comment
Share on other sites

I take advantage of your kind support to ask you also why in these two ini the programs that start automatically are not closed forcibly (use the kill function) by fsuipc? I also tried with close, but nothing to do, they start regularly but are not closed at the close of prepar (both v4 or v5)

[Programs]
Run1=READY,KILL,C:\OpusFSI_v6\P3DSERVER.EXE
Run2=READY,KILL,C:\Users\MD80_VISUAL\Documents\Mobiflight\MFConnector.exe

thanks

Link to comment
Share on other sites

2 hours ago, sisoffi said:

i select to update the v4 and v5 the folder indicate me is v4 nd in v5 not install correct fsuipc. 

If you have read the installation manual, you did not understand it.

If you select to install in both v4 and v5, it will create ONE installation for both versions (i.e it will be shared). If you want separate installations for each version, then you have to run the installer twice, once for each sim version.

As you previously had FSUIPC5 installed, and you selected to install FSUIPC6, it will first uninstall FSUIPC5. The installation folder for FSUIPC6 will default to the previous installation location, i.e. the P3Dv4 Modules folder. If you do not change this, this is where FSUIPC6 will be installed for use by BOTH simulators.

3 hours ago, sisoffi said:

For me was better to mantain different version like fsuipc4 until p3dv3, fsuipc5 for p3dv4

No-one is forcing you yo use FSUIPC6 with P3Dv4. You can continue to use FSUIPC5 with P3Dv4 if you like, and just use FSUIPC6 with P3Dv5.

FSUIPC6 just gives you the possibility to have ONE installation for both P3Dv4 and P3Dv5. You can have two installations, one for each sim version if you prefer, or just use FSUIPC6 for P3Dv5 and keep your FSUIPC5 installation for P3Dv4.

3 hours ago, sisoffi said:

In any case i resolve put the old fsuipc5 ini in the modules folder (not mentioned in the documentation) in p3d v5.

It is not mentioned in the documentation as this does nothing. Your FSUIPC5.ini will not be recognised by FSUIPC6 - as I keep saying, you need to rename this to FSUIPC6.ini. FSUIPC5.ini is for FSUIPC5 ONLY.

I am just repeating myself over and over again here, and also just repeating what is in the installation manual. I suggest you read this again.

2 hours ago, sisoffi said:

take advantage of your kind support to ask you also why in these two

If you have a different issue, please raise a new topic.

I am closing this topic now as I cannot spend more time repeating to you what is already in the documentation.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.