Ge and gates

Your forum for all discussions around Modding.
User avatar
ghosted
Posts: 390
Joined: Mon Oct 20, 2014 5:06 pm

Ge and gates

Post by ghosted »

can someone here help with this gate in GE. when I try to rotate it wont turn all way to wall. hope someone here can help me


Image


in the game the left half of gate is hidden part in wall

Image

same too in the game the right half of gate is hidden part in wall

Image
Eische
Posts: 3804
Joined: Thu Oct 18, 2018 5:17 pm

Re: Ge and gates

Post by Eische »

that is set in one of the maps xml files. I think it is the animatedObjects.xml
There should be entries for the gates similar to this:

Code: Select all

<animatedObject index="gate01">
        <controls posAction="ACTIVATE_HANDTOOL" triggerNode="0" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="maps/sounds/gate_loop.wav" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="maps/sounds/gate_opened.wav" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="maps/sounds/gate_closed.wav" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        <animation initialTime="0" duration="2">
            <part node="1"> <!-- node -> child index -->
                <keyFrame time="0" rotation="0 0 0" /> <!-- translation, rotation, scale, visibility -->
                <keyFrame time="1" rotation="0 92 0" />
            </part>
            <!-- you can add an unlimited number of parts here -->
        </animation>
    </animatedObject>
In that example, the gate would rotate by 92 degrees. In your case it looks more like 110 degrees.
Playing on PC - Win10
Ryzen 3600
RX 5500XT
16GB Ram
How to post log file
How to upload pictures
Please report bugs for FS22 using the bugtracker
User avatar
ghosted
Posts: 390
Joined: Mon Oct 20, 2014 5:06 pm

Re: Ge and gates

Post by ghosted »

Eische wrote: Wed Jul 29, 2020 10:55 am that is set in one of the maps xml files. I think it is the animatedObjects.xml
There should be entries for the gates similar to this:

Code: Select all

<animatedObject index="gate01">
        <controls posAction="ACTIVATE_HANDTOOL" triggerNode="0" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="maps/sounds/gate_loop.wav" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="maps/sounds/gate_opened.wav" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="maps/sounds/gate_closed.wav" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        <animation initialTime="0" duration="2">
            <part node="1"> <!-- node -> child index -->
                <keyFrame time="0" rotation="0 0 0" /> <!-- translation, rotation, scale, visibility -->
                <keyFrame time="1" rotation="0 92 0" />
            </part>
            <!-- you can add an unlimited number of parts here -->
        </animation>
    </animatedObject>
In that example, the gate would rotate by 92 degrees. In your case it looks more like 110 degrees.

ok thanks will check it out
Post Reply