On 8/31/07, Syd&Sandy <[EMAIL PROTECTED]> wrote:
> Oh man I hope you put it back together again !

Ah well, you probably don't want to know to what extend I keep messing
with it for unrelated learning, testing and general tweaking around
purposes. But that's only because I like it very much. Thanks for your
great effort there.

So on putting it together for now: considering the latest cvs I gather
you want to use the generic livery handling. But perhaps something
went wrong with the cvs stuff; the "livery describing xmlfiles" must
live in the directory the aircraft.livery.init specifies. Even more so
as the otherwise empty dir won't get created by regular "cvs -d -P",
thus that call fails and subsequently the rest of systems.nas doesn't
get evaluated.

Some further trial and error showed that even with my suggested
inclusion of <texture> in the pre-existing material animations these
won't work; even when combined into one and using a single changing
node specified in <texture-prop> unless the condition is removed .
(Perhaps I should restart digging into the code from there...)

So unless needed by something else (plib?) I suggest removing those. I
moved some objects I previously wasn't aware of from the prior
animations to the new one. For now I kept those, which aren't changed
by the two existing liveries, but seem reasonably to be variable.

I've attached a patch along those lines, not including the
moving/renaming of NZA.xml and CMA.xml to Liveries/. (Unfortunately I
wasn't able to direct git to shut up about the newline business)

Best regards
K. Hoercher
diff --git a/Models/b1900d-anim.xml b/Models/b1900d-anim.xml
index 0582b92..9df2596 100755
--- a/Models/b1900d-anim.xml
+++ b/Models/b1900d-anim.xml
@@ -11,12 +11,17 @@
       <object-name>LHflap</object-name>
       <object-name>LHflap1</object-name>
       <object-name>RHaileron</object-name>
+      <object-name>LHgeardoor1</object-name>
+      <object-name>LHgeardoor2</object-name>
       <object-name>RHelevator</object-name>
       <object-name>RHflap</object-name>
       <object-name>RHflap1</object-name>
       <object-name>Rudder</object-name>
+      <object-name>RHgeardoor2</object-name>
+      <object-name>RHgeardoor1</object-name>
       <object-name>Trim</object-name>
       <object-name>Wing</object-name>
+      <object-name>frtWheeldoor</object-name>
       <property-base>/sim/model/livery/all</property-base>
       <texture-prop>texture</texture-prop>
       <texture>NZAlivery.rgb</texture>
@@ -670,46 +675,6 @@
     </animation>
 
     <animation>
-        <type>material</type>
-        <condition>
-            <equals>
-                <property>sim/model/b1900d/livery-num</property>
-                <value>0</value>
-            </equals>
-        </condition>
-        <object-name>Fuselage</object-name>
-        <object-name>Rudder</object-name>
-        <object-name>Engines</object-name>
-        <object-name>Wing</object-name>
-        <object-name>frtWheeldoor</object-name>
-        <object-name>RHgeardoor2</object-name>
-        <object-name>RHgeardoor1</object-name>
-        <object-name>LHgeardoor1</object-name>
-        <object-name>LHgeardoor2</object-name>
-        <texture-prop>/sim/model/b1900d/texture</texture-prop>
-    </animation>
-
-    <animation>
-        <type>material</type>
-        <condition>
-            <equals>
-                <property>sim/model/b1900d/livery-num</property>
-                <value>1</value>
-            </equals>
-        </condition>
-        <object-name>Fuselage</object-name>
-        <object-name>Rudder</object-name>
-        <object-name>Engines</object-name>
-        <object-name>Wing</object-name>
-        <object-name>frtWheeldoor</object-name>
-        <object-name>RHgeardoor2</object-name>
-        <object-name>RHgeardoor1</object-name>
-        <object-name>LHgeardoor1</object-name>
-        <object-name>LHgeardoor2</object-name>
-        <texture-prop>/sim/model/b1900d/texture[1]</texture-prop>
-    </animation>
-
-    <animation>
         <type>select</type>
         <object-name>pilot</object-name>
         <condition>
@@ -2817,4 +2782,4 @@
         </axis>
     </animation>
 
-</PropertyList>
\ No newline at end of file
+</PropertyList>
diff --git a/b1900d-base.xml b/b1900d-base.xml
index 9bf4796..b9fa8d9 100644
--- a/b1900d-base.xml
+++ b/b1900d-base.xml
@@ -32,9 +32,6 @@ July 2004 Syd Adams
     <model>
         <path>Aircraft/b1900d/Models/b1900d-anim.xml</path>
         <b1900d>
-            <texture n="0">NZAlivery.rgb</texture>
-            <texture n="1">CMAlivery.rgb</texture>
-            <livery-num type="int">0</livery-num>
             <wiper type="bool">true</wiper>
             <material>
                 <instruments>
@@ -220,4 +217,4 @@ July 2004 Syd Adams
         </systems>
     </nasal>
 
-</PropertyList>
\ No newline at end of file
+</PropertyList>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to