Animated Objects

Eure Foren für alle Diskussionen rund ums Thema Modding.
michaelny
Posts: 54
Joined: Mon Oct 20, 2014 9:50 am

Re: Animated Objects

Post by michaelny »

also in die animatedObjects.xml der Map habe ich es wie unten folgt eingefuegt ..... ergebnis ?! NICHTS

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<animatedObjects>
<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

<!-- LIGHT SWITCH -->
<!-- index must match given i3d attribute -->
<animatedObject index="lightSwitch">
<!-- if only posyKey is given animated has a toggle state behavior -->
<controls posKey="LIGHTSWITCH_CLICK" triggerNode="0" posText="input_LIGHTSWITCH_CLICK" negText="input_LIGHTSWITCH_CLICK" />
<sound file="$data/sounds/blinker.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
<animation initialTime="0" duration="0.01"> <!-- duration -> total time of animation in seconds -->
<part node="1">
<!-- time must be in range between 0 and 1 -->
<keyFrame time="0.00" visibility="false" />
<keyFrame time="1" visibility="true" />
</part>
</animation>
</animatedObject>

<animatedObjects>

<!-- DOORS -->
<animatedObject index="doorRight">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" />
<!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> -->
<animation initialTime="0" duration="4">
<part node="1"> <!-- node -> child index -->
<keyFrame time="0.05" translation="0 0 0" /> <!-- translation, rotation, scale, visibility -->
<keyFrame time="1.00" translation="5 0 0" />
</part>

<animatedObject index="doorRightSmall">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" />
<!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> -->
<animation initialTime="0" duration="4">
<part node="1"> <!-- node -> child index -->
<keyFrame time="0.05" translation="0 0 0" /> <!-- translation, rotation, scale, visibility -->
<keyFrame time="1.00" translation="5 0 0" />
</part>
</animation>
</animatedObject>


<animatedObject index="oneDoorRight">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" />
<!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> -->
<animation initialTime="0" duration="4">
<part node="1"> <!-- node -> child index -->
<keyFrame time="0.05" translation="0 0 0" /> <!-- translation, rotation, scale, visibility -->
<keyFrame time="1.00" translation="5 0 0" />
</part>
</animation>
</animatedObject>

<animatedObject index="doorLeft">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" />
<!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> -->
<animation initialTime="0" duration="4">
<part node="1">
<keyFrame time="0.00" translation="0 0 0" />
<keyFrame time="0.95" translation="-5 0 0" />
</part>

<animatedObject index="doorLeftSmall">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" />
<!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> -->
<animation initialTime="0" duration="4">
<part node="1">
<keyFrame time="0.00" translation="0 0 0" />
<keyFrame time="0.95" translation="-5 0 0" />
</part>
</animation>
</animatedObject>


<animatedObject index="oneDoorLeft">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" />
<!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> -->
<animation initialTime="0" duration="4">
<part node="1">
<keyFrame time="0.00" translation="0 0 0" />
<keyFrame time="0.95" translation="-5 0 0" />
</part>
</animation>
</animatedObject>


<animatedObject index="doorBothMedium">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" />
<!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> -->
<animation initialTime="0" duration="4">
<part node="1">
<keyFrame time="0.00" translation="0 0 0" />
<keyFrame time="0.95" translation="-5 0 0" />
</part>
<!-- you can add an unlimited number of parts here -->
</animation>
</animatedObject>

</animatedObjects>




<!-- Rolltor 1 -->
<animatedObject index="BergehalleRolltor1">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ROLLDOOR" />
<sound file="maps/sounds/OpenDoorSound.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
<animation initialTime="0" duration="4">
<part node="1"> <!--index of left door node-->
<keyFrame time="0" translation="0 0 0" />
<keyFrame time="0.75" translation="-4.5 0 0" />
<keyFrame time="1.00" translation="-4.5 0 0" />
</part>
<part node="2"> <!--index of right door node-->
<keyFrame time="0" translation="0 0 0" />
<keyFrame time="0.25" translation="0 0 0" />
<keyFrame time="1.00" translation="-4.5 0 0" />
</part>
</animation>
</animatedObject>
<!-- Rolltor 2 -->
<animatedObject index="BergehalleRolltor2">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ROLLDOOR" />
<sound file="maps/sounds/OpenDoorSound.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
<animation initialTime="0" duration="4">
<part node="1"> <!--index of left door node-->
<keyFrame time="0" translation="0 0 0" />
<keyFrame time="0.25" translation="0 0 0" />
<keyFrame time="1.00" translation="-4.5 0 0" />
</part>
<part node="2"> <!--index of right door node-->
<keyFrame time="0" translation="0 0 0" />
<keyFrame time="0.75" translation="-4.5 0 0" />
<keyFrame time="1.00" translation="-4.5 0 0" />
</part>
</animation>
</animatedObject>
<!-- Rolltor 3 -->
<animatedObject index="BergehalleRolltor3">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ROLLDOOR" />
<sound file="maps/sounds/OpenDoorSound.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
<animation initialTime="0" duration="4">
<part node="1"> <!--index of left door node-->
<keyFrame time="0" translation="0 0 0" />
<keyFrame time="0.25" translation="0 0 0" />
<keyFrame time="1.00" translation="0 0 2.25" />
</part>
<part node="2"> <!--index of right door node-->
<keyFrame time="0" translation="0 0 0" />
<keyFrame time="0.75" translation="0 0 -2.25" />
<keyFrame time="1.00" translation="0 0 -2.25" />
</part>
</animation>
</animatedObject>
<!-- Rolltor 4 -->
<animatedObject index="BergehalleRolltor4">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ROLLDOOR" />
<sound file="maps/sounds/OpenDoorSound.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
<animation initialTime="0" duration="4">
<part node="1"> <!--index of left door node-->
<keyFrame time="0" translation="0 0 0" />
<keyFrame time="0.25" translation="0 0 0" />
<keyFrame time="1.00" translation="0 0 2.25" />
</part>
<part node="2"> <!--index of right door node-->
<keyFrame time="0" translation="0 0 0" />
<keyFrame time="0.75" translation="0 0 -2.25" />
<keyFrame time="1.00" translation="0 0 -2.25" />
</part>
</animation>
</animatedObject>
<!-- Licht-->
<animatedObject index="BergehalleLichtIndoor1">
<controls posKey="LIGHTSWITCH_CLICK" triggerNode="0" posText="input_LIGHTSWITCH_CLICK" negText="input_LIGHTSWITCH_CLICK" />
<sound file="maps/sounds/switch01_0.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
<animation initialTime="0" duration="0.25">
<part node="1|0"> <!--index of Lever of the Lightswitch-->
<keyFrame time="0.00" rotation="0 0 0" />
<keyFrame time="1" rotation="90 0 0" />
</part>
<part node="2|0"> <!--index of TG with realLights and emmisive shape-->
<keyFrame time="0.5" visibility="false" />
<keyFrame time="0.55" visibility="true" />
</part>
<part node="3|0"> <!--index of Lever of the Lightswitch-->
<keyFrame time="0.00" rotation="0 0 0" />
<keyFrame time="1" rotation="90 0 0" />
</part>
</animation>
</animatedObject>



<animatedObject index="slidingDoor">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ELECTRICROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ELECTRICROLLDOOR" />
<animation initialTime="0" duration="6">
<part node="1">
<keyFrame time="0.00" translation="0 0 0" />
<keyFrame time="0.5" translation="0 0 -4.8" />
</part>
</animation>
</animatedObject>

<animatedObject index="slidingDoor1">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ELECTRICROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ELECTRICROLLDOOR" />
<animation initialTime="0" duration="6">
<part node="1">
<keyFrame time="0.00" translation="0 0 0" />
<keyFrame time="0.5" translation="0 0 4.8" />
</part>
</animation>
</animatedObject>

<animatedObject index="slidingDoor2">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ELECTRICROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ELECTRICROLLDOOR" />
<animation initialTime="0" duration="6">
<part node="1">
<keyFrame time="0.00" translation="0 0 0" />
<keyFrame time="0.5" translation="0 0 -6" />
</part>
</animation>
</animatedObject>

<animatedObject index="slidingDoor3">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ELECTRICROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ELECTRICROLLDOOR" />
<animation initialTime="0" duration="6">
<part node="1">
<keyFrame time="0.00" translation="0 0 0" />
<keyFrame time="0.5" translation="0 0 6" />
</part>
</animation>
</animatedObject>



</animatedObjects>
User avatar
HeinzS
Posts: 11728
Joined: Mon May 16, 2011 5:19 pm

Re: Animated Objects

Post by HeinzS »

dieser Eintrag: </animatedObjects>
muss unter dem letzten Eintrag stehen
und beachte dieses: viewtopic.php?f=885&t=118808&p=929417#p929417
User avatar
Yeti_222
Posts: 645
Joined: Thu Apr 30, 2009 8:39 pm
Location: Bayern/Oberpfalz

Re: Animated Objects

Post by Yeti_222 »

Hast du in der modDesc diese Einträge mit drin?

<text name="input_ANIMATED_OBJECT_OPEN_ELECTRICROLLDOOR">
<en>Open door</en>
<de>Tor öffnen</de>
</text>
<text name="input_ANIMATED_OBJECT_CLOSE_ELECTRICROLLDOOR">
<en>Close door</en>
<de>Tor schließen</de>
</text>
Mein System:
Win 10 Prof 64bit
Prozessor AMD Ryzen 5 5600 6x 3,5 GHz
Board MSI X570-A PRO
Grafik Asus GTX 3070 8 GB DDR 6 256 bit
Speicher 32 GB DDR 4 3200 MHz
michaelny
Posts: 54
Joined: Mon Oct 20, 2014 9:50 am

Re: Animated Objects

Post by michaelny »

@ YETI .... nein dann muss ich das wohl einfuegen wenn ich wieder zuhause bin.

@ HeinzS ...... steht doch ganz unten drunter.

den hinweis auf den anderen beitrag verstehe ich gerade nicht - stehe voll auf der leitung
User avatar
HeinzS
Posts: 11728
Joined: Mon May 16, 2011 5:19 pm

Re: Animated Objects

Post by HeinzS »

in xml Dateien muss eine bestimmte Form eingehalten werden und nach dem ersten </animatedObjects> liest der LS nicht mehr weiter und das sollte auch in der Log vermerkt sein.
Und bitte alles genau lesen, einschließlich Links: viewtopic.php?p=931722#p931722
michaelny
Posts: 54
Joined: Mon Oct 20, 2014 9:50 am

Re: Animated Objects

Post by michaelny »

@ YETI @ Heinz .....

Kein Plan wo ich etwas nicht raffe aber ich sage an dieser Stelle Danke fuer eure Hilfe aber ich gebe hier auf . dann bleiben die tore ben dauerhaft offen.

Trotzdem vielen lieben Dank
Post Reply