Jump to content
The simFlight Network Forums

Gehall1963

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Canada

Gehall1963's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi John; The solution turned out to be simpler than I thought, the only relevant part of the code is the custom event ID 69635, switching this to a value of 1 initiates the start sequence so it was very simple to assign this to a switch. In the end I just added these entries to the FSUIPC.ini file. [LvarOffsets.CF-104] 1=L:starter0=UB0xA001 2=L:starter1=UB0xA002 [Buttons.CF-104] 1=PE,30,Cx0100A001,x01 -{offset byte set, offset A001}- 2=UE,30,Cx0100A001,x00 -{offset byte set, offset A001}- 3=PE,30,Cx0100A002,x01 -{offset byte set, offset A002}- 4=UE,30,Cx0100A002,x00 -{offset byte set, offset A002}- 5=PE,30,C69635,1 -{Custom control: <69635>}- 6=UE,30,C69635,0 -{Custom control: <69635>}- I'm learning :), Thanks again for your reply and for a great piece of software ! Glen
  2. Hi John; I would like to implement the engine starter sequence in the SSW FRF-104 and assign to a switch but it uses both Lvars (I know how to use these) and the code below, just wondering if this is possible with FSUIPC? Would this be an LUA script? More than willing to scour the advanced manual to learn more but don't want to waste time if it can't be done. <!-- left starter switch --> <Name>left_starter</Name> <Animation> <Parameter> <Code> (L:starter0, number) 50 * </Code> <Lag>100</Lag> </Parameter> </Animation> <MouseRect> <Cursor>Hand</Cursor> <TooltipText>LEFT STARTER </TooltipText> <MouseFlags>LeftRelease+LeftSingle</MouseFlags> <CallbackCode> (M:Event) 'LeftSingle' scmp 0 == if{ 69635 (>L:custom_event_id, number) 1 (>L:starter0, number) } (M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:starter0, number) } </CallbackCode> </MouseRect> Thanks Glen
  3. Hi John; Yes, I did work that out and as per my later reply I now have that Lvar assigned to a switch. I also discovered on another aircraft that Lvars are case sensitive 🙂 Thanks Glen
  4. Hi John; No need to respond, I have it working now, I was on the right track assigning an offset and thanks to user "mk2022" and an earlier post I now understand about the "Offset Byte Togglebits" and "Offset Byte setbits" etc that are under the Control to be set. Cheers Glen
  5. Hi John; Maybe it's my 60 year old brain but I can't seem to work out the best method to assign an L:Var to a controller button. I have used the WASM module to confirm the L:Var name and have been able to activate the L:var to confirm it does what I want. Where I'm stuck is getting from there to something I can assign to a switch. I have been studying the advanced manual sections on Offsets, WASM, Custom Events and Calculator Codes but nothing is quite clear. I have tried adding an offset per below but can't figure out how to control that offset with a switch. [LvarOffsets.Hawker Hunter] 1=L:StarterMaster=0xA000 Any help would be much appreciated, I am a huge fan of FSUIPC and use it for FSX and MSFS. Thanks Glen
×
×
  • 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.