Ich wollte mal das AddConfig Skript ausprobieren und hab mir deswegen mal meinen Lieblings Mod geschnappt, bei dem ich zuvor auch schon einige Änderungen vorgenommen habe, um das mal zu testen.
Ich wollte 2 Konfigurationen einbauen.
1. dass man die Front Kotflügel ein und ausblenden kann. zuvor hatte ich das mit einer Wheelconfig geregelt wollte das aber nun mit einer separaten Konfiguration
2. Druckluft Hörner die ich mal eingebaut hatte ein und aus blenden.
ich habe also folgendes in die ModDesc.xml eingefügt
Code: Select all
<specializations>
<specialization name="addConfiguration" className="AddConfiguration" filename="scripts/AddConfiguration.lua"/>
</specializations>
<vehicleTypes>
<type name="tractorReverseDriving" parent="baseDrivable" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="addConfiguration"/>
</type>
</vehicleTypes>
<newConfigurations>
<newConfiguration configurationName="frontfender" isColorConfiguration="false" />
<newConfiguration configurationName="airHorn" isColorConfiguration="false" />
</newConfigurations>
<l10n>
<text name="additionalConifgs"> <en>Additional configurations</en> <de>Zusätzliche Konfigurationen</de> </text>
<text name="configuration_frontfender"> <en>Front Fenders</en> <de>Vordere Kotflügel</de> </text>
<text name="configuration_airHorn"> <en>Airhorns</en> <de>Druckluft Hörner</de> </text>
<text name="yes"> <en>yes</en> <de>Ja</de> </text>
<text name="no"> <en>no</en> <de>Nein</de> </text>
<text name="roofTop"> <en>roofTop</en> <de>Dach oben</de> </text>
<text name="roofSide"> <en>roofSide</en> <de>Dach seite</de> </text>
<text name="hood"> <en>Hood</en> <de>Haube</de> </text>
<text name="all"> <en>all</en> <de>Alle</de> </text>
</l10n>
und Folgendes in die Fahrzeug.xml
Code: Select all
<vehicle type="tractorReverseDriving".....................................................
<!-- Custom Conficigurations-->
<configurationSets title="$l10n_additionalConifgs">
<configurationSet name="$l10n_no">
<configuration name="frontfender" index="1" />
<configuration name="airHorn" index="1" />
</configurationSet>
<configurationSet name="$l10n_yes">
</configurationSet>
</configurationSets>
<frontfenderConfigurations>
<frontfenderConfiguration name="$l10n_yes" price="0">
<objectChange node="fenderFrontLeft" visibilityActive="true" />
<objectChange node="fenderFrontRight" visibilityActive="true" />
</frontfenderConfiguration>
<frontfenderConfiguration name="$l10n_no" price="0">
<objectChange node="fenderFrontLeft" visibilityActive="false" />
<objectChange node="fenderFrontRight" visibilityActive="false" />
</frontfenderConfiguration>
</frontfenderConfigurations>
<airHornConfigurations>
<airHornConfiguration name="$l10n_no" price="0">
<objectChange node="airhornRoofTopLeft" visibilityActive="false" />
<objectChange node="airhornRoofTopRight" visibilityActive="false" />
<objectChange node="airhornRoofSideLeft" visibilityActive="false" />
<objectChange node="airhornRoofSideRight" visibilityActive="false" />
<objectChange node="airhornHoodLeft" visibilityActive="false" />
<objectChange node="airhornHoodRight" visibilityActive="false" />
</airHornConfiguration>
<airHornConfiguration name="$l10n_roofTop" price="0">
<objectChange node="airhornRoofTopLeft" visibilityActive="true" />
<objectChange node="airhornRoofTopRight" visibilityActive="true" />
</airHornConfiguration>
<airHornConfiguration name="$l10n_roofSide" price="0">
<objectChange node="airhornRoofSideLeft" visibilityActive="true" />
<objectChange node="airhornRoofSideRight" visibilityActive="true" />
</airHornConfiguration>
<airHornConfiguration name="$l10n_hood" price="0">
<objectChange node="airhornHoodLeft" visibilityActive="true" />
<objectChange node="airhornHoodRight" visibilityActive="true" />
</airHornConfiguration>
<airHornConfiguration name="$l10n_all" price="0">
<objectChange node="airhornRoofTopLeft" visibilityActive="true" />
<objectChange node="airhornRoofTopRight" visibilityActive="true" />
<objectChange node="airhornRoofSideLeft" visibilityActive="true" />
<objectChange node="airhornRoofSideRight" visibilityActive="true" />
<objectChange node="airhornHoodLeft" visibilityActive="true" />
<objectChange node="airhornHoodRight" visibilityActive="true" />
</airHornConfiguration>
</airHornConfigurations>
<i3dMappings>
<!--AirHorns-->
<i3dMapping id="airhornRoofTopRight" node="0>5|4|27" />
<i3dMapping id="DairhornRoofTopLeft" node="0>5|4|27|5" />
<i3dMapping id="airhornRoofSideRight" node="0>5|4|27|2" />
<i3dMapping id="airhornRoofSideLeft" node="0>5|1|0|15" />
<i3dMapping id="airhornHoodRight" node="0>5|4|27|1" />
<i3dMapping id="airhornHoodLeft" node="0>5|4|27|4" />
<i3dMapping id="fenderFrontLeft" node="1>0|0|1|0" />
<i3dMapping id="fenderFrontRight" node="1>0|1|1|0" />
</i3dMappings>
Falls irgendwer einen Plan hat warums nicht geht oder den Fehler sieht, wäre ich sehr dankbar.
MfG