help with script

Your forum for all discussions around Modding.
Yollomm007
Posts: 7
Joined: Sat Mar 31, 2018 6:57 pm

help with script

Post by Yollomm007 »

Hi, I am trying to make a placeable grass, straw and silage refill tank but cant seem to get the item to show in the store
here is the xml for the grass tank

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable>
<storeData>
<name>$l10n_shopItem_grassRefillTank</name>
<image>store_grassRefillTank.png</image>
<price>8500</price>
<dailyUpkeep>0</dailyUpkeep>
<specs>
<fillTypes>grass</fillTypes>
</specs>
<functions>
<function>$l10n_function_grassRefillTank</function>
</functions>
<lifetime>1000</lifetime>
<rotation>0</rotation>
<brand>LIZARD</brand>
<species>placeable</species>
<category>placeables</category>
<vertexBufferMemoryUsage>44496</vertexBufferMemoryUsage>
<indexBufferMemoryUsage>8064</indexBufferMemoryUsage>
<textureMemoryUsage>9087800</textureMemoryUsage>
<instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
<instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
</storeData>

<placeableType>fillTriggerPlaceable</placeableType>
<filename>grassRefillTank.i3d</filename>
<placement testSizeX="4" testSizeZ="4" sizeX="2" sizeZ="2" useRandomYRotation="false" useManualYRotation="true" />
<tipOcclusionUpdateArea sizeX="5" sizeZ="5" />
<fillTrigger index="0>3" fillType="grass"/>

<clearAreas>
<clearArea startIndex="0>1|0" widthIndex="0>1|1" heightIndex="0>1|2"/>
</clearAreas>
</placeable>

and the moddesc xml

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="32">
<author>meeee</author>
<version>1.0.0.3</version>

<title>
<en>Placeable Refill Tank</en>
<de>Platzierbare Nachfülltank</de>
<fr>Réservoir à placer</fr>
</title>

<description>
<en>
<![CDATA[grass tanks which are placeable on the map.
<en>

</description>
<iconFilename>icon_refillTanks.png</iconFilename>
<multiplayer supported="true"/>

<storeItems>
<storeItem xmlFilename="grassRefillTank.xml"/>
</storeItems>

<l10n>
</text>
<text name="shopItem_grassRefillTank">
<en>Solid grass Tank</en>
</text>
</l10n>
</modDesc>
is there anything wrong with this that you can spot.

thank you
User avatar
böserlöwe
GIANTS Software | Support Engineer
Posts: 10816
Joined: Thu Oct 01, 2009 10:09 pm
Location: Kreis Schaumburg
Contact:

Re: help with script

Post by böserlöwe »

Where is the closed tag?

<en>
<![CDATA[grass tanks which are placeable on the map.
<en>

and by the way, the Moddesc Version is for actual FS17 the 39 not 32
Yollomm007
Posts: 7
Joined: Sat Mar 31, 2018 6:57 pm

Re: help with script

Post by Yollomm007 »

thanks for that ill give it a go
Yollomm007
Posts: 7
Joined: Sat Mar 31, 2018 6:57 pm

Re: help with script

Post by Yollomm007 »

well ive got it to show in the store, and I can purchase it but the fill trigger isn't working now

the fill trigger line
<fillTrigger index="0>3" fillType="grass"/>
Post Reply