Um alle Funktionen des Forums nutzen zu können, sollten Sie sich registrieren. Wenn Sie schon regstriert sind, sollten Sie sich anmelden.

Animated Object (platzierbar)

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Animated Object (platzierbar)

    Hallo ich habe mich mal eine platzierbare BMA ran gesetzt doch leider will das mit den animated object nicht funktionieren.
    Habe leider Idee woran das liegen könnte vllt hat einer von euch ja eine Idee.


    MODDESC:

    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <modDesc descVersion="32">
    <author>Fabian LundF Gamers</author>
    <version>1.0</version>
    <title>
    <de>BMA</de>
    <en>BMA</en>
    </title>
    <description>
    <de>BMA</de>
    <en>BMA</en>
    </description>
    <iconFilename>
    <en>store.dds</en>
    <de>store.dds</de>
    </iconFilename>
    <multiplayer supported="true"/>
    <inputBindings>
    <input name="BMA_CLICK" category="ONFOOT" key1="" key2="" device="0" button="BUTTON_3" mouse="MOUSE_BUTTON_LEFT" />
    </inputBindings>
    <l10n>
    <text name="input_BMA_CLICK"> <en>BMA AN/AUS</en> <de>BMA AN/AUS</de> </text>
    </l10n>
    <storeItems>
    <storeItem xmlFilename="BMA.xml" rootNode="placeable"/>
    </storeItems>
    <brands>
    <brand name="LIZARD" title="BMA" image="brand.dds"/>
    </brands>
    </modDesc>




    XML:

    <?xml version="1.0" encoding="utf-8" standalone="no" ?>
    <placeable>
    <storeData>
    <name>
    <en>BMA</en>
    <en>BMA</en>
    </name>
    <specs>
    </specs>
    <image>store.dds</image>
    <price>1500</price>
    <dailyUpkeep>0</dailyUpkeep>
    <functions>
    </functions>
    <lifetime>10000</lifetime>
    <rotation>0</rotation>
    <brand>LIZARD</brand>
    <species>placeable</species>
    <category>placeables</category>
    <vertexBufferMemoryUsage>108304</vertexBufferMemoryUsage>
    <indexBufferMemoryUsage>15528</indexBufferMemoryUsage>
    <textureMemoryUsage>8388712</textureMemoryUsage>
    <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
    <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <placeableType>animatedObjectPlaceable</placeableType>
    <filename>BMA/BMA.i3d</filename>
    <placement testSizeX="7" testSizeZ="7" sizeX="2" sizeZ="2" useRandomYRotation="false" useManualYRotation="false"/>
    <tipOcclusionUpdateArea sizeX="3" sizeZ="3"/>
    <animatedObjects>
    <animatedObject index="0" />
    </animatedObjects>
    </placeable>




    AnimatedObject XML:

    <?xml version="1.0" encoding="utf-8" standalone="no" ?>
    <animatedObjects>
    <annotation>Fabian LundF Gamers</annotation>
    <animatedObject index="SketchUp1">
    <controls posKey="BMA_CLICK" triggerNode="0|1" posText="input_BMA_CLICK" negText="input_BMA_CLICK" />
    <sound file="BMA/sounds/Tirol.wav" pitchOffset="1.00" volume="2.00" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
    <animation initialTime="0" duration="210">
    <part node="0|0|0"> <!--index of Lever of the Lightswitch-->
    <keyFrame time="0.00" rotation="0 0 0" />
    <keyFrame time="1.00" rotation="-90 0 0" />
    </part>
    <part node="0|2|0"> <!--index of TG with realLights and emmisive shape-->
    <keyFrame time="0.5" visibility="false" />
    <keyFrame time="0.55" visibility="true" />
    </part>
    </animation>
    </animatedObject>
    </animatedObjects>




    i3d:

    <?xml version="1.0" encoding="iso-8859-1"?>

    <i3D name="BMA" version="1.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://i3d.giants.ch/schema/i3d-1.6.xsd">
    <Asset>
    <Export program="GIANTS Editor 64bit" version="7.0.5"/>
    </Asset>

    <Files>
    <File fileId="11" filename="BMA/Texturen/Glas.dds" relativePath="true"/>
    <File fileId="6" filename="BMA/Texturen/Rot.dds" relativePath="true"/>
    <File fileId="19" filename="sounds/flagFluttering.wav" relativePath="true"/>
    </Files>


    <Materials>
    <Material name="Color_M09" materialId="8" diffuseColor="0 0 0 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="__auto_5" materialId="20" diffuseColor="0.227451 0.227451 0.227451 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Color_F05" materialId="9" diffuseColor="0.286275 0.576471 0 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Color_M00" materialId="10" diffuseColor="1 1 1 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Color_M03" materialId="17" diffuseColor="0.666667 0.666667 0.666667 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="__auto_1" materialId="22" diffuseColor="1 0 0 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Translucent_Glass_Dark_Green" materialId="23" ambientColor="0.2 0.2 0.2">
    <Texture fileId="11"/>
    </Material>
    <Material name="Color_A08" materialId="21" diffuseColor="0.4 0 0 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Color_A07" materialId="12" ambientColor="0.2 0.2 0.2">
    <Texture fileId="6"/>
    </Material>
    <Material name="Color_M02" materialId="13" diffuseColor="0.776471 0.776471 0.776471 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Color_E01" materialId="7" diffuseColor="1 1 0.8 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="__auto_2" materialId="15" diffuseColor="0.447059 0.447059 0.447059 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Color_B05" materialId="6" diffuseColor="1 0.247059 0 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Translucent_Glass_Gray" materialId="11" diffuseColor="0.454902 0.431373 0.501961 0.501961" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Color_M08" materialId="16" diffuseColor="0.294118 0.294118 0.294118 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="__Color_G08_1" materialId="14" diffuseColor="0 0.258824 0 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="Color_M06" materialId="19" diffuseColor="0.337255 0.337255 0.337255 1" ambientColor="0.2 0.2 0.2">
    </Material>
    <Material name="__auto_4" materialId="18" diffuseColor="1 0.192157 0.192157 1" ambientColor="0.2 0.2 0.2">
    </Material>
    </Materials>


    <Shapes externalShapesFile="BMA.i3d.shapes">
    </Shapes>


    <Dynamics>
    </Dynamics>

    <Scene>
    <Shape shapeId="1" name="SketchUp1" translation="-2 0.692193 1.35892" scale="0.9 0.9 0.9" static="true" nodeId="26" materialIds="9,8,6,21,16,12,10,13,15,10,14,23,11,7,22,10,18,23,20,17,19" castsShadows="true" receiveShadows="true">
    <TransformGroup name="BMA" translation="2 1.29933 0.846569" rotation="180 0 180" clipDistance="100" nodeId="27">
    <TransformGroup name="playerTrigger" translation="0 0 0.0961791" static="true" trigger="true" nodeId="28"/>
    <TransformGroup name="lightswitch02" translation="0.0296672 -0.137201 0.847353" rotation="-180 87.9948 -180" static="true" collision="false" clipDistance="75" nodeId="29">
    <TransformGroup name="lever02" translation="0.0811536 0 0.003" kinematic="true" collision="false" nodeId="30"/>
    <TransformGroup name="decals02" translation="0.0656581 0.0418327 0.0489719" rotation="0 -0 -90" static="true" collision="false" nodeId="31"/>
    </TransformGroup>
    <TransformGroup name="Neonroehre" translation="2.65788 2.47151 0.725101" rotation="90 0 90" visibility="false" clipDistance="75" nodeId="32">
    <TransformGroup name="light" nodeId="33">
    <TransformGroup name="emissive" nodeId="34"/>
    <Light name="spotLight" translation="0 -0.0885499 0" rotation="-90 0 0" nodeId="35" type="point" color="1 1 0.85" emitDiffuse="true" emitSpecular="true" decayRate="4" range="12"/>
    </TransformGroup>
    <TransformGroup name="Kabel01" translation="0 1.1 0.713" scale="1 0.5 1" clipDistance="75" nodeId="36"/>
    <TransformGroup name="Kabel02" translation="0 1.1 -0.698713" scale="1 0.5 1" clipDistance="75" nodeId="37"/>
    </TransformGroup>
    </TransformGroup>
    <AudioSource name="audio" translation="2 0 0" nodeId="38" fileId="19" range="100" innerRange="30" volume="0.5" loops="0"/>
    </Shape>
    <Camera name="persp" translation="3.58577 4.72943 8.04612" rotation="-20.4773 27.5821 -1.9566e-07" visibility="false" nodeId="40" fov="60" nearClip="0.1" farClip="1000" orthographicHeight="1"/>
    </Scene>

    <UserAttributes>
    <UserAttribute nodeId="27">
    <Attribute name="index" type="string" value="SketchUp1"/>
    <Attribute name="onCreate" type="scriptCallback" value="AnimatedObject.onCreate"/>
    <Attribute name="xmlFilename" type="string" value="animatedObjects.xml"/>
    </UserAttribute>
    </UserAttributes>

    </i3D>




    3D Ausbau ist für mich ein muss :thumbsup:
  • So nachdem ich die BMA kaufe taucht das hier in der LOG auf:

    C:/Users/fabi/Documents/My Games/FarmingSimulator2017/mods/BMA/BMA/BMA.i3d (14.14) ms
    Warning (compatibility): Texture C:/Users/fabi/Documents/My Games/FarmingSimulator2017/mods/BMA/BMA/BMA/Texturen/Glas.dds width or height doesn't equal 2^n.
    Warning (compatibility): Texture C:/Users/fabi/Documents/My Games/FarmingSimulator2017/mods/BMA/BMA/BMA/Texturen/Rot.dds width or height doesn't equal 2^n.
    Error: index out of range
    LUA call stack:
    dataS/scripts/utils/Utils.lua (11) : printCallstack
    dataS/scripts/utils/Utils.lua (56) : checkChildIndex
    dataS/scripts/objects/AnimatedObject.lua (129) : indexToObject
    dataS/scripts/placeables/AnimatedObjectPlaceable.lua (94) : load
    dataS/scripts/gui/PlacementScreen.lua (507) : finalizePlacement
    dataS/scripts/gui/PlacementScreen.lua (473) : loadPlaceable
    dataS/scripts/shop/BuyPlaceableEvent.lua (66) : loadPlaceableFromXML
    dataS/scripts/network/Connection.lua (77) : run
    dataS/scripts/gui/PlacementScreen.lua (590) : sendEvent
    dataS/scripts/gui/PlacementScreen.lua (199) : buyPlaceable
    dataS/scripts/gui/elements/Gui.lua (274) : mouseEvent
    dataS/scripts/main.lua (1854) : mouseEvent
    Index: 0|0|0
    Error: index out of range
    LUA call stack:
    dataS/scripts/utils/Utils.lua (11) : printCallstack
    dataS/scripts/utils/Utils.lua (56) : checkChildIndex
    dataS/scripts/objects/AnimatedObject.lua (129) : indexToObject
    dataS/scripts/placeables/AnimatedObjectPlaceable.lua (94) : load
    dataS/scripts/gui/PlacementScreen.lua (507) : finalizePlacement
    dataS/scripts/gui/PlacementScreen.lua (473) : loadPlaceable
    dataS/scripts/shop/BuyPlaceableEvent.lua (66) : loadPlaceableFromXML
    dataS/scripts/network/Connection.lua (77) : run
    dataS/scripts/gui/PlacementScreen.lua (590) : sendEvent
    dataS/scripts/gui/PlacementScreen.lua (199) : buyPlaceable
    dataS/scripts/gui/elements/Gui.lua (274) : mouseEvent
    dataS/scripts/main.lua (1854) : mouseEvent
    Index: 0|2|0
    Error: index out of range
    LUA call stack:
    dataS/scripts/utils/Utils.lua (11) : printCallstack
    dataS/scripts/utils/Utils.lua (65) : checkChildIndex
    dataS/scripts/objects/AnimatedObject.lua (177) : indexToObject
    dataS/scripts/placeables/AnimatedObjectPlaceable.lua (94) : load
    dataS/scripts/gui/PlacementScreen.lua (507) : finalizePlacement
    dataS/scripts/gui/PlacementScreen.lua (473) : loadPlaceable
    dataS/scripts/shop/BuyPlaceableEvent.lua (66) : loadPlaceableFromXML
    dataS/scripts/network/Connection.lua (77) : run
    dataS/scripts/gui/PlacementScreen.lua (590) : sendEvent
    dataS/scripts/gui/PlacementScreen.lua (199) : buyPlaceable
    dataS/scripts/gui/elements/Gui.lua (274) : mouseEvent
    dataS/scripts/main.lua (1854) : mouseEvent
    Index: 0|1
    3D Ausbau ist für mich ein muss :thumbsup:
  • Ja hatte das alles schon überprüft aber es scheint mit dem eintrag in der animated object xml zusammen zuhängen:

    <?xml version="1.0" encoding="utf-8" standalone="no" ?>
    <animatedObjects>
    <annotation>Fabian LundF Gamers</annotation>
    <animatedObject index="SketchUp1">
    <controls posKey="BMA_CLICK" triggerNode="0|1" posText="input_BMA_CLICK" negText="input_BMA_CLICK" />
    <sound file="BMA/sounds/Tirol.wav" pitchOffset="1.00" volume="2.00" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
    <animation initialTime="0" duration="210">
    <part node="0|0|0"> <!--index of Lever of the Lightswitch-->
    <keyFrame time="0.00" rotation="0 0 0" />
    <keyFrame time="1.00" rotation="-90 0 0" />
    </part>
    <part node="0|2|0"> <!--index of TG with realLights and emmisive shape-->
    <keyFrame time="0.5" visibility="false" />
    <keyFrame time="0.55" visibility="true" />
    </part>
    </animation>
    </animatedObject>
    </animatedObjects>
    3D Ausbau ist für mich ein muss :thumbsup: