Jump to content
The simFlight Network Forums

thedutchguy

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Nederland

thedutchguy's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. excellent. That was the problem. And i have edited the code so it´s now working like a charm! thanks for the help guys! in case anyone´s looking for the code for this function Belts(offset,value) if value == 2 then ipc.writeUW(0x341D,1) end if value == 0 then ipc.writeUW(0x341D,0) end end event.offset(0x649F,"UB","Belts")
  2. as requested. 408489 Monitor IPC:649F (U8) = 1 onwards in the log is me flicking the switch in the ngx FSUIPC5.ini FSUIPC5.log
  3. I used Lua Logging to check it. I temporarily enabled the lua script dynamic friction to check functionality of the logger. I see that lua script running as expected. I just don't see the belt scipt running. 737NGX_options.ini is edited (was already done because i use fs2crew and it needs the enable broadcast enabled) PMDG737offsets is in the fsuipc.ini file and set to Auto Added the offset 649F to the monitor and enabled onscreen display to check it. Value changes as expected from 0 to 1 to 2 and vice versa.
  4. yes it is. and i checked the fsuipc log while running the sim,. no entry of the function so it's not running for some reason.
  5. ok, i'm trying this now. but i'm stuck. i found the below piece of code on the forums and im just trying to get it to play the sound when i flick the switch. But it doesn´t do anything. i 'm purpusly just playing a sound because i want to build the code for checking the value first before adding the "changing the offset" part. function belts(offset,value) if value==2 then sound.play(""C:\\\\Applause.wav"") end end event.offset(0x649F, "UB", "belts") any idea?!?
  6. Hi, I'm completely new to offsets and have no idea if this is even possible. But is there a way i can link the belt offset of the pmdg737 ngx to the belt offset of p3dv4? So if the pmdg offset changes from 1 to 3 the p3dv4 changes from 1 to 2? I need this functionality in order for the application Sim Sounds to recognize the belt signs in the NGX. I have talked to it's developer and he says simsounds monitors the offsets No smoking sign: FSUIPC 8 bit U: Offset 0x341C Seatbelt sign: FSUIPC 8 bit U: Offset 0x341D and i want those to be coupled to the pmdg 649E 1 BYTE COMM_NoSmokingSelector 0: OFF 1: AUTO 2: ON 649F 1 BYTE COMM_FastenBeltsSelector 0: OFF 1: AUTO 2: ON can this be done? And how?
×
×
  • 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.