Hi Community,
ich habe mich die Tage mal daran gemacht meinem Steyr Profi CVT den Motorstart per IC zu verbauen.
Die wichtisten Einträge sind ja in der moddesc hier zu setzten sofern ich das richtig verstanden habe. In der xml d. Traktors is ja eigentlich nur das IC Event.
Hab euch mal die Sachen hier mitgepostet.
Ich danke schon mal für Anregungen
Auszug aus SteyrProfiCVT.xml
<buttons>
<button name="motorStartStop" mark="0>13|9|16" size="0.05" event="toggleMotorIgnition" onMessage="ic_button_on" offMessage="ic_button_off" synch="false" initAction="false" looping="false" soundFile="sounds/keySample.wav"/>
</buttons>
</interactiveComponents>
moddesc.xml
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="32">
<author>GIANTS Software, AgriXl, Oylerhenry</author>
<version>1.0.0.0</version>
<title>
<en>Steyr Profi CVT</en>
<de>Steyr Profi CVT</de>
</title>
<description>
<en>This is the Steyr Profi CVT.</en>
<de>Das ist der Steyr Profi CVT.</de>
</description>
<iconFilename>store_SteyrProfi.dds</iconFilename>
<multiplayer supported="true"/>
<storeItems>
<storeItem rootNode="vehicle" xmlFilename="SteyrProfiCVT.xml"/>
</storeItems>
<specializations>
<specialization name="interactiveControl" className="InteractiveControl" filename="Scripts/InteractiveControl.lua"/>
<specialization name="interactiveWindows" className="InteractiveWindows" filename="Scripts/InteractiveWindows.lua"/>
<specialization name="interactiveButtons" className="InteractiveButtons" filename="Scripts/InteractiveButtons.lua"/>
<specialization name="doorOpener" className="DoorOpener" filename="Scripts/DoorOpener.lua"/>
<!-- <specialization name="warningSigns" className="WarningSigns" filename="Scripts/WarningSigns.lua"/> -->
<specialization name="LAFix" className="LAFix" filename="Scripts/LAFix.lua"/>
<specialization name="toggleAnim" className="toggleAnimatedParts" filename="Scripts/toggleAnimatedParts.lua"/>
<specialization name="dynamicHoseRef" className="DynamicHoseRef" filename="Scripts/DynamicHoseRef.lua"/>
<specialization name="indoorSounds" className="indoorSounds" filename="Scripts/indoorSounds.lua"/>
<specialization name="mechanism" className="mechanism" filename="Scripts/mechanism.lua"/>
<specialization name="LuefterSound" className="LuefterSound" filename="Scripts/LuefterSound.lua"/>
</specializations>
<vehicleTypes>
<type name="SteyrProfi" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="attacherJoints"/>
<specialization name="frontloaderAttacher"/>
<specialization name="lights"/>
<specialization name="animatedVehicle"/>
<specialization name="speedRotatingParts"/>
<specialization name="motorized"/>
<specialization name="steerable"/>
<specialization name="drivable"/>
<specialization name="cylindered"/>
<specialization name="aiVehicle"/>
<specialization name="bunkerSiloCompacter"/>
<specialization name="honk"/>
<specialization name="washable"/>
<specialization name="mountable"/>
<specialization name="wheelRotations"/>
<specialization name="interactiveControl"/>
<specialization name="interactiveWindows"/>
<specialization name="interactiveButtons"/>
<specialization name="doorOpener"/>
<!-- <specialization name="warningSigns"/> -->
<specialization name="toggleAnim"/>
<specialization name="dynamicHoseRef"/>
<specialization name="indoorSounds"/>
<specialization name="mechanism"/>
<specialization name="LuefterSound"/>
</type>
</vehicleTypes>
<l10n>
<text name="INTERACTIVE_CONTROL_SWITCH">
<en>Switch IC State</en>
<de>IC an/abschalten</de>
<fr>Activer/Désactiver le CI</fr>
</text>
<text name="InteractiveControl_Off">
<en>Disable IC</en>
<de>IC ausschalten</de>
<fr>Désactiver le CI</fr>
</text>
<text name="InteractiveControl_On">
<en>Enable IC</en>
<de>IC anschalten</de>
<fr>Activer le CI</fr>
</text>
<text name="ic_component_close">
<en>Left Mouse Button: close %s</en>
<de>Linke Maustaste: %s schließen</de>
<fr>Clic gauche : fermer %s</fr>
</text>
<text name="ic_component_open">
<en>Left Mouse Button: open %s</en>
<de>Linke Maustaste: %s öffnen</de>
<fr>Clic gauche : ouvrir %s</fr>
</text>
<text name="ic_button_on">
<en>Left Mouse Button: activate %s</en>
<de>Linke Maustaste: %s anschalten</de>
<fr>Clic gauche : activer %s</fr>
</text>
<text name="ic_button_off">
<en>Left Mouse Button: deactivate %s</en>
<de>Linke Maustaste: %s ausschalten</de>
<fr>Clic gauche : désactiver %s</fr>
</text>
<text name="backWindow">
<en>Back window</en>
<de>Heck-Fenster</de>
</text>
<text name="leftDoor">
<en>Left door</en>
<de>Linke Tür</de>
</text>
<text name="topWindow">
<en>Top Window</en>
<de>Dachfenster</de>
</text>
<text name="kabinenlicht">
<en>Kabinenlicht ein-/ausschalten</en>
<de>Cabinlight on/off</de>
</text>
<!-- <text name="input_SET_WARNING_SIGN">
<en/>
<de>abbauen/anbauen</de>
</text> -->
<text name="ic_component_attach">
<de>Linke Maustaste: %s anbauen</de>
</text>
<text name="ic_component_detach">
<de>Linke Maustaste: %s abbauen</de>
</text>
<text name="Tablet">
<en>Tablet Terminal</en>
<de>Tablet Terminal</de>
</text>
<text name="Amapad">
<en>Amazon Amapad Terminal</en>
<de>Amazon Amapad Terminal</de>
</text>
<text name="Amatron">
<en>Amazon Amatron Terminal</en>
<de>Amazon Amatron Terminal</de>
</text>
<text name="Goeweil">
<en>Goeweil Control</en>
<de>Goeweil Control</de>
</text>
<text name="Grimme">
<en>Grimme Isobus</en>
<de>Grimme Isobus</de>
</text>
<text name="Horsch">
<en>Horsch Terminal</en>
<de>Horsch Terminal</de>
</text>
<text name="Kuhn">
<en>Kuhn Isobus</en>
<de>Kuhn Isobus</de>
</text>
<text name="Krone">
<en>Krone Isobus</en>
<de>Krone Isobus</de>
</text>
<text name="Lemken">
<en>Lemken Terminal</en>
<de>Lemken Terminal</de>
</text>
<text name="LemkenPanel">
<en>Lemken Panel</en>
<de>Lemken Panel</de>
</text>
<text name="PoettingerDirect">
<en>PoettingerDirect Control</en>
<de>PoettingerDirect Control</de>
</text>
<text name="PoettingerPower">
<en>PoettingerPower Control</en>
<de>PoettingerPower Control</de>
</text>
<text name="Zunhammer">
<en>Zunhammer Control</en>
<de>Zunhammer Control</de>
</text>
<text name="SET_DOOROPENER">
<en>Open/Close door</en>
<de>Tür öffnen/schließen</de>
</text>
<text name="FH">
<en>Open/Close Button Arms</en>
<de>Unterlenker aus/einklappen</de>
</text>
<text name="BH">
<en>Open/Close Button Arms</en>
<de>Unterlenker aus/einklappen</de>
</text>
<text name="Motorhaube">
<en>Open/Close Botton</en>
<de>Motorhaube öffnen/schließen</de>
</text>
<text name="Armlehne">
<en>Open/Close armrest</en>
<de>Armlehne öffnen/schließen</de>
</text>
<text name="Standardconfig">
<en>Standard Konfiguration</en>
<de>Standard Configuration</de>
</text>
<text name="Steuerkonsolenerweiterung">
<en>Controlconsole added</en>
<de>Steuerkonsolenerweiterung</de>
</text>
<text name="Motor_starten">
<de>Motor starten</de>
<en>Engine start</en>
</text>
<text name="RUL_activate">
<en>Turn On/Off Beacon Lights</en>
<de>Rundumleuchte ein-/ausschalten</de>
</text>
<text name="RUL_turn">
<en>Move Up/Down Beacon Lights</en>
<de>Rundumleuchte hochklappen/niederklappen</de>
</text>
<text name="TM800">
<en>Trelleborg TM800 Set</en>
<it>Trelleborg TM800 Set</it>
<de>Trelleborg TM800 Set</de>
</text>
<text name="TM900HP">
<en>Trelleborg TM900HP Set</en>
<it>Trelleborg TM900HP Set</it>
<de>Trelleborg TM900HP Set</de>
</text>
<text name="MichelinXeoBib">
<en>Michelin XeoBib set</en>
<de>Michelin XeoBib set</de>
<it>Michelin XeoBib set</it>
</text>
<text name="MichelinXM27">
<en>Michelin XM27 set</en>
<de>Michelin XM27 set</de>
<it>Michelin XM27 set</it>
</text>
<text name="ContinentalSVT">
<en>Continental SVT 710/900 set</en>
<de>Continental SVT 710/900 set</de>
<it>Continental SVT 710/900 set</it>
</text>
<text name="ContinentalContractAC65">
<en>Continental Contract AC65 set</en>
<de>Continental Contract AC65 set</de>
<it>Continental Contract AC65 set</it>
</text>
</l10n>
<inputBindings>
<input name="INTERACTIVE_CONTROL_SWITCH" category="VEHICLE" key1="KEY_space" key2="" button="" device="0" mouse=""/>
<input name="SET_DOOROPENER" category="onfoot" key1="KEY_r" key2="" button="" device="0" mouse=""/>
<!-- <input name="SET_WARNING_SIGN" category="onfoot" key1="KEY_r" key2="" button="" device="0" mouse=""/> -->
</inputBindings>
</modDesc>