#1 [↑][↓]  19-02-2010 08:25:22

lumat
Copilote
Date d'inscription: 22-09-2008
Renommée :   
Site web

PMDG J41 script "Cold and dark"

Salut à tous

Il existe un script pour mettre cet avion en situation "Cold and Dark".
Voici le lien :
http://forums.simflight.com/viewtopic.p … mp;t=78339

Cela nécessite la dernière version enregistrée de FSUIPC. Pour ceux que cela interesse et qui ont FSUIPC, voilà le script :

RSG = ipc.readLvar("L:RightEngStopSwitchGuard")

   if RSG == 0 then
      ipc.writeLvar("L:RightEngStopSwitchGuard", 1)
   ipc.control(66587, 8010)

   elseif RSG == 1 then
   end
   
   ipc.sleep(700)

   ipc.writeLvar("L:StopTwoToggle", 1)
   ipc.control(66587, 8042)
   ipc.control(66587, 16)
   ipc.sleep(200)
   ipc.writeLvar("L:StopTwoToggle", 0)
   ipc.control(66587, 8042)


ipc.sleep(2000)


-- LEFT Engine OFF

   LSG = ipc.readLvar("L:LeftEngStopSwitchGuard")

   if LSG == 0 then
      ipc.writeLvar("L:LeftEngStopSwitchGuard", 1)
   ipc.control(66587, 8010)

   elseif LSG == 1 then
   end
   
   ipc.sleep(700)

   ipc.writeLvar("L:StopOneToggle", 1)
   ipc.control(66587, 8042)
   ipc.control(66587, 15)
   ipc.sleep(200)
   ipc.writeLvar("L:StopOneToggle", 0)
   ipc.control(66587, 8042)

ipc.sleep(1000)


-- LEFT Generator SWITCH off

   LGen = ipc.readLvar("L:LeftGenSwitch")

   if LGen == 2 then
      ipc.writeLvar("L:LeftGenSwitch", 1)
   ipc.control(66587, 8027)

   elseif LGen == 1 then
   end

ipc.sleep(200)


-- RIGHT Generator SWITCH off

   RGen = ipc.readLvar("L:RightGenSwitch")

   if RGen == 2 then
      ipc.writeLvar("L:RightGenSwitch", 1)
   ipc.control(66587, 8027)

   elseif RGen == 1 then
   end

ipc.sleep(200)


-- LEFT Battery SWITCH off

   LBat = ipc.readLvar("L:LeftBatSwitch")

   if LBat == 1 then
      ipc.writeLvar("L:LeftBatSwitch", 0)
   ipc.control(66587, 8028)

   elseif LBat == 0 then
   end


ipc.sleep(200)


-- Right Battery SWITCH off

   RBat = ipc.readLvar("L:RightBatSwitch")

   if RBat == 1 then
      ipc.writeLvar("L:RightBatSwitch", 0)
   ipc.control(66587, 8028)

   elseif RBat == 0 then
   end


ipc.sleep(200)


-- Left AVIONICS SWITCh OFF

   LAvM = ipc.readLvar("L:LeftAvionicsMaster")

   if LAvM == 1 then
      ipc.writeLvar("L:LeftAvionicsMasterGuard", 0)
   ipc.control(66587, 8026)
   ipc.sleep(500)
      ipc.writeLvar("L:LeftAvionicsMaster", 0)
   ipc.control(66587, 8027)

   elseif LAvM == 0 then

   end

ipc.sleep(200)

-- RIGHT AVIONICS SWITCh OFF

   RAvM = ipc.readLvar("L:RightAvionicsMaster")

   if RAvM == 1 then
      ipc.writeLvar("L:RightAvionicsMasterGuard", 0)
   ipc.control(66587, 8026)
   ipc.sleep(500)
      ipc.writeLvar("L:RightAvionicsMaster", 0)
   ipc.control(66587, 8027)

   elseif RAvM == 0 then
   end


ipc.sleep(200)


-- LEFT Fuel Pump SWITCH off

   LFuel = ipc.readLvar("L:LeftStbyFuelPump")

   if LFuel == 1 then
      ipc.writeLvar("L:LeftStbyFuelPump", 0)
   ipc.control(66587, 8027)

   elseif LFuel == 0 then
   end


ipc.sleep(200)


-- RIGHT Fuel Pump SWITCH off

   RFuel = ipc.readLvar("L:RightStbyFuelPump")

   if RFuel == 1 then
      ipc.writeLvar("L:RightStbyFuelPump", 0)
   ipc.control(66587, 8027)

   elseif RFuel == 0 then
   end


ipc.sleep(200)


-- DC PowersourceKnob OFF

   DCP = ipc.readLvar("L:DCPowerSourceKnob")

   if DCP >= 1 then
      ipc.writeLvar("L:DCPowerSourceKnob", 0)
   ipc.control(66587, 8039)

   elseif DCP == 0 then
   end


ipc.writeLvar("L:CPYokeUpDown", 1)
ipc.writeLvar("L:PICYokeUpDown", 1)



Instructions :

Copier ce script dans le bloc note et enregister dans le dossier "Modules" de FSX sous le nom "J41.lua" (par exemple)
Ensuite, lancer FSX, placer vous sur un aeroport avec le j41 puis réglez FSUIPC selon l'image ci-dessous :

[IMG=http://img707.imageshack.us/img707/9385/capturesg.jpg][/IMG]

Et vlà le travail solv_gif

Luc

Dernière modification par lumat (19-02-2010 08:26:46)

Hors ligne

 

Pied de page des forums

Maintenance informatique Lausanne