Motorstart einbauen hilfe

Joker Brand
Posts: 111
Joined: Sun Sep 04, 2011 4:33 am

Motorstart einbauen hilfe

Post by Joker Brand »

Hallo,

ich möchte in meinem Pistenbully einen Motorstart einbauen ich kenn mich da nicht so aus und hab mir ein tut angeschaut verstehs aber nicht ganz ( http://wiki.farming-simulator.com/index ... r_einbauen ) kann mir da einer Helfen ?

Hier die die Xml
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="snowcat">
<annotation>Original from GIANTS Software, modified by Joker.</annotation>
<name>
<en></en>
<de></de>
</name>
<description></description>
<filename>pistenbully600.i3d</filename>
<wheels autoRotateBackSpeed="2.5">
<wheel rotSpeed="-70" rotMax="32" rotMin="-32" driveMode="1" repr="0" radius="0.45" deltaY="0.01" suspTravel="0.03" spring="30" damper="30" mass="0.2" lateralStiffness="2" isSynchronized="false"/>
<wheel rotSpeed="-70" rotMax="32" rotMin="-32" driveMode="1" repr="1" radius="0.45" deltaY="0.01" suspTravel="0.03" spring="30" damper="30" mass="0.2" lateralStiffness="2" isSynchronized="false"/>
<wheel rotSpeed="70" rotMax="32" rotMin="-32" driveMode="1" repr="2" radius="0.45" deltaY="0.01" suspTravel="0.03" spring="30" damper="30" mass="0.2" lateralStiffness="2" isSynchronized="false"/>
<wheel rotSpeed="70" rotMax="32" rotMin="-32" driveMode="1" repr="3" radius="0.45" deltaY="0.01" suspTravel="0.03" spring="30" damper="30" mass="0.2" lateralStiffness="2" isSynchronized="false"/>

<wheel rotSpeed="0" driveMode="1" repr="4" radius="0.43" deltaY="0.01" suspTravel="0.03" spring="15" damper="30" mass="0.2" lateralStiffness="2" isSynchronized="false"/>
<wheel rotSpeed="0" driveMode="1" repr="5" radius="0.43" deltaY="0.01" suspTravel="0.03" spring="15" damper="30" mass="0.2" lateralStiffness="2" isSynchronized="false"/>
</wheels>

<dynamicWheelFriction minAngle="50" maxAngle="60" />

<crawlers>
<crawler index="0>21" scrollSpeed="1" length="11.75415" speedRefNode="0>21|0">
<rotatingPart index="0>17|6" radius="0.385" />
<rotatingPart index="0>17|7" radius="0.385" />
<rotatingPart index="0>17|8" radius="0.385" />
<rotatingPart index="0>17|9" radius="0.385" />
<rotatingPart index="0>17|10" radius="0.385" />
<rotatingPart index="0>17|11" radius="0.385" />
</crawler>
<crawler index="0>22" scrollSpeed="1" length="11.75415" speedRefNode="0>22|0">
<rotatingPart index="0>17|0" radius="0.385" />
<rotatingPart index="0>17|1" radius="0.385" />
<rotatingPart index="0>17|2" radius="0.385" />
<rotatingPart index="0>17|3" radius="0.385" />
<rotatingPart index="0>17|4" radius="0.385" />
<rotatingPart index="0>17|5" radius="0.385" />
</crawler>
</crawlers>

<motor compensateWheelRadius="true" minRpm="40" maxRpm="430 600 697" maxTorques="-1 -1 -1" brakeForce="18" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" accelerations="1 1 1" forwardGearRatio="9" backwardGearRatio="9" differentialRatio="1" rpmFadeOutRange="20">
<torque rpm="40" torque="35.0"/>
<torque rpm="697" torque="20.0"/>
<torque rpm="832" torque="0.0"/>

<backwardTorque rpm="40" torque="35"/>
<backwardTorque rpm="405" torque="6"/>
<backwardTorque rpm="450" torque="0.0"/>
</motor>

<snowcat size="3" limitedRpm="600" limitedRpmSlow="430" />

<accelerationSpeed maxAcceleration="0.17" deceleration="0.25" backwardDeceleration="0.7" />
<fuelCapacity>220</fuelCapacity>
<fuelUsage>0.0035</fuelUsage>
<downForce>7</downForce>

<cameras count="2">
<camera1 index="6|0|0" rotatable="true" rotateNode="6|0" limit="true" rotMinX="-1.4" rotMaxX="1" transMin="6" transMax="30" useWorldXZRotation="true" >
<raycastNode index="0>7|0"/>
<raycastNode index="0>7|1"/>
</camera1>
<camera2 index="6|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" />
</cameras>

<attachSound file="$data/sounds/attach.wav" pitchOffset="1" />
<motorStartSound file="pistenbully_600_start.wav" pitchOffset="0.85" volume="1" />
<motorSound file="pistenbully_600_idle.wav" pitchOffset="0.85" pitchScale="0.009" pitchMax="1.25" volume="1" />
<motorSoundRun file="$data/sounds/hydrostatic_sound.wav" pitchOffset="0.85" pitchScale="0.009" pitchMax="1" volume="1" />
<motorStopSound file="pistenbully_600_stop.wav" pitchOffset="0.85" />
<reverseDriveSound file="$data/sounds/reverseDrivingBeep.wav" volume="0.5" />
<honkSound file="$data/sounds/horn.wav" client="$data/sounds/horn3D.wav" volume="1" radius="80" innerRadius="35" />

<schemaOverlay file="$data/vehicles/steerable/pistenbully/pistenbullySchema.png" width="1" height="0.5" attacherJointPosition="0.5 0">
<attacherJoint position="0.7 0.35" rotation="10" invertX="false" />
<attacherJoint position="0.2 0.28" rotation="0" invertX="true" />
</schemaOverlay>

<lights count="1">
<light1 index="8" />
</lights>

Wo muss ich das einbauen ? komm nicht mit ...

danke schon mal

Joker :hi:
THUG 4-LIFE
User avatar
bassaddict
GIANTS Software | Web/Script Programmer
Posts: 11983
Joined: Tue Nov 29, 2011 2:44 pm
Location: ER, DE

Re: Motorstart einbauen hilfe

Post by bassaddict »

Das muss in die modDesc.xml rein, nicht in die XML vom Fahrzeug.

Bitte beim nächsten Mal die Spoiler-Funktion oder Anhang für XML-Inhalte, LOG etc benutzen, damit der Thread übersichtlich bleibt.
Joker Brand
Posts: 111
Joined: Sun Sep 04, 2011 4:33 am

Re: Motorstart einbauen hilfe

Post by Joker Brand »

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="7">
<author>Austrian Modding Team</author>
<title>
<en>PistenBully 600 V1</en>
<de>PistenBully 600 ohne Winde V1</de>
</title>
<description>
<en>
<![CDATA[This PistenBully is a PistenBully 600 Standard. The Original PB600 by GIANTS Software is a PistenBully 600 W. This version has a real price.]]>
</en>
<de>
<![CDATA[Dieser PistenBully 600 Standard unterscheidet sich vom Originalen durch die fehlende Winde (der Original-PB ist ein PistenBully 600 W). Außerdem hat er nun einen realen Preis.]]>
</de>
</description>
<multiplayer supported="true" />
<iconFilename>
<en>store.dds</en>
<de>store.dds</de>
</iconFilename>
<version>1</version>
<storeItems>
<storeItem>
<en>
<name>PistenBully 600</name>
<description>
<![CDATA[This PistenBully is a PistenBully 600 Standard. The Original PB600 by GIANTS Software is a PistenBully 600 W. The price is real. (V1a)
edit by Fendtfan1 & MaxT35 @ AMT
http://www.austrian-modding-team.tk]]>
</description>
<specs>Maintenance: %s / day</specs>
</en>
<de>
<name>PistenBully 600 ohne Winde</name>
<description>
<![CDATA[Der PistenBully 600 ohne Winde stellt eine kostengünstigere Variante des Flaggschiffs von Kässbohrer dar. Der Preis wurde dem Vorbild nachempfunden. (V1a)
edit by Fendtfan1 & MaxT35 @ AMT
http://www.austrian-modding-team.tk]]>
</description>
<specs>Unterhaltskosten: %s / Tag</specs>
</de>
<dailyUpkeep>850</dailyUpkeep>
<rotation>0</rotation>
<image active="store.dds"/>
<price>300000</price>
<xmlFilename>pistenbully600.xml</xmlFilename>
</storeItem>
<storeItem>
<en>
<name>PistenBully 600</name>
<description>
<![CDATA[This PistenBully is a PistenBully 600 Standard. The Original PB600 by GIANTS Software is a PistenBully 600 W. The price isn't real, but it's nearly the same like the price of GIANTS' bullies. (V1b)
edit by Fendtfan1 & MaxT35 @ AMT
http://www.austrian-modding-team.tk]]>
</description>
<specs>Maintenance: %s / day</specs>
</en>
<de>
<name>PistenBully 600 ohne Winde</name>
<description>
<![CDATA[Der PistenBully 600 ohne Winde stellt eine kostengünstigere Variante des Flaggschiffs von Kässbohrer dar. Der Preis wurde nach den Preisen der anderen Bullys von GIANTS angepasst. (V1b)
edit by Fendtfan1 & MaxT35 @ AMT
http://www.austrian-modding-team.tk]]>
</description>
<specs>Unterhaltskosten: %s / Tag</specs>
</de>
<dailyUpkeep>1450</dailyUpkeep>
<rotation>0</rotation>
<image active="store.dds"/>
<price>550000</price>
<xmlFilename>pistenbully600b.xml</xmlFilename>
</storeItem>
</storeItems>
</modDesc>
so hier wo muss ich das hier
<specializations>
<specialization name="motorIgnition" className="motorIgnition" filename="motorIgnition.lua"/>
</specializations>
<vehicleTypes>
<type name="motorIgnition" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="motorized" />
<specialization name="steerable" />
<specialization name="hirable" />
<specialization name="aiTractor" />
<specialization name="motorIgnition" />
</type>
</vehicleTypes>
<inputBindings>
<input name="IGNITION" key="KEY_KP_enter" button="" />
</inputBindings>
<l10n>
<text name="Start">
<en>Start the engine</en>
<de>Motor starten</de>
</text>
</l10n>
einfügen versteh das irgentwie nicht :hmm: habs jetzt mal so gemacht
<storeItems>
<specializations>
<specialization name="motorIgnition" className="motorIgnition" filename="motorIgnition.lua"/>
</specializations>
<vehicleTypes>
<type name="motorIgnition" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="motorized" />
<specialization name="steerable" />
<specialization name="hirable" />
<specialization name="aiTractor" />
<specialization name="motorIgnition" />
</type>
</vehicleTypes>
<inputBindings>
<input name="IGNITION" key="KEY_KP_enter" button="" />
</inputBindings>
<l10n>
<text name="Start">
<en>Start the engine</en>
<de>Motor starten</de>
</text>
</l10n>
<storeItem>
und so
</storeItem>
<specializations>
<specialization name="motorIgnition" className="motorIgnition" filename="motorIgnition.lua"/>
</specializations>
<vehicleTypes>
<type name="motorIgnition" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="motorized" />
<specialization name="steerable" />
<specialization name="hirable" />
<specialization name="aiTractor" />
<specialization name="motorIgnition" />
</type>
</vehicleTypes>
<inputBindings>
<input name="IGNITION" key="KEY_KP_enter" button="" />
</inputBindings>
<l10n>
<text name="Start">
<en>Start the engine</en>
<de>Motor starten</de>
</text>
</l10n>
<storeItem>
<en>
gesamte xml sieht jetzt so aus
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="7">
<author>Austrian Modding Team</author>
<title>
<en>PistenBully 600 V1</en>
<de>PistenBully 600 ohne Winde V1</de>
</title>
<description>
<en>
<![CDATA[This PistenBully is a PistenBully 600 Standard. The Original PB600 by GIANTS Software is a PistenBully 600 W. This version has a real price.]]>
</en>
<de>
<![CDATA[Dieser PistenBully 600 Standard unterscheidet sich vom Originalen durch die fehlende Winde (der Original-PB ist ein PistenBully 600 W). Außerdem hat er nun einen realen Preis.]]>
</de>
</description>
<multiplayer supported="true" />
<iconFilename>
<en>store.dds</en>
<de>store.dds</de>
</iconFilename>
<version>1</version>
<storeItems>
<specializations>
<specialization name="motorIgnition" className="motorIgnition" filename="motorIgnition.lua"/>
</specializations>
<vehicleTypes>
<type name="motorIgnition" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="motorized" />
<specialization name="steerable" />
<specialization name="hirable" />
<specialization name="aiTractor" />
<specialization name="motorIgnition" />
</type>
</vehicleTypes>
<inputBindings>
<input name="IGNITION" key="KEY_KP_enter" button="" />
</inputBindings>
<l10n>
<text name="Start">
<en>Start the engine</en>
<de>Motor starten</de>
</text>
</l10n>
<storeItem>
<en>
<name>PistenBully 600</name>
<description>
<![CDATA[This PistenBully is a PistenBully 600 Standard. The Original PB600 by GIANTS Software is a PistenBully 600 W. The price is real. (V1a)
edit by Fendtfan1 & MaxT35 @ AMT
www.austrian-modding-team.tk]]>
</description>
<specs>Maintenance: %s / day</specs>
</en>
<de>
<name>PistenBully 600 ohne Winde</name>
<description>
<![CDATA[Der PistenBully 600 ohne Winde stellt eine kostengünstigere Variante des Flaggschiffs von Kässbohrer dar. Der Preis wurde dem Vorbild nachempfunden. (V1a)
edit by Fendtfan1 & MaxT35 @ AMT
www.austrian-modding-team.tk]]>
</description>
<specs>Unterhaltskosten: %s / Tag</specs>
</de>
<dailyUpkeep>850</dailyUpkeep>
<rotation>0</rotation>
<image active="store.dds"/>
<price>300000</price>
<xmlFilename>pistenbully600.xml</xmlFilename>
</storeItem>
<specializations>
<specialization name="motorIgnition" className="motorIgnition" filename="motorIgnition.lua"/>
</specializations>
<vehicleTypes>
<type name="motorIgnition" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="motorized" />
<specialization name="steerable" />
<specialization name="hirable" />
<specialization name="aiTractor" />
<specialization name="motorIgnition" />
</type>
</vehicleTypes>
<inputBindings>
<input name="IGNITION" key="KEY_KP_enter" button="" />
</inputBindings>
<l10n>
<text name="Start">
<en>Start the engine</en>
<de>Motor starten</de>
</text>
</l10n>
<storeItem>
<en>
<name>PistenBully 600</name>
<description>
<![CDATA[This PistenBully is a PistenBully 600 Standard. The Original PB600 by GIANTS Software is a PistenBully 600 W. The price isn't real, but it's nearly the same like the price of GIANTS' bullies. (V1b)
edit by Fendtfan1 & MaxT35 @ AMT
www.austrian-modding-team.tk]]>
</description>
<specs>Maintenance: %s / day</specs>
</en>
<de>
<name>PistenBully 600 ohne Winde</name>
<description>
<![CDATA[Der PistenBully 600 ohne Winde stellt eine kostengünstigere Variante des Flaggschiffs von Kässbohrer dar. Der Preis wurde nach den Preisen der anderen Bullys von GIANTS angepasst. (V1b)
edit by Fendtfan1 & MaxT35 @ AMT
www.austrian-modding-team.tk]]>
</description>
<specs>Unterhaltskosten: %s / Tag</specs>
</de>
<dailyUpkeep>1450</dailyUpkeep>
<rotation>0</rotation>
<image active="store.dds"/>
<price>550000</price>
<xmlFilename>pistenbully600b.xml</xmlFilename>
</storeItem>
</storeItems>
</modDesc>
ist das richtig so ?
THUG 4-LIFE
User avatar
bassaddict
GIANTS Software | Web/Script Programmer
Posts: 11983
Joined: Tue Nov 29, 2011 2:44 pm
Location: ER, DE

Re: Motorstart einbauen hilfe

Post by bassaddict »

Nee so geht das nicht.
Ich frage mich grade, ob der Motorstart überhaupt in srs funktioniert. Außerdem sind mir die standard vehicleTypes vom Pistenbully nicht bekannt und ohne die wird das nix mit andere specializations einbauen.
User avatar
MaxT35
Posts: 605
Joined: Mon Mar 30, 2009 1:57 pm
Location: Österreich
Contact:

Re: Motorstart einbauen hilfe

Post by MaxT35 »

Aaach - siehe da, mein - ähhm ... - unser Bully ... ;)

@Joker: Kannst noch auf die V1.1 warten, da werd ich versuchen, das ganze mit IC einzubauen. Ist sicherlich noch mal 'n Stückl schöner als mit der Tastatur ;)
MfG,
MaxT35

Austrian Modding Team | 1. Leitungsvorstand, Scripter
Innovation is our Passion
http://www.austrianmodding.at
Post Reply