Spring naar inhoud
NLD Community

Join the NLD Discord channel! discord.png https://discord.gg/0WsKGiYeGHJEAI5q
Breaking News: NLD Community maakt een doorstart!

UAL bouwen op trailer


zwapbede

Aanbevolen Bericht

hallo,

 

ik probeer een UAL van een bijna identieke trailer over te zetten op een andere, maar dat lukt niet helemaal.

ik krijg geen errors ingame.

 

wat heb ik gedaan:

LUA's overgezet (script)

moddesc overgezet

XML overgezet

I3D triggers overgezet

indexen verandert. 

 

XML

Spoiler

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="transportTrailerUAL">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>Flatbed low loader</en>            <de>Flachbett Tieflader</de>
            <fr>Surbaissée à plat</fr>
            <pl>Platforma niskopodwoziowa</pl>
        </name>
        <specs>
            <combination>Dolly EA</combination>
        </specs>
        <functions>
            <function>$l10n_function_lowLoader</function>
        </functions>
        <image>store_tieflader.dds</image>
        <price>11500</price>
        <dailyUpkeep>10</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>lowloaders</category>
        <vertexBufferMemoryUsage>555040</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>125040</indexBufferMemoryUsage>
        <textureMemoryUsage>7317632</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <filename>Tieflader.i3d</filename>
    <size width="3.5" length="16" lengthOffset="-1.5"/>
    <wheelConfigurations>
        <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
            <wheels>
                <wheel tipOcclusionAreaGroupId="1" restLoad="0.9" repr="0>0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/trailerDual.xml" isLeft="true"  initialCompression="30" suspTravel="0.16" spring="50" damper="40"/>
                <wheel tipOcclusionAreaGroupId="1" restLoad="0.9" repr="0>1" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/trailerDual.xml" isLeft="true"  initialCompression="28" suspTravel="0.16" spring="50" damper="40" steeringAxleScale="-0.3" steeringAxleRotMax="30" steeringAxleRotMin="-30"/>
                <wheel tipOcclusionAreaGroupId="1" restLoad="0.9" repr="0>2" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/trailerDual.xml" isLeft="true"  initialCompression="15" suspTravel="0.16" spring="50" damper="40" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.3" steeringAxleRotMax="40" steeringAxleRotMin="-40"/>
                <wheel tipOcclusionAreaGroupId="2" restLoad="0.9" repr="0>3" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/trailerDual.xml" isLeft="false" initialCompression="30" suspTravel="0.16" spring="50" damper="40" hasTireTracks="true" hasParticles="true"/>
                <wheel tipOcclusionAreaGroupId="2" restLoad="0.9" repr="0>4" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/trailerDual.xml" isLeft="false" initialCompression="28" suspTravel="0.16" spring="50" damper="40" steeringAxleScale="-0.3" steeringAxleRotMax="30" steeringAxleRotMin="-30"/>
                <wheel tipOcclusionAreaGroupId="2" restLoad="0.9" repr="0>5" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/trailerDual.xml" isLeft="false" initialCompression="15" suspTravel="0.16" spring="50" damper="40" steeringAxleScale="-0.3" steeringAxleRotMax="40" steeringAxleRotMin="-40"/>
           </wheels>
        </wheelConfiguration>
    </wheelConfigurations>
      <steeringAxleAngleScale startSpeed="0" endSpeed="90" backwards="true" />
    <brakeForce>0.6</brakeForce>
    <lights>
        <low>
            <light decoration="0>12|0|0|0" lightTypes="0" excludedLightTypes="3"/>
            <!--BackLights-->
        </low>
        <high>
            <light realLight="0>12|0|0|1" decoration="0>12|0|0|0" lightTypes="0" excludedLightTypes="3"/>
            <!--BackLights-->
        </high>
    </lights>
    <brakeLights>
        <brakeLight realLight="0>12|0|0|1" decoration="0>12|0|2|0"/>
    </brakeLights>
    <turnLights>
        <turnLightLeft realLight="0>12|0|1|0|1" decoration="0>12|0|1|0|0"/>
        <turnLightRight realLight="0>12|0|1|1|1" decoration="0>12|0|1|1|0"/>
    </turnLights>
    <beaconLights>
        <beaconLight index="0>12|0|3|0" speed="0.015" filename="$data/shared/beaconLights/beaconLight06.i3d"/>
        <beaconLight index="0>12|0|3|1" speed="0.015" filename="$data/shared/beaconLights/beaconLight06.i3d"/>
    </beaconLights>
    <reverseLights>
        <reverseLight realLight="0>12|0|4|1" decoration="0>12|0|4|0"/>
    </reverseLights>
    <dynamicMountAttacher triggerNode="0>10" rootNode="0>" jointNode="0>" forceAcceleration="30"/>
    <inputAttacherJoints>
        <inputAttacherJoint index="0>6" jointType="semitrailer"/>
    </inputAttacherJoints>
    
    <tensionBelts linkNode="0>11" jointNode="0>" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" >
        <tensionBelt startNode="0>11|0" endNode="0>11|0|0" offsetLeft="0.95" />
        <tensionBelt startNode="0>11|1" endNode="0>11|1|0" />
        <tensionBelt startNode="0>11|2" endNode="0>11|2|0" />
        <tensionBelt startNode="0>11|3" endNode="0>11|3|0" />
        <tensionBelt startNode="0>11|4" endNode="0>11|4|0" />
        <tensionBelt startNode="0>11|5" endNode="0>11|5|0" />
        <tensionBelt startNode="0>11|6" endNode="0>11|6|0" />

    </tensionBelts>

  
    <allowFillFromAir value="false"/>
    <allowTipDischarge value="false"/>
    <foldingParts posDirectionText="functionUnfold" negDirectionText="functionFold">
        <foldingPart animationName="folding" speedScale="1"/>
    </foldingParts>

    
    <animations>
        <!-- move support arm down/up -->
        <animation name="moveSupport">
            <part node="0>7" startTime="0" endTime="1" startTrans="0 0.508 0" endTrans="0 0 0"/>
        </animation>
        <animation name="folding">
            <part node="0>9|1" startTime="0" endTime="0.5" startTrans="-0.899 0.448 -3.766" endTrans="-0.899 0.571 -3.766" startRot="0 0 0" endRot="0 0 0"/>
            <part node="0>9|1" startTime="0.5" endTime="1" startTrans="-0.899 0.571 -3.766" endTrans="-1.963 0.571 -3.766" startRot="0 0 0" endRot="0 0 0"/>
            <part node="0>9|1" startTime="1" endTime="3" startTrans="-1.963 0.571 -3.766" endTrans="-1.963 0.571 6.256" startRot="0 0 0" endRot="0 0 0"/>
            <part node="0>9|1" startTime="3" endTime="3.5" startTrans="-1.963 0.571 6.256" endTrans="-1 0.93 6.2" startRot="0 0 0" endRot="13 0 0"/>

            <part node="0>9|0" startTime="0" endTime="0.5" startTrans="0.899 0.448 -3.766" endTrans="0.899 0.571 -3.766" startRot="0 0 0" endRot="0 0 0"/>
            <part node="0>9|0" startTime="0.5" endTime="1" startTrans="0.899 0.571 -3.766" endTrans="1.963 0.571 -3.766" startRot="0 0 0" endRot="0 0 0"/>
            <part node="0>9|0" startTime="1" endTime="3" startTrans="1.963 0.571 -3.766" endTrans="1.963 0.571 6.256" startRot="0 0 0" endRot="0 0 0"/>
            <part node="0>9|0" startTime="3" endTime="3.5" startTrans="1.963 0.571 6.256" endTrans="1 0.93 6.2" startRot="0 0 0" endRot="13 0 0"/>
            
            
            <part node="0>9|0|0|1" startTime="3.5" endTime="3.6" startTrans="0 10000 0" endTrans="0.004 -1.147 3.769"/>
            <part node="0>9|1|0|1" startTime="3.5" endTime="3.6" startTrans="0 10000 0" endTrans="0.004 -1.147 3.769"/>
            
        </animation>
        
        <animation name="MoveTriggerUp">
            <part node="0>19" startTime="0" endTime="0.001" startTrans="0 -30 0" endTrans="0 0 0" />
        </animation>
        <animation name="MoveTriggerDn">
            <part node="0>19" startTime="0" endTime="0.001" startTrans="0 0 0" endTrans="0 -30 0" />
        </animation>
        
        <animation name="MoveTriggerUp">
            <part node="0>18" startTime="0" endTime="0.001" startTrans="0 -30 0" endTrans="0 0 0" />
        </animation>
        <animation name="MoveTriggerDn">
            <part node="0>18" startTime="0" endTime="0.001" startTrans="0 0 0" endTrans="0 -30 0" />
        </animation>
    </animations>
    <support animationName="moveSupport"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
    
    <moveTriggerUp animationName="MoveTriggerUp" />
    <moveTriggerDn animationName="MoveTriggerDn" />
    
    <components count="1">
        <component1 centerOfMass="0 0.5 0" solverIterationCount="10"/>
    </components>
    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

    <objectAttache castPoint1="0>20|0" castPoint2="0>20|1" attacherNode="0>" highOffset="4"/>
    <objectAttache castPoint1="0>21|0" castPoint2="0>21|1" attacherNode="0>" highOffset="4"/>
    
    <components count="2">
        <component1 centerOfMass="0 1 0" solverIterationCount="15"/>
        <component2 solverIterationCount="4"/>
        <joint component1="0" component2="1" index="0>0|0|1" rotLimit="0 0 0" transLimit="0 0 0"/>
    </components>
    
    <components count="2">
        <component1 centerOfMass="0 0 -3.5" solverIterationCount="20"/>
        <component2 centerOfMass="0 1.42896 -4" solverIterationCount="20"/>
        <joint component1="0" component2="1" index="0>0|0|1" rotLimit="0 0 0" transLimit="0 0 0"/>
    </components>
    
        <balesJoint index="0>19|0" rounds="0>19|1" center="0>19|2" wool="0>19|7" ultima="0>19|8" ultima4="0>19|9" hdbales="0>19|10" varBodyIndex="0" search="0>18" search2="0>18|0" />
    <hayBales>
        <bale index="0>19|0|0" />
        <bale index="0>19|0|1" />
        <bale index="0>19|0|2" />
        <bale index="0>19|0|3" />
        <bale index="0>19|0|4" />
        <bale index="0>19|0|5" />
        <bale index="0>19|0|6" />
        <bale index="0>19|0|7" />
        <bale index="0>19|0|8" />
        <bale index="0>19|0|9" />
        <bale index="0>19|0|10" />
        <bale index="0>19|0|11" />
        <bale index="0>19|0|12" />
        <bale index="0>19|0|13" />
        <bale index="0>19|0|14" />
        <bale index="0>19|0|15" />
        <bale index="0>19|0|16" />
        <bale index="0>19|0|17" />
        <bale index="0>19|0|18" />
        <bale index="0>19|0|19" />
        <bale index="0>19|0|20" />
        <bale index="0>19|0|21" />
        <bale index="0>19|0|22" />
        <bale index="0>19|0|23" />
        <bale index="0>19|0|24" />
        <bale index="0>19|0|25" />
        <bale index="0>19|0|26" />
        <bale index="0>19|0|27" />
        <bale index="0>19|0|28" />
        <bale index="0>19|0|29" />
        <bale index="0>19|0|30" />
        <bale index="0>19|0|31" />
        <bale index="0>19|0|32" />
    </hayBales>
    <hayRounds>
        <bale index="0>19|1|0" />
        <bale index="0>19|1|1" />
        <bale index="0>19|1|2" />
        <bale index="0>19|1|3" />
        <bale index="0>19|1|4" />
        <bale index="0>19|1|5" />
        <bale index="0>19|1|6" />
        <bale index="0>19|1|7" />
        <bale index="0>19|1|8" />
        <bale index="0>19|1|9" />
        <bale index="0>19|1|10" />
        <bale index="0>19|1|11" />
        <bale index="0>19|1|12" />
        <bale index="0>19|1|13" />
        <bale index="0>19|1|14" />
        <bale index="0>19|1|15" />
        <bale index="0>19|1|16" />
        <bale index="0>19|1|17" />
        <bale index="0>19|1|18" />
        <bale index="0>19|1|19" />
        <bale index="0>19|1|20" />
        <bale index="0>19|1|21" />
        <bale index="0>19|1|22" />
        <bale index="0>19|1|23" />
        <bale index="0>19|1|24" />
        <bale index="0>19|1|25" />
        <bale index="0>19|1|26" />
        <bale index="0>19|1|27" />
        <bale index="0>19|1|28" />
        <bale index="0>19|1|29" />
        <bale index="0>19|1|30" />
        <bale index="0>19|1|31" />
        <bale index="0>19|1|32" />
        <bale index="0>19|1|33" />
        <bale index="0>19|1|34" />
        <bale index="0>19|1|35" />
        <bale index="0>19|1|36" />
        <bale index="0>19|1|37" />
        <bale index="0>19|1|38" />
        <bale index="0>19|1|39" />
    </hayRounds>
    <wool>
        <place index="0>19|7|0" />
        <place index="0>19|7|1" />
        <place index="0>19|7|2" />
        <place index="0>19|7|3" />
        <place index="0>19|7|4" />
        <place index="0>19|7|5" />
        <place index="0>19|7|6" />
        <place index="0>19|7|7" />
        <place index="0>19|7|8" />
        <place index="0>19|7|9" />
        <place index="0>19|7|10" />
        <place index="0>19|7|11" />
        <place index="0>19|7|12" />
        <place index="0>19|7|13" />
        <place index="0>19|7|14" />
        <place index="0>19|7|15" />
    </wool>
    <ultima></ultima>
    <ultima4></ultima4>
    <hdbales></hdbales>
    
    <marker index="0>19|3" left="0>19|4" right="0>19|5" back="0>19|6"/>
    
</vehicle>

 

Moddesc 

Spoiler

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="35">
    <author>Desperados93</author>
    <version>1.1.0.2</version>
    <iconFilename>icon_tieflader.dds</iconFilename>
    <storeItems>
        <storeItem rootNode="vehicle" xmlFilename="tieflader.xml"/>
    </storeItems>
    <multiplayer supported="true" />
    <title>
        <de>Flachbett Tieflader</de>
        <en>Flatbed Low Loader</en>
        <fr>Surbaissée à Plat</fr>
        <pl>Platforma Niskopodwoziowa</pl>
    </title>
    <description>
        <de><![CDATA[Das ist ein Flachbett Tieflader. Mit diesem kann man Fahrzeuge und Ballen transportieren
Preis: 11.500,- €
Länge: 15 m
Wartungskosten: 10,- € / Tag

Changelog:
-Ballen werden nun korrekt festgehalten
-lightmap angepasst
]]>
        </de>
        <en><![CDATA[This is a flatbed low loader. With this you can transport vehicles and bales.
Price: 11.500,- €
Length: 15 m
Maintenance: 10,- € / day

Changelog:
-Bales are now properly held
-fix lightmap]]>
        </en>
        <fr><![CDATA[Ceci est une remorque à plate-forme. Avec celui-ci peut transporter des véhicules et des balles
Price: 11.500,- €
Length: 15 m
Maintenance: 10,- € / day

Changelog:
-Bales sont maintenant tenus correctement
-fix lightmap]]>
        </fr>
        <pl><![CDATA[Jest to przyczepa Platforma. Z tym jednym może transportować pojazdy i bele.
Price: 11.500,- €
Length: 15 m
Maintenance: 10,- € / day

Changelog:
Bele są obecnie odbywają się prawidłowo
-fix lightmap]]>
        </pl>
    </description>

    <extraSourceFiles>
        <sourceFile filename="scripts/MPEvent.lua"/>
        <sourceFile filename="scripts/WorkStateEvent.lua" />
    </extraSourceFiles>
    
    <specializations>
        <specialization name="universalAutoLoad" className="UAL" filename="scripts/UAL.lua"/>
        <specialization name="objectAttacher" className="objectAttacher" filename="scripts/objectattacher.lua"/>
    </specializations>

    <vehicleTypes>
        <type name="transportTrailerUAL" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
            <specialization name="attacherJoints" />
            <specialization name="lights" />
            <specialization name="attachable" />
            <specialization name="animatedVehicle" />
            <specialization name="cylindered" />
            <specialization name="foldable" />
            <specialization name="tensionBelts" />
            <specialization name="washable" />
            <specialization name="mountable" />
            <specialization name="universalAutoLoad" />
            <specialization name="objectAttacher" />
            <specialization name="dynamicMountAttacher" />
        </type>
    </vehicleTypes>    
    
    <l10n>
        <text name="functionFold">
            <en>Remove the ramps</en>
            <de>Rampen abbauen</de>
            <fr>Retirer les rampes</fr>
            <pl>Usuń rampy</pl>
        </text>
        <text name="functionUnfold">
            <en>Install the ramps</en>
            <de>Rampen anbauen</de>
            <fr>l'installation de rampes</fr>
            <pl>zainstalowanie rampy</pl>
        </text>
        
        <text name="Unlock"><de>Entsperren</de><en>Unlock</en> <fr>Déverrouiller chargement</fr></text>    
        <text name="Lock"><de>Sperren</de><en>Lock</en> <fr>Verrouiller chargement</fr></text>
            
        <text name="WORKMODE_on">
            <en>Work position</en>
            <de>Arbeitsmodus anschalten</de>
        </text>
        <text name="WORKMODE_off">
            <en>Work position</en>
            <de>Arbeitsmodus ausschalten</de>
        </text>
        <text name="UNLOAD">
            <en>unload</en>
            <de>Abladen</de>
        </text>
        <text name="UNLOAD_C">
            <en>unload center</en>
            <de>Abladeseite [akt. Auflieger]</de>
        </text>
        <text name="UNLOAD_L">
            <en>unload center</en>
            <de>Abladeseite [akt. Links]</de>
        </text>
        <text name="UNLOAD_R">
            <en>unload center</en>
            <de>Abladeseite [akt. Rechts]</de>
        </text>
        <text name="UNLOAD_B">
            <en>unload center</en>
            <de>Abladeseite [akt. Hinten]</de>
        </text>
        <text name="squarebales">
            <en>squarebales</en>
            <de>Ladegut wählen [akt. Quaderballen]</de>
        </text>
        <text name="roundbales">
            <en>roundbales</en>
            <de>Ladegut wählen [akt. Rundballen]</de>
        </text>
        <text name="woolpallet">
            <en>pallets</en>
            <de>Ladegut wählen [akt. WollPaletten]</de>
        </text>
        <text name="ultima4">
            <en>Zero></en>
            <de>Zero></de>
        </text>
        <text name="ultima">
            <en>Zero>></en>
            <de>Zero>></de>
        </text>
        <text name="hdbales">
            <en>Zero>>></en>
            <de>Zero>>></de>
        </text>
    </l10n>

</modDesc>
 

 

hopelijk kan iemand mij hierbij helpen

 

mvg

Link naar opmerking
Deel via andere websites

  • Master Moderator
4 uur geleden zei zwapbede:

hallo,

 

ik probeer een UAL van een bijna identieke trailer over te zetten op een andere, maar dat lukt niet helemaal.

ik krijg geen errors ingame.

 

wat heb ik gedaan:

LUA's overgezet (script)

 

 

  Toon verborgen inhoud
  Toon verborgen inhoud

mvg

 

wedden dat je geen lua's overgezet hebt , maar een enkele en de Mpevent vergeten bent ? ;)

 

function UAL:MPCode(mode, bool, state, dif, olddif, noEventSend)
    MPEvent.sendEvent(self, mode, bool, state, dif, olddif, noEventSend);
    if mode == 21 then    

geen MPEvent script, geen workie work ;)

Link naar opmerking
Deel via andere websites

38 minuten geleden zei fa285634:

 

wedden dat je geen lua's overgezet hebt , maar een enkele en de Mpevent vergeten bent ? ;)

 


function UAL:MPCode(mode, bool, state, dif, olddif, noEventSend)
    MPEvent.sendEvent(self, mode, bool, state, dif, olddif, noEventSend);
    if mode == 21 then    

geen MPEvent script, geen workie work ;)

 

ik heb 4 lua's overgezet namelijk:

MPevent

Objectettacher

UAL

WorkStateEvent 

 

het kan zijn dat ik een stukje script ben vergeten of over het heeft heb gezien in de XML of moddesc 

Link naar opmerking
Deel via andere websites

Gearchiveerd

Dit topic is nu gearchiveerd en gesloten voor verdere reacties.

×
×
  • Maak Nieuw...

Belangrijke Informatie

By using this site, you agree to our Gebruiksvoorwaarden.