Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Pages: 1 ... 4 5 6 7 
Send Topic Print
If you'd have a chance to replicate and add things to the VC of the 737-800? (Read 12082 times)
Reply #75 - Feb 4th, 2012 at 7:09pm

Daube   Offline
Colonel
Alternative bloomer
Nice (FR)

Gender: male
Posts: 5833
*****
 
I went further with my studying of the gauge coding.
I made a try, by looking at the various variables, how to read this or that etc...
So in the end, I tried creating a gauge... but unfortunately, it didn't work.
I made several modifications but there is something wrong in my conditions. Sometimes the avionics are always ON, sometimes always OFF... it doesn't take the engine+gen status correctly into account.

I'm sure it's a stupid mistake hidden somewhere, but it's 01:08 AM here, and my brain cannot work anymore.... Here is the XML code I created. I hope you can use it as a valid base and make it work after some corrections.

Code:
<Gauge Name="Automatic avionics">
<Element>
<Select>
<Value>
(A:APU PCT RPM,percent) 10 &gt;
(A:APU GENERATOR SWITCH,bool) &amp;&amp;
(A:ENG1 N2 RPM,rpm) 10 &gt;
(A:General eng1 generator switch,bool) &amp;&amp; ||
(A:ENG2 N2 RPM,rpm) 10 &gt;
(A:General eng2 generator switch,bool) &amp;&amp; || if{ 1 (>L:Avionics master switch,bool)}</Value>
</Select>
</Element>
</Gauge>
 

 
IP Logged
 
Reply #76 - Feb 5th, 2012 at 9:06am

alrot   Offline
Colonel
Freeware Designers Above
All..

Posts: 10231
*****
 
even I having trouble to understand that

Code:
<Gauge Name="Automatic avionics">
  <Element>
    <Position X="0" Y="0"/>
       <Image Name="Automatic_avionics_Background.bmp" Bright="Yes"/>
   <Select>
     <Value>
         (A:APU PCT RPM,percent) 10 &gt;
           (A:APU GENERATOR SWITCH,bool) &amp;&amp;
              (A:ENG1 N2 RPM,rpm) 10 &gt;
                (A:General eng1 generator switch,bool) &amp;&amp; ||
               (A:ENG2 N2 RPM,rpm) 10 &gt;
             (A:General eng2 generator switch,bool) &amp;&amp; || if{ 1 (>L:Avionics master switch,bool)}</Value>
          </Select>
      </Element>
   </Gauge> 



not sure about the >L: in avionics  Undecided not sure in in nothing Tongue

I added a small bmp to make it vissible and still doesn't work, I believe this would have to be a switch like engine generator0 with the conditional avionics master switch

I never been that good in gauges , I have made simply things like the eicas of the citation x  and many of the md83
most of them are text dysplays and hiding screens using and opaque backgrounds using axis and rotating modes
...

---------------------------------------------

we need to simplify this ,both engines generator (0 and 1) to command one single thing avionics switch.

  I'm trying to modify the modeldef part

    <PartInfo>
        <Name>switch_generator0</Name>
        <Copy>switch_generator</Copy>
        <AnimLength>50</AnimLength>
        <Animation>
            <Parameter>
                <Sim>
                    <Variable>GENERAL ENG GENERATOR SWITCH:1</Variable>
                </Sim>
            </Parameter>
        </Animation>
        <MouseRect>
            <TooltipID>TOOLTIPTEXT_ENG1_GENERATOR_SWITCH</TooltipID>
            <EventID>TOGGLE_ALTERNATOR1</EventID>
        </MouseRect>
    </PartInfo>   

so when you click the generator0 it will also move the avionics On and Off for both... Is that will be Ok?

 

...

Venezuela
IP Logged
 
Reply #77 - Feb 6th, 2012 at 4:15am

Daube   Offline
Colonel
Alternative bloomer
Nice (FR)

Gender: male
Posts: 5833
*****
 
Hi Alejandro,

Sorry for the delay in answering, yesterday I've been driving to Germany where I'll spend the whole week, which means I won't be able to test anything during this week (away from my gaming computer  Undecided ).

A gauge doesn't need to be visible to be active. Instead of assigning the "avionics" function to the GEN buttons, I've was trying to make a silent gauge that just checks in the background the status of the various systems and decides if the avionics should be ON or OFF. I'm using the same technique than the "RealEngine" gauges, if you see what I'm talking about. These gauges are invisible, but they constantly check what you are doing to decide if some failures should be triggered. They are all in XML and they are a great source of information for learning how to get the the various statuses of the plane systems.

In my case, I was trying to write in this gauge that the avionics should be activated if one of the engines was running and its GEN was ON. In this way, if the user would just activate the APU and the APU GEN, then he would see the avionics getting activated automatically. Not only with the APU, but also with the engine 1 or the engine 2.

But I failed to implement the check condition correctly. I think I'll create a topic about this on one of the french forums to ask for advises. Then I'll come back to you. If I succeed to do that, then you will not need to modify any button in the cockpit at all.

I'll keep you updated about this.
Cheers,
Stephane.
 
IP Logged
 
Reply #78 - Feb 6th, 2012 at 7:06am

alrot   Offline
Colonel
Freeware Designers Above
All..

Posts: 10231
*****
 


Stephane ,I manage to fix a part and made the engine generator0 to switch the avionics on and off at the same time
(I got some help in another forum)

I'll be sending it to you soon

Alex
 

...

Venezuela
IP Logged
 
Reply #79 - Feb 6th, 2012 at 7:17am

Daube   Offline
Colonel
Alternative bloomer
Nice (FR)

Gender: male
Posts: 5833
*****
 
Alejandro, I will not have access to FSX for the full week Wink
 
IP Logged
 
Reply #80 - Feb 6th, 2012 at 9:33am

alrot   Offline
Colonel
Freeware Designers Above
All..

Posts: 10231
*****
 
Daube wrote on Feb 6th, 2012 at 7:17am:
Alejandro, I will not have access to FSX for the full week Wink


Cheesy what a cool, you can trip to Germany ,go to UK ,living the life ,while I'm stuck in this God D prison of third world country, Don't you need there in Le France a house keeper cleaning ,a butter, a slave???? hey I can wash dogs and clean their crap ,and I also made aircraft for certain PC game   Embarrassed <---outta topic Tongue
back to subject

Code:
  <MouseRect>
      <TooltipID>TOOLTIPTEXT_ENG1_GENERATOR_SWITCH</TooltipID>
      <Cursor>Hand</Cursor>
      <CallbackCode>
          (>K:TOGGLE_ALTERNATOR1)
          (>K:TOGGLE_AVIONICS_MASTER)
      </CallbackCode>
  </MouseRect> 


thanks Bill Leaming!

with this we can have the two things working in one of the generators which I pic the 0 which is the right side engine

 

...

Venezuela
IP Logged
 
Reply #81 - Feb 6th, 2012 at 10:44am

Daube   Offline
Colonel
Alternative bloomer
Nice (FR)

Gender: male
Posts: 5833
*****
 
Hmm... but then, don't you lose the avionics if that particular engine is switched off ?
Also, that means that the user will have to switch that engine GEN, even if he is just sitting at the gate with only the APU running.

I have created a topic concerning my gauge on another forum.
I'll wait for the answers and report here. I believe that you don't need to modify these buttons, but I could be wrong. Anyways, this issue got me curious, and now I just want to know how this is supposed to work Smiley
 
IP Logged
 
Reply #82 - Feb 6th, 2012 at 11:23am

alrot   Offline
Colonel
Freeware Designers Above
All..

Posts: 10231
*****
 

Instead of Generator0 it can be in APU switch  or APUstart switch or any other switch YOU want ,it will works along with the avionics switch too once I made the script for them too,It better only one like the APU switch  ,

tell me which one will I turn into a switch with a double function  Cool
 

...

Venezuela
IP Logged
 
Reply #83 - Feb 7th, 2012 at 4:33am

Daube   Offline
Colonel
Alternative bloomer
Nice (FR)

Gender: male
Posts: 5833
*****
 
As you wish Alejandro.
I still investigating about the gauge itself though, because such a gauge would be very convenient and easy to transfer to other planes like your Citation and MD-83 for example, with a simple additionnal line in the panel.cfg.

And as I said, I'm know really curious to understand how theses gauge work. I NEED to know  Cheesy Grin
 
IP Logged
 
Reply #84 - Feb 12th, 2012 at 11:33am

Daube   Offline
Colonel
Alternative bloomer
Nice (FR)

Gender: male
Posts: 5833
*****
 
Success !!! Finally !!  Shocked Cheesy
The problem, I believe, was that my XML gauge was placed directly in the panel folder of the plane. It seems FSX doesn't like that, and that XML files sould be either in a CAB file or in a subfolder.

So after several modification of the gauge coding, I created a folder "new" in my panel folder, and placed the gauge inside. Then I edited the panel.cfg to change the name of the gauge to "gauge34=new!auto_avionics, 1,1,1,1".

AND IT WORKED !!
Now the avionics turn ON as soon as one of the generators turns ON, but only if the corresponding engine is ON as well Smiley So if the plane is cold and dark, and you just switch one of the generators ON, then the avionics stays OFF. But if you switch the APU ON, and the APU GEN ON, then after a second or two (for the APU to be really running) the avionics turn ON as well !!  Smiley

Here is the latest version of the coding:
Code:
<Gauge Name="Automatic avionics">
<Element>
<Select>
<Value>(A:GENERAL ENG GENERATOR ACTIVE:1,bool) (A:GENERAL ENG GENERATOR ACTIVE:2,bool) || (A:APU GENERATOR ACTIVE,bool) || if{ 1 (>K:AVIONICS_MASTER_SET) } els{ 0 (>K:AVIONICS_MASTER_SET) }</Value>
</Select>
</Element>
</Gauge> 



I'm going to add this gauge to the CitationX and the MD-83 as well.
Alejandro, if you have not modified your switches yet, then you should include this gauge in the final package. It's really cool to be able to call the ATC without having to press CTRL+E Cheesy
 
IP Logged
 
Reply #85 - Feb 12th, 2012 at 12:49pm

Daube   Offline
Colonel
Alternative bloomer
Nice (FR)

Gender: male
Posts: 5833
*****
 
Guess what ? The Citation has already a real Avionics switch on the lower panel Grin
Ah well, at least I could make a nice little test flight again with it Smiley I'm off to post the screenshots now.
 
IP Logged
 
Reply #86 - Feb 12th, 2012 at 7:15pm

alrot   Offline
Colonel
Freeware Designers Above
All..

Posts: 10231
*****
 


Oh Stephan my apologies ,I didn't saw the upper post I thought was the Older one from feb7  Cheesy also I was a little bit exausted I had a lot of work today ...yes on Sunday Embarrassed

very good so Ill export Once again without the switch double work gen0&avionics ,put back the gen0 (like the default model) then I apply your gauge
 

...

Venezuela
IP Logged
 
Reply #87 - Feb 13th, 2012 at 8:42am

alrot   Offline
Colonel
Freeware Designers Above
All..

Posts: 10231
*****
 
I should known your email  Undecided, I need you to check the update version like the way you told me buddy!!

Hello!!  J'ai besoin d'essayer le nouveau modčle selon vos instructions
 

...

Venezuela
IP Logged
 
Reply #88 - Feb 13th, 2012 at 12:17pm

Daube   Offline
Colonel
Alternative bloomer
Nice (FR)

Gender: male
Posts: 5833
*****
 
Hi Alejandro,

Sorry for the late answer, but I'm still in the office, so I can't test yet.
Hopefully I should return home in more or less two hours. Then I'll give a try to your newest archive.
I'm also still working on your readme, by the way. Wink

Cheers,
Stephane.
 
IP Logged
 
Reply #89 - Feb 13th, 2012 at 4:57pm

Daube   Offline
Colonel
Alternative bloomer
Nice (FR)

Gender: male
Posts: 5833
*****
 
Hi again Alejandro.

Two good news for me Smiley

1- I have sent you a PM with the new readme file. Please check if it's ok like that.

2- I could test the latest version of the cockpit, and I confirm everything works perfectly Smiley

Additionnaly, I have to tell you that the new cockpit textures/lighting is really fantastic, compared to what it was before ! I absolutely love it !  Cheesy Here are some screenshots to show how the cockpit will look like at night with the new lights:
1- no lights at all
...


2- only instrument lights
...


3- only cabin light
...


4- cabin + instrument lights
...

Excellent work !
Oh, I tested the avionics again and it works correctly Wink
 
IP Logged
 
Pages: 1 ... 4 5 6 7 
Send Topic Print