Community Forum

import sellingStation triggers in to map error

Forum Overview >> Editor

CategoryEditor
Created05.04.2021 21:49


Nord Hawk (NordHawkSteam) 05.04.2021 21:49
I have an interesting problem, I am trying to import a sellingStation trigger through the "placeable" system, as far as I know I am doing it the way you are expected to;
1. Importing trigger group from: $data/placeables/mapUS/sellingStations/sellingStationGeneric.i3d

2. I added it to the moddesc: <storeItem xmlFilename="maps/placeables/sellingStationGeneric/sellingStationSlottsHotellet.xml"/>

3. I place the trigger on map, copy the coordinates and rotation "x, y, z" in to the default items folder:

<item mapBoundId="sellingStationSlottsHotellet" className="SellingStationPlaceable" filename="$moddir$Rosersberg/maps/placeables/sellingStationSlottsHotellet/sellingStationSlottsHotellet.xml" position="-200.97200012 506.61264038 -850.31689453" rotation="0 -87.08091736 0" />

with the apropriate changes to the xml file placed in the folder for the sellingStation:

<placeable>
<storeData>
<name>$l10n_shopItem_sellStation</name>
<image>$data/placeables/mapDE/sellingStationGeneric/store_sellingStationGeneric.png</image>
<price>1</price>
<canBeSold>false</canBeSold>
<showInStore>false</showInStore>
<lifetime>1000</lifetime>
<rotation>0</rotation>
<brand>LIZARD</brand>
<species>placeable</species>
<category>placeableMisc</category>
<vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
<indexBufferMemoryUsage>0</indexBufferMemoryUsage>
<textureMemoryUsage>0</textureMemoryUsage>
<instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
<instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
</storeData>

<placeableType>sellingStation</placeableType>
<filename>maps/placeables/sellingStationGeneric/sellingStationSlottsHotellet.i3d</filename>
<placement testSizeX="15" testSizeZ="8" sizeX="4" sizeZ="3" useRandomYRotation="false" useManualYRotation="true" />

<sellingStation stationName="Rosersbergs Slotts Hotell" appearsOnPDA="true" storageRadius="0" litersForFullPriceDrop="100000" fullPriceRecoverHours="48">
<unloadTrigger "0" />
<fillType name="potato" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="sugarBeet" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="sugarCane" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="wheat" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="barley" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="canola" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="sunflower" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="soybean" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="maize" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="milk" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="egg" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="cotton" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="wool" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="beer" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="wine" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="coffee" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="meat" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="pork" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
</sellingStation>

</placeable>

4. I then export the imported $data trigger to the map-folder with its files/game data, save map and launch game, nothing shows up.

5.So I tried to import the trigger again from its game folder, leave it where it is and save map, when launching the game it shows up on the map but the triggers doesn't work. I realized that the coordinates cant be used from the actual trigger group, so I tried placing another object on top of the triggers to grab those coordinates and use those in the default items xml. then it appears that the trigger work but doesn't end up on the right place, they usually end up somewhere behind or in front of the triggers several in game "feet" away and will not accept the unloads. I tried several different placeable groups and the only one that did work was the sellingStation for wool, adding crops or other fruits it wont accept, and it will not be placed in the correct location no matter how I put in and rearrange the coordinates.


This is driving me insane, I have watched several YouTube videos on this and followed it to the letter and I have no luck with this. It is like the placeable system on my map is busted, any pda spot I need to show up I have had to tweak with the double stacked object to use those coordinates from an then remove that object before saving, only to get the pda spot to show up, if I use the actual coordinates the object will not show up on the pda.

I hope this made sense, I am so tired from trying to figure this out, I hope someone can make sense of this, what am I missing here?

Thanks for any help.

Bilbo Beutlin (BBeutlin) 05.04.2021 22:16
Check your path descriptions in modDesc, defaultItems and station.xml, these are all different.

And also look into game log for errors.

Nord Hawk (NordHawkSteam) 05.04.2021 23:09
Sorry about that, I corrected the input to the actual data. So now you should see the actual input, and to add to this, I have tried all different triggers from the $data folder from both mapUS and mapDE to see if I have corrupted triggers, I have reinstalled the game as well. So, the actual placeable system doesn't seem to do what its supposed to do. The weird thing is that nothing shows up on the pda if I use the trigger groups actual coordinates, and when they do show up and part of the trigger is working, like in this case, only wool works in a specific spot on the trigger grid, the other added fruits does not work.

This is doing my head in, I am not proficient in map editing and is still learning, but I have followed videos and info on forums and it has worked great until this issue.

Thanks for the fast reply btw.

Bilbo Beutlin (BBeutlin) 06.04.2021 16:18
The station.xml <placeableType> is wrong. This must be
<placeableType>sellingStation</placeableType>
since this determines the object class and associated LUA script.

And obviously you didn't look into the game log. This will tell you what's wrong and give hints to fix the errors.

Nord Hawk (NordHawkSteam) 09.04.2021 02:32
After suggested changes at this point, the log text shows the sellingstation as loaded with no errors, but it is not working. Its like the sellingStation is being loaded without the triggers or something, or the triggers ends up on a different spot somewhere.
The Index path for the triggers in GE are; exactFillRootNode: 3>3|11|0|0|0|0|0, baleTrigger: 3>3|11|0|0|0|0|1

Boris Klinko (Boris555) 09.04.2021 06:27
You can check if trigger is there by pressing F5 in game, triggers are orange boxes.

Bilbo Beutlin (BBeutlin) 09.04.2021 08:57
Your indices are invalid. Placeables may have only one main component. These are the numbers before ">".
That means, your indices must look like "1|2|3", no ">" within.
Also make sure the trigger box has the right properties and collision mask. Compare with a default one.

Nord Hawk (NordHawkSteam) 10.04.2021 03:46
Bilbo Beutlin (BBeutlin) & Boris Klinko (Boris555)

Problem is now RESOLVED and I appreciate your help GREATLY! (Boris, the triggers did not appear in game by pressing F5, though.) But as long as the triggers are doing what they are supposed to do in the game, I am happy, I did a beta test run on the new trigger "setup" and it takes the unload.

So, again, thank you so much. I might be back for more questions, I am still learning to mod maps and vehicles and your input here is great.

Boris Klinko (Boris555) 10.04.2021 08:16
Nord Hawk, I can see some triggers when I press F5. Maybe you haven't enabled development options, here is a link for that https://gdn.giants-software.com/documentation_overview.php


Note: Log in to post. Create a new account here.