Mod entlädt nicht

User avatar
Kevin_J_Barton
Posts: 94
Joined: Sun Mar 29, 2015 2:38 pm
Location: Wiesbaden
Contact:

Mod entlädt nicht

Post by Kevin_J_Barton »

Hallo Gemeinde,

ich modde derzeit einen Ladewagen und bin auch schon recht weit gekommen, jedoch gibt es ein Problem beim Entladen. Er triggert einfach nciht, das heißt es erscheint nicht einmal die Meldung zum Entladen in der Hilfe. Ich habe alles nach bestem Wissen mit dem Poettinger Ladewagen und vergleichbaren Mods verglichen, finde aber keinen Fehler.
Hier die .xml:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="forageWagon">
    <annotation>Kevin_J_Barton Werkstattleiter</annotation>
    <name>
        <en>Reform V2 Forage Module</en>
        <de>Reform V2 Ladewagen </de>
    </name>
    <typeDesc>$l10n_TypeDesc_ForageWagon</typeDesc>
    <filename>V2_Ladewagen.i3d</filename>

    <size width="3" length="4"/>
	
    <lightCoronas>
        <lightCorona index="0>3|3" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>3|4" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>3|2|1" />
        <turnSignalRight index="0>3|2|0" />
    </turnSignals>

    <workAreas>
        <workArea startIndex="0>13|0" widthIndex="0>13|1" heightIndex="0>13|2" type="forageWagon"/>
    </workAreas>
	
    <inputAttacherJoints>
        <inputAttacherJoint index="0>21" jointType="semitrailer"/>
    </inputAttacherJoints>
	
    <allowFillFromAir value="true"/>
	
	<groundReferenceNodes>
        <groundReferenceNode index="0>0|0" threshold="1" />
    </groundReferenceNodes>
	
	<powerConsumer ptoRpm="500" neededPtoPower="20"/>
	
    <speedLimit value="20" />
	
	<speedRotatingParts>
        <speedRotatingPart index="0>0|0|0" radius="0.2" refNodeIndex="0" />
		<speedRotatingPart index="0>0|0|1" radius="0.2" refNodeIndex="0" />
    </speedRotatingParts>
	
	<fillScale value="1.2" />	 
    <fillVolumes>
        <fillVolume index="0>9|0" maxAllowedHeapAngle="40" scrollSpeedDischarge="0 0 0.3" scrollSpeedLoad="0 0 0.08" />
    </fillVolumes>
	
	<fillVolumeHeights>
        <fillVolumeHeight fillVolumeId="1" >
            <refNode index="0>16|0" />
            <refNode index="0>16|1" />
            <node index="0>12" baseScale="1.5 0.1 1" transAxis="0 0 0" scaleAxis="0 1 0"/>
        </fillVolumeHeight>
    </fillVolumeHeights>
	
	<fillVolumeLoadInfo index="0>23" width="1.4" length="1.0" />
	
	<tipReferencePoints>
        <tipReferencePoint index="0>22" width="2.5" />
    </tipReferencePoints>
	
	<tipAnimations>
        <tipAnimation speedScale="1" animationName="tipping" dischargeStartTime="1.0" dischargeEndTime="25" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"           node="0>5" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="grass_windrow"   node="0>5" psRootNode="0|6" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="wheat_windrow"   node="0>5" psRootNode="0|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="barley_windrow"  node="0>5" psRootNode="0|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>24" width="1.4" length="1.0" alsoUseLoadInfoForDischarge="true" loadInfoFillFactor="0.98" loadInfoSizeScale="2 3" />
            <fillVolumeHeight index="1"/>
        </tipAnimation>
    </tipAnimations>
	
	<fillRootNode index="0>" />
    <exactFillRootNode index="0>17" />
    <fillAutoAimTargetNode index="0>11" />
    <fillMassNode index="0>" />

    <capacity>21000</capacity>
	
	<fillTypes fillTypes="chaff grass_windrow wheat_windrow barley_windrow"/>
	
	<turnedOnRotationNodes>
        <turnedOnRotationNode index="0>0|1" rotSpeed="600" type="forageWagon" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </turnedOnRotationNodes>
	
	<pickupAnimation name="pickup" lowerSpeed="2" liftSpeed="-1" />

    <!--fillPlanes rotationDegrees="true">
        <fillPlane type="liquidManure">
            <node index="0>6" alwaysVisible="true">
                <key time="0" y="1.67261" rotation="0 0 -45"/>
                <key time="1" y="1.67261" rotation="0 0 -120"/>
            </node>
        </fillPlane>
    </fillPlanes-->
    <forageWgnSound file="$data/vehicles/trailers/forageWagon.wav" pitchOffset="1" volume="1.0" />
    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="1.0" volume="1.0" />
    <fillSound file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />
    	
    <washable dirtDuration="60" washDuration="1" workMultiplier="10" />

    <movingTools>
        <!-- support -->
        <movingTool index="0>14" componentJointIndex="0" anchorActor="0"/>
        <movingTool index="0>15" componentJointIndex="1" anchorActor="0"/>
        <movingTool index="0>3">
            <dependentPart index="0>4" />
			<dependentPart index="0>5" />
        </movingTool>
        <movingTool index="0>0">
            <dependentPart index="0>0|3" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>0|3" referencePoint="0>0" referenceFrame="0>0" playSound="false" />
        <movingPart index="0>4" referencePoint="0>3|0|1" referenceFrame="0>3|0|1" playSound="false" />
		<movingPart index="0>5" referencePoint="0>3|1" referenceFrame="0>3|1" />
    </movingParts>
	
	

    <animations>
        <!-- move support struts down/up -->
        <animation name="moveSupport"> 
            <part node="0>14" startTime="0"   duration="0.4" startTrans="1.1 1.7 -1.01" endTrans="1.6 1.7 -1.01" />
            <part node="0>15" startTime="0"   duration="0.4" startTrans="-1.1 1.7 -1.01"  endTrans="-1.6 1.7 -1.01" />
            <part node="0>14" startTime="0.4" duration="1" startTrans="1.6 1.7 -1.01" endTrans="1.6 -0.125 -1.01" />
            <part node="0>15" startTime="0.4" duration="1" startTrans="-1.6 1.7 -1.01"  endTrans="-1.6 -0.125 -1.01" />
            <part node="0>6" startTime="0"   endTime="0.01"  visibility="false" />
            <part node="0>6" startTime="0.01" endTime="0.02" visibility="true" />
            <part node="0>6|0" startTime="0.4"   endTime="1" startTrans="0 0.135 0"  endTrans="0 -0.125 0" />
        </animation>
		<animation name="tipping">
			<part node="0>0" startTime="0"   duration="1" startRot="-0.14 0 0" endRot="-30 0 0" />
			<part node="0>3" startTime="0"   duration="1" startRot="0 0 0" endRot="85 0 0" />
		</animation>
		<animation name="pickup">
			<part node="0>0" startTime="0"   duration="1" startRot="-0.14 0 0" endRot="-30 0 0" />
		</animation>
    </animations>

    <support animationName="moveSupport" />

    <components count="3">
  	<component1 centerOfMass="0 0.5 -1" solverIterationCount="10" />
			<component2 centerOfMass="0 0 -0.3" solverIterationCount="10" /> <!-- Support -->
			<component3 centerOfMass="0 0 -0.3" solverIterationCount="10" /> <!-- Support -->
        <joint component1="0" component2="1" index="0>15" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="2" index="0>14" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>

  <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/implementSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/implementSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
Auszug aus der Moddesc:

Code: Select all

		<type name="forageWagon" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
			<specialization name="workArea" />
			<specialization name="attachable" />
			<specialization name="turnOnVehicle" />
			<specialization name="animatedVehicle" />
			<specialization name="cylindered" />
			<specialization name="fillable" />
			<specialization name="trailer" />
			<specialization name="cover" />
			<specialization name="pickup" />
			<specialization name="forageWagon" />
			<specialization name="powerConsumer" />
			<specialization name="washable" />
			<specialization name="mountable" />
        </type>
Image

Map ist die Old Streams
User avatar
Aranea
Posts: 289
Joined: Thu Oct 06, 2016 9:51 pm
Location: meine Höhle

Re: Mod entlädt nicht

Post by Aranea »

die .xml sieht auf den ersten Blick gut und richtig aus, deshalb nehm ich mal an dass dort nicht der Fehler liegt...

1. bist du dir sicher, dass du dort Stroh abkippen kannst? sieht mir auf dem Bild eher nach ner Getreideschütte aus, aber da es ne Modmap ist mag das ja sein.
überprüf das doch bitte mal mit einem Standart-Ladewagen

2. hast du die collisionMask von deinem Ladewagen richtig eingestellt ? das ist die häufigste Ursache bei solchen Fehlern, und wird von vielen Moddern übersehen ... leider

3. überprüfe nochmal die Indexe und positionen von tipReference und solchen relevanten Teilen
MfG
die Spinne :hi:
FS modder & scripter
quality modding and support since 2012
viewtopic.php?f=884&t=115656
User avatar
Kevin_J_Barton
Posts: 94
Joined: Sun Mar 29, 2015 2:38 pm
Location: Wiesbaden
Contact:

Re: Mod entlädt nicht

Post by Kevin_J_Barton »

Hi Spinne, wenn ich an einem Ort nicht abkippen kann, sollte doch die entsprechende Meldung "xxx wird hier nicht angenommen" erscheinen? Und ja, mit anderen Ladewagen klappt es. Habe mehrere Maps und Orte probiert.

Wie sollte die collisionMask denn aussehen?

------

an dieser Stelle bin ich in den GE um einen Screenshot zu machen, und dann steht da doch tatsächlich nur "fff" in der CollisionMask. Ich habe da 1000000%ig die 802102 eingetragen, wie ich es bei allen Mods am Anfang mache die ich einrichte. Erstmal die Rigidbodys richtig einstellen usw. Naja dann will ich die Zahl dort eingeben und speichern, macht er nicht. Schaue ich mir die file im Notepad an, steht keine CollisionMask drin. Per Hand eingetragen und siehe da, er macht alles als wäre nie etwas gewesen.

Mir ist hin und wieder aufgefallen das er die Einträge löscht, aber ich war mir sicher das ich das auch schon im Zuge des Bugfixens kontrolliert hatte. Hab wohl nicht geprüft das er es nicht gespeichert hat. Wie dem auch sei, jetzt funktioniert es.

Vielen Dank an Spinne für den Hinweis (y) :hi:

Image
User avatar
Aranea
Posts: 289
Joined: Thu Oct 06, 2016 9:51 pm
Location: meine Höhle

Re: Mod entlädt nicht

Post by Aranea »

okay gut zu wissen dass es doch daran lag,

ja das ist mir auch schon des Öfteren aufgefallen, das Problem ist (warum auch immer) dass der GE die ColliMask nicht übernimmt wenn man tab oder Enter drückt, so wie man es eigendlich von UserAttributen oder Namen gewohnt ist als Modder.
ich weiß nicht ob das ein Bug ist, oder Absicht von Giants. was mir hilft ist die ColliMask einzutragen, dann auf die [...] daneben zu drücken und dort nochmal zu bestätigen
dann übernimmt er die Zahl (meistens) . . . .

wie gesagt, its not a bug, its a feature
MfG
die Spinne :hi:
FS modder & scripter
quality modding and support since 2012
viewtopic.php?f=884&t=115656
Post Reply