Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,

Ik have made this kind of programming for FSUIPC4 in FSX:

[buttons]

ButtonRepeat=20,10

InitialButton=0,7

0=CU(-0,7)0,6,C1003,10

1=CU(-0,6)0,7,C1003,10

2=CP(-0,7)0,6,C1004,10

.

.

I expect that flag 10 would be set, when I don't touch a joystick key as it does in FSUIPC for FS9. But it doesn't. Is something changed between FSUIPC and FSUIPC4 for button programming ?

Hm

  • 2 weeks later...
Posted

Ik have made this kind of programming for FSUIPC4 in FSX:

[buttons]

ButtonRepeat=20,10

InitialButton=0,7

0=CU(-0,7)0,6,C1003,10

1=CU(-0,6)0,7,C1003,10

2=CP(-0,7)0,6,C1004,10

.

.

I expect that flag 10 would be set, when I don't touch a joystick key as it does in FSUIPC for FS9. But it doesn't. Is something changed between FSUIPC and FSUIPC4 for button programming ?

No, the code should be the same internally for these actions. I will investigate, but please first confirm you are using the latest interim versions (3.998q and 4.754), and then enable Button logging and show me the logs for both. (add LogButtonsKeys=Yes to the [General] section of the INI file before starting FS).

Regards

Pete

Posted

Hi Pete,

I made the logs like you requested. I started a flight and immediatly halted, nothing touched. Ok, here are the logs :

********* FSUIPC, Version 3.998q by Pete Dowson *********

Running on Windows Version 5.1 Build 2600 Service Pack 2

Verifying Certificate for "E:\Flight Simulator 9\MODULES\FSUIPC.dll" now ...

SUCCESS! Signature verifies okay!

Running inside FS2004 (FS9.1 CONTROLS.DLL, FS9.1 WEATHER.DLL)

User Name="Hugo Marien"

User Addr="h.marien@pandora.be"

FSUIPC Key is provided

WIDEFS not user registered, or expired

Module base=61000000

WeatherReadInterval=4

LogOptions=00000001

DebugStatus=15

2402 System time = 09/01/2012 16:50:39

2402 E:\Flight Simulator 9\

2402 System time = 09/01/2012 16:50:39, FS2004 time = 12:00:00 (00:00Z)

11528 FLIGHTS\OTHER\FLTSIM.flt

11575 AIRCRAFT\c172\Cessna172SP.air

11747 Aircraft="Cessna Skyhawk 172SP"

31699 C:\Users\Hugo\Documents\Flight Simulator Files\Belgium Keiheuvel Saab.flt

31855 AIRCRAFT\SibWings SAAB 91B Safir\safir.air

31949 Aircraft="91B Safir ZU-DES"

32323 Clear All Weather requested: external weather discarded

33524 AES Link established

42853 Advanced Weather Interface Enabled

61277 InitialButton Press: Button 0,7

61277 Button changed: bRef=0, Joy=0, Btn=7, Pressed

61277 [buttons] 5=CP(-0,6)0,7,C1004,10

61277 .... Condition (-0,6) = TRUE

61277 FSUIPC Control Action: Ctrl=1004, Param=10

61277 [buttons] 6=CP(-0,6)0,7,C1003,12

61277 .... Condition (-0,6) = TRUE

61277 FSUIPC Control Action: Ctrl=1003, Param=12

61277 [buttons] 8=CP(F+0,11)0,7,C1004,11

61277 .... Condition (F+0,11) = FALSE

61277 [buttons] 9=CP(+0,6)0,7,C1003,13

61277 .... Condition (+0,6) = FALSE

61511 Traffic File #103 = "scenery\world\scenery\traffic_000_woa_transavia_wi08"

61558 Button changed: bRef=0, Joy=0, Btn=7, Released

61558 [buttons] 1=CU(-0,6)0,7,C1003,10

61558 .... Condition (-0,6) = TRUE

61558 FSUIPC Control Action: Ctrl=1003, Param=10

61558 [buttons] 7=CU(F+0,12)0,7,C1004,12

61558 .... Condition (F+0,12) = TRUE

61558 FSUIPC Control Action: Ctrl=1004, Param=12

61558 [buttons] 10=CU(F+0,13)0,7,C1004,13

61558 .... Condition (F+0,13) = FALSE

61558 Traffic File #48 = "scenery\world\scenery\traffic_000_woa_el al israel airlines_wi08"

61636 Traffic File #14 = "scenery\world\scenery\traffic_000_uga_glex_fs9"

61683 Traffic File #36 = "scenery\world\scenery\traffic_000_woa_brussels airlines_su08"

61761 Traffic File #124 = "scenery\world\scenery\traffic_123_woa_iberia_wi07"

61932 Traffic File #137 = "scenery\world\scenery\traffic_172_woa_lufthansa (regional partners)_su07"

62041 InitialButton Release: Button 0,7

62119 Traffic File #105 = "scenery\world\scenery\traffic_000_woa_tui airlines belgium_su08"

62182 Traffic File #167 = "scenery\world\scenery\traffic_30_woa_ryanair_wi07"

62213 Traffic File #123 = "scenery\world\scenery\traffic_122_woa_vlm airlines_su07"

62338 Traffic File #146 = "scenery\world\scenery\traffic_194_woa_ga beechcraft king air b200_wi07"

62463 Traffic File #169 = "scenery\world\scenery\traffic_42_woa_lufthansa_wi07_fs9"

62556 Traffic File #134 = "scenery\world\scenery\traffic_155_woa_scandinavian airlines_su07"

62665 Traffic File #163 = "scenery\world\scenery\traffic_253_woa_tnt airways_su08"

62837 Traffic File #135 = "scenery\world\scenery\traffic_167_woa_bmibaby_su07"

62962 Traffic File #172 = "scenery\world\scenery\traffic_58_woa_british airways_wi07"

63227 Traffic File #223 = "scenery\world\scenery\traffic_lfqj"

63633 Traffic File #165 = "scenery\world\scenery\traffic_26_woa_american airlines_su06"

63664 Traffic File #171 = "scenery\world\scenery\traffic_54_woa_british mediterranean airways_wi07"

63835 Traffic File #175 = "scenery\world\scenery\traffic_70_woa_klm royal dutch airlines_su07"

64303 Traffic File #39 = "scenery\world\scenery\traffic_000_woa_corendon airlines_su08"

64397 Traffic File #84 = "scenery\world\scenery\traffic_000_woa_pegasus_su08"

65099 Traffic File #131 = "scenery\world\scenery\traffic_145_woa_thomas cook airline [belgium]_su07"

65505 Traffic File #143 = "scenery\world\scenery\traffic_186_woa_cathay pacific airways (cargo)_wi07"

65598 Traffic File #148 = "scenery\world\scenery\traffic_196_woa_turkish airlines_su08"

65707 Traffic File #160 = "scenery\world\scenery\traffic_233_woa_csa czech airlines_wi07"

65926 KEYDOWN: VK=18, Waiting=0, Repeat=N, Shifts=4

65926 .. Key not programmed -- passed on to FS

66035 KEYUP: VK=18, Waiting=0

70138 System time = 09/01/2012 16:51:47, FS2004 time = 15:08:33 (13:08Z)

70138 *** FSUIPC log file being closed

Memory managed: 90 Allocs, 621 Freed

********* FSUIPC Log file closed ***********

********* FSUIPC4, Version 4.755 by Pete Dowson *********

User Name="Hugo Marien"

User Addr="h.marien@pandora.be"

FSUIPC4 Key is provided

WIDEFS7 not user registered, or expired

Running inside FSX on Windows 7

Module base=61000000

219 System time = 09/01/2012 16:59:23

219 FLT path = "C:\Users\Hugo\Documents\Flight Simulator X Files\"

234 Trying to connect to SimConnect Acc/SP2 Oct07 ...

234 FS path = "E:\Flight Simulator X\"

468 LogOptions=40000000 00000001

468 Wind smoothing fix is fully installed

468 G3D.DLL fix attempt installed ok

468 SimConnect_Open succeeded: waiting to check version okay

468 Trying to use SimConnect Acc/SP2 Oct07

1591 Running in "Microsoft Flight Simulator X", Version: 10.0.61637.0 (SimConnect: 10.0.61259.0)

1591 Initialising SimConnect data requests now

1591 FSUIPC Menu entry added

1623 E:\Flight Simulator X\FLIGHTS\OTHER\FLTSIM.FLT

1623 E:\Flight Simulator X\SimObjects\Airplanes\Aircreation_582SL\Aircreation_582SL.AIR

51075 Weather Mode now = Theme

51075 e:\flight simulator x\missions\Tutorials\Tutorial01\Tutorial01.FLT

51964 System time = 09/01/2012 17:00:14, Simulator time = 11:30:27 (18:30Z)

51980 Aircraft="Aircreation582SL Blue"

91588 E:\Flight Simulator X\SimObjects\Airplanes\Beech_King_Air_350\Beech_King_Air_350.AIR

91588 e:\flight simulator x\missions\Pilot for Hire\ExecutiveTour\KEDW_Tour.PLN

91588 Weather Mode now = Custom

91588 e:\flight simulator x\missions\Pilot for Hire\ExecutiveTour\Executive_Tour.FLT

91869 Aircraft="Beech King Air 350 Paint3"

122258 Starting everything now ...

122258 AES Link established

123491 Advanced Weather Interface Enabled

138716 System time = 09/01/2012 17:01:41, Simulator time = 07:04:48 (14:04Z)

138716 *** FSUIPC log file being closed

Average frame rate for running time of 10 secs = 29.5 fps

G3D fix: Passes 12297, Null pointers 0, Bad pointers 0, Separate instances 0

Memory managed: 5 Allocs, 5 Freed

********* FSUIPC Log file closed ***********

Posted

I made the logs like you requested. I started a flight and immediatly halted, nothing touched. Ok, here are the logs

One thing immediately apparent is that the FS9 actions seem to show a different [buttons] assignment list to that which you showed for FSX:

61277 [buttons] 5=CP(-0,6)0,7,C1004,10

61277 [buttons] 6=CP(-0,6)0,7,C1003,12

61277 [buttons] 8=CP(F+0,11)0,7,C1004,11

61277 [buttons] 9=CP(+0,6)0,7,C1003,13

61558 [buttons] 1=CU(-0,6)0,7,C1003,10

61558 [buttons] 7=CU(F+0,12)0,7,C1004,12

61558 [buttons] 10=CU(F+0,13)0,7,C1004,13

However, that said, it is rather odd that no button action is recorded in the FSX log. I'll do some testing here.

Regards

Pete

Posted

Hi,

No both sections are the same for the general [buttons] section :

FSUIPC :

[buttons]

ButtonRepeat=20,10

PollInterval=50

InitialButton=0,7

0=CU(-0,7)0,6,C1003,10

1=CU(-0,6)0,7,C1003,10

2=CP(-0,7)0,6,C1004,10

3=CP(-0,7)0,6,C1003,11

4=CU(F+0,11)0,6,C1004,11

5=CP(-0,6)0,7,C1004,10

6=CP(-0,6)0,7,C1003,12

7=CU(F+0,12)0,7,C1004,12

8=CP(F+0,11)0,7,C1004,11

9=CP(+0,6)0,7,C1003,13

10=CU(F+0,13)0,7,C1004,13

11=CP(F+0,12)0,6,C1004,12

12=CP(+0,7)0,6,C1003,13

13=CU(F+0,13)0,6,C1004,13

14=W0BE8=0 CP(F+0,10)0,0,K32,8

15=W0BE8 CR(F+0,10)0,0,C65588,0

16=CP(F+0,10)0,1,C65570,0

17=CR(F+0,10)0,2,C65607,0

18=CR(F+0,10)0,3,C65615,0

19=CP(F+0,10)0,4,C65758,0

20=CP(F+0,10)0,5,C65759,0

21=CP(F+0,11)0,0,C65752,1

22=CP(F+0,11)0,1,C65751,0

23=CR(F+0,11)0,2,C65771,0

24=CR(F+0,11)0,3,C65769,0

25=CP(F+0,11)0,5,C65589,0

26=CP(F+0,12)0,1,C65858,0

27=CR(F+0,12)0,2,C65777,0

28=CR(F+0,12)0,3,C65775,0

29=CP(F+0,12)0,4,K83,8

30=CP(F+0,12)0,5,K83,9

31=CP(F+0,13)0,0,C1005,31

32=CP(F+0,13)(F+0,31)0,0,C66224,0

33=CP(F+0,13)(F-0,31)0,0,K112,11

34=CP(F+0,13)0,1,C66293,0

35=CP(F+0,13)0,2,C66244,0

36=CP(F+0,13)0,3,C66243,0

FSUIPC4 :

[buttons]

ButtonRepeat=20,10

PollInterval=50

InitialButton=0,7

0=CU(-0,7)0,6,C1003,10

1=CU(-0,6)0,7,C1003,10

2=CP(-0,7)0,6,C1004,10

3=CP(-0,7)0,6,C1003,11

4=CU(F+0,11)0,6,C1004,11

5=CP(-0,6)0,7,C1004,10

6=CP(-0,6)0,7,C1003,12

7=CU(F+0,12)0,7,C1004,12

8=CP(F+0,11)0,7,C1004,11

9=CP(+0,6)0,7,C1003,13

10=CU(F+0,13)0,7,C1004,13

11=CP(F+0,12)0,6,C1004,12

12=CP(+0,7)0,6,C1003,13

13=CU(F+0,13)0,6,C1004,13

14=W0BE8=0 CP(F+0,10)0,0,K32,8

15=W0BE8 CR(F+0,10)0,0,C65588,0

16=CP(F+0,10)0,1,C65570,0

17=CR(F+0,10)0,2,C65607,0

18=CR(F+0,10)0,3,C65615,0

19=CP(F+0,10)0,4,C65758,0

20=CP(F+0,10)0,5,C65759,0

21=CP(F+0,11)0,0,C65752,1

22=CP(F+0,11)0,1,C65751,0

23=CR(F+0,11)0,2,C65771,0

24=CR(F+0,11)0,3,C65769,0

25=CP(F+0,11)0,5,C65589,0

26=CP(F+0,12)0,1,C65858,0

27=CR(F+0,12)0,2,C65777,0

28=CR(F+0,12)0,3,C65775,0

29=CP(F+0,12)0,4,K83,8

30=CP(F+0,12)0,5,K83,9

31=CP(F+0,13)0,0,C1005,31

32=CP(F+0,13)(F+0,31)0,0,C66224,0

33=CP(F+0,13)(F-0,31)0,0,K112,11

34=CP(F+0,13)0,1,C66293,0

35=CP(F+0,13)0,2,C66244,0

36=CP(F+0,13)0,3,C66243,0

Posted

No both sections are the same for the general [buttons] section

I was comparing your original post:

0=CU(-0,7)0,6,C1003,10

1=CU(-0,6)0,7,C1003,10

2=CP(-0,7)0,6,C1004,10

with what actually got processed according to your FS9 log:

61277 [buttons] 5=CP(-0,6)0,7,C1004,10

61277 [buttons] 6=CP(-0,6)0,7,C1003,12

61277 [buttons] 8=CP(F+0,11)0,7,C1004,11

61277 [buttons] 9=CP(+0,6)0,7,C1003,13

61558 [buttons] 1=CU(-0,6)0,7,C1003,10

61558 [buttons] 7=CU(F+0,12)0,7,C1004,12

61558 [buttons] 10=CU(F+0,13)0,7,C1004,13

There's obviously a lot more going on that wat was implied by your first posting. That was my only comment. If it was a subtle error in FSUIPC, I'd need to compare apples with apples not with oranges.

However, that is all moot now. I found the problem. it was a bit weird -- it worked fine if you are also using my PFC driver (PFCFSX), as I am. I had to trace through to spot that there was an unintended dependency. The error has been in for years, so it seems the InitialButton option is either rarely used, or few bother to report problems. So thanks for doing so.

It's fixed in 4.756, just placed in the Download Links subforum.

Regards

Pete

Posted

Hi Pete,

That's quick! I had no problems with it in FSUIPC, in FSX however...

Well my first message was only showing a part of the programming, hence these points in the rows after the commands I mentioned.

But solved now...well I seems to attract the weird things, do you still remember that weird thing with the tab and alt flags for button programming: "to late to change" ...

Regards and al the best for 2012,

Hugo

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.