Add Placeable

Your forum for all discussions around Modding.
AlpineFarmer
Posts: 20
Joined: Fri May 10, 2024 10:04 pm
Has thanked: 3 times

Add Placeable

Post by AlpineFarmer »

I want to add the cementfactory to my map under construction but using the GE tool gives me an error on the "StoreItems".

<!-- PRODUCTION POINTS -->
<storeItem xmlFilename="$data/placeables/mapUS/bakeryUS/bakeryUS.xml"/>
<storeItem xmlFilename="$data/placeables/mapUS/cannedPackagedFactoryUS/cannedPackagedFactoryUS.xml"/>
<storeItem xmlFilename="$data/placeables/mapUS/carpenterUS/carpenterUS.xml"/>
<storeItem xmlFilename="$data/placeables/mapUS/dairyUS/dairyUS.xml"/>
<storeItem xmlFilename="$data/placeables/mapUS/paperMill/paperMill.xml"/>
<storeItem xmlFilename="$data/placeables/mapUS/cementFactoryUS/cementFactoryUS.xml"/>
<storeItem xmlFilename="$data/placeables/mapUS/grainFlourMillUS/grainFlourMillUS.xml"/>
<storeItem xmlFilename="$data/placeables/mapUS/oilPlantUS/oilPlantUS.xml"/>
<storeItem xmlFilename="$data/placeables/mapUS/sawmillUS/sawmillUS.xml"/>
<storeItem xmlFilename="$data/placeables/mapUS/spinnery/spinneryUS.xml"/>
<storeItem xmlFilename="$data/placeables/mapEU/cementFactoryEU/cementFactory.xml"/>

It gives me an error with the last line.
User avatar
Missyb
Posts: 454
Joined: Mon Apr 08, 2019 11:03 pm
Has thanked: 2 times
Been thanked: 11 times

Re: Add Placeable

Post by Missyb »

you need to add it via the placeable.xml not the storeitem xml
!Warning I am dislayxic I will type how i think, if you don't understand any of it then please say!

Mods by Missyb FS22
Mods by MissyB Modding
Twitch Missyb Modding
AlpineFarmer
Posts: 20
Joined: Fri May 10, 2024 10:04 pm
Has thanked: 3 times

Re: Add Placeable

Post by AlpineFarmer »

yes but this mod not is a placeable...
User avatar
Missyb
Posts: 454
Joined: Mon Apr 08, 2019 11:03 pm
Has thanked: 2 times
Been thanked: 11 times

Re: Add Placeable

Post by Missyb »

its still goes under placeables.xml
!Warning I am dislayxic I will type how i think, if you don't understand any of it then please say!

Mods by Missyb FS22
Mods by MissyB Modding
Twitch Missyb Modding
AlpineFarmer
Posts: 20
Joined: Fri May 10, 2024 10:04 pm
Has thanked: 3 times

Re: Add Placeable

Post by AlpineFarmer »

<placeable filename="$mapdir$/map/placeables/moulin/moulin.xml" uniqueId="placeable002" position="404.725 221.695 468.229" rotation="0 90 0" boughtWithFarmlandOverwrite="false">
<customImage filename="$mapdir$/maps/store/store_moulin.dds"/>
</placeable>

<placeable filename="$mapdir$/map/placeables/cementFactoryEU/cementFactory.xml" uniqueId="placeable001" position="907.345 80.174 -592.963" rotation="-0.00000 87.351 0.0000" boughtWithFarmlandOverwrite="false">
<customImage filename="$mapdir$/textures/store/mapIcon_cementFactoryEU2.png"/>
</placeable>

The cement factory is now working, but I can't get the mill to work.

Thanks for your help. I've been trying to get the factory up and running for days and couldn't. Thank you so much.

I don't understand how to handle the "uniqueID" since when you place placeables ingame fills it in automatically.
Post Reply