FS19 Triggers and Covers

Your forum for all discussions around Modding.
User avatar
the.geremy
Posts: 30
Joined: Tue Nov 15, 2016 2:38 pm

FS19 Triggers and Covers

Post by the.geremy »

Hi,

I modified one mod to not just be a fillable silo, but buyable silo. It works fine, but recently I find out, that if you want to use that silo you need to open cover on seeder or trailer, that's ok, but some seeders like "Vaderstad Tempo L16", has open able cover only for fertilizer, so I am unable to load seeds from this silos.

I find out, that the seed pallet opens the covers automatically. Do somebody know hot to change my silo trigger to open cover automatically like the seed pallet does?

Seeds pallet original xml:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="pallet">
    <storeData>
        <name>            
            <en>Seed Bigbag</en>
        </name>
        <functions>
            <function>$l10n_function_bigBagSeeds</function>
        </functions>
        <specs>
            <capacity>1000</capacity>
            <fillTypes>seeds</fillTypes>
        </specs>
        <image>store_bigBagContainerSeeds.png</image>
        <price>900</price>
        <allowLeasing>false</allowLeasing>
        <canBeSold>false</canBeSold>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>bigbags</category>
        <vertexBufferMemoryUsage>166324</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>32232</indexBufferMemoryUsage>
        <textureMemoryUsage>5635952</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <filename>bigBagContainer.i3d</filename>
        <size width="2" length="2"/>
        <input allowed="false"/>
        <canBeReset>false</canBeReset>
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="150"/>
        </components>
    </base>
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits removeVehicleIfEmpty="true">
                    <fillUnit unit="$l10n_unit_literShort" fillTypes="seeds" capacity="1000" startFillType="seeds" startFillLevel="1000">
                        <fillRootNode index="0>"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="raycastNode" emptySpeed="100" fillUnitIndex="1" maxDistance="6" canStartDischargeAutomatically="true">
            <raycast useWorldNegYDirection="true"/>
            <info width="0.4" length="0.4"/>
            <activationTrigger node="dischargeActivationTrigger"/>
            <effects>
                <effectNode effectClass="PipeEffect" effectNode="pipeEffect" materialType="pipe" materialTypeId="1" delay="0" maxBending="1" positionUpdateNodes="smokeEffect"/>
                <effectNode effectNode="smokeEffect" materialType="smoke" materialTypeId="1" delay="0.1" alignToWorldY="true"/>
            </effects>
        </dischargeNode>
    </dischargeable>
    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="200"/>
    <designConfigurations>
        <designConfiguration name="$l10n_configuration_valueDefault" price="0">
            <material node="bigBagContainer_vis" refNode="seeds_mat"/>
        </designConfiguration>
    </designConfigurations>
    <dynamicMount triggerNode="dynamicMountTrigger"/>
    <tensionBeltObject>
        <meshNodes>
            <meshNode node="bigBagContainer_vis"/>
        </meshNodes>
    </tensionBeltObject>
    <i3dMappings>
        <i3dMapping id="dynamicMountTrigger" node="0>0"/>
        <i3dMapping id="raycastNode" node="0>1|0"/>
        <i3dMapping id="pipeEffect" node="0>1|1|0"/>
        <i3dMapping id="smokeEffect" node="0>1|1|1"/>
        <i3dMapping id="fillTrigger" node="0>1|2"/>
        <i3dMapping id="dischargeActivationTrigger" node="0>1|3"/>
        <i3dMapping id="bigBagContainer_vis" node="0>2|0"/>
        <i3dMapping id="seeds_mat" node="0>2|1"/>
        <i3dMapping id="pigFood_mat" node="0>2|2"/>
        <i3dMapping id="lime_mat" node="0>2|3"/>
        <i3dMapping id="horseFood_mat" node="0>2|4"/>
        <i3dMapping id="chickenFood_mat" node="0>2|5"/>
    </i3dMappings>
</vehicle>
Silo xml code:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable>
    <storeData>
        <name>  
		  <en>Seed Station</en>
		  <de>Saat Station</de>
          <cz>Stanice se semeny.</cz>          
        </name>
        <image>store_seeds.png</image>
        <functions>
            <function>$l10n_function_sStation</function>
        </functions>
        <specs>
            <fillTypes>seeds</fillTypes>
        </specs>
        <price>5000</price>        
        <dailyUpkeep>5</dailyUpkeep>
        <allowLeasing>false</allowLeasing>        
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <species>placeable</species>
        <category>placeableMisc</category>
        <vertexBufferMemoryUsage>48896</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>8640</indexBufferMemoryUsage>
        <textureMemoryUsage>2097256</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <placeableType>buyingStation</placeableType>
    <filename>waterTank_seeds.i3d</filename>
    <placement testSizeX="4" testSizeZ="4" sizeX="3" sizeZ="3" useRandomYRotation="false" useManualYRotation="true"/>
    <clearAreas>
        <clearArea startNode="2|0" widthNode="2|0|0" heightNode="2|0|1"/>
    </clearAreas>
    <buyingStation stationName="Seeds station" appearsOnPDA="false" storageRadius="0" fillSoundIdentifier="fillSound01">
        <loadTrigger triggerNode="0|1|0|0|0" fillLitersPerSecond="200" infiniteCapacity="true"/>
        <fillType name="seeds" priceScale="1"/>
    </buyingStation>   
</placeable>
Linked video:
https://drive.google.com/open?id=17u085 ... DF_Ep-8K5H

Thanks :)
:gamer: FS22 Seasons is great! First time a was able to past winter.