Community Forum

Please Help, buying station

Forum Overview >> Editor

CategoryEditor
Created07.09.2019 20:26


John Bailey (Unknown) 07.09.2019 20:26
Hi
I have added the Multi Filling Station from modhub to a map that I am creating,
I have added to modDesc
<storeItem xmlFilename="maps/placeables/MultiFilling/triggers/MultiFillingStationDark.xml" />
I have added to default items
<item mapBoundId="MultiFillingStationDark" className="BuyingStationPlaceable" filename="$moddir$BlankMap/maps/placeables/MultiFilling/triggers/MultiFillingStationDark.xml" position="27.58099937 58.17320251 -26.06554604" rotation="-180 8.455 -180" />
I have added to the multifillingstation xml
<filename>$moddir$BlankMap/maps/placeables/MultiFilling/MultiFillingStationDark.i3d</filename>

The first issue I have is that when loading, if I have deleted it from the map it does not load in map unless I have it separate in the mods folder and change xmls to read that but I don't want the mods separate, I want them within the map mod however I can save the shape on the map itself which I am fine with.

Secondly and more importantly I cannot get the trigger to activate when I drive a tractor and trailer under the pipe.
I have looked in the FS19_EstanciaLapacho map to try and learn or copy/paste but I cannot find how to do it. I have even exported the trigger from the mod and tried to have it on its own which also doesnt work for me.

On a slight side not on some attempts the discharge effect is still visible when I load the map.

I am not the best at coding but know a little, please help, this is driving me insane

many thanks for any help

Bilbo Beutlin (BBeutlin) 08.09.2019 06:30
There should be error messages in the game log! Use them to fix the error.

The entry in your station.xml is wrong. The placeholder $moddir$ isn't evaluated there. You should use <filename>myStation.i3d</filename> if the i3d is in same folder as the xml.

Beneath it's recommanded to use in defaultItems.xml "$mapdir$/path" instead "$moddir$mapName/path". That prevents from errors if the map is renamed.

The trigger has most probably a faulty collision bitmask or its position is out-of-range. Can also be, the describing xml is wrong (node assignment).

John Bailey (Unknown) 09.09.2019 11:59
Thank You very very very much, I now have things loading and working, this has had me driven wild for over 2 weeks while I tried to sort it out myself.

I have tried to add a custom grain Silo to the map using the same method as the other items however the triggers do not seem to work for this, I have tried various different ones to make sure one is not damaged however they all seem to load the same, there are no errors in the log.
Is there something I need to delete or change for the game to see the custom grain silo rather than the standard silo in the game folders?

Many thanks again

John Bailey (Unknown) 09.09.2019 12:37
Thank You very very very much, I now have things loading and working, this has had me driven wild for over 2 weeks while I tried to sort it out myself.

I have tried to add a custom grain Silo to the map using the same method as the other items however the triggers do not seem to work for this, I have tried various different ones to make sure one is not damaged however they all seem to load the same, there are no errors in the log.
Is there something I need to delete or change for the game to see the custom grain silo rather than the standard silo in the game folders?

Many thanks again

John Bailey (Unknown) 09.09.2019 12:37
Thank You very very very much, I now have things loading and working, this has had me driven wild for over 2 weeks while I tried to sort it out myself.

I have tried to add a custom grain Silo to the map using the same method as the other items however the triggers do not seem to work for this, I have tried various different ones to make sure one is not damaged however they all seem to load the same, there are no errors in the log.
Is there something I need to delete or change for the game to see the custom grain silo rather than the standard silo in the game folders?

Many thanks again

Bilbo Beutlin (BBeutlin) 09.09.2019 14:14
A custom silo should be in the map folder "placeables". It must be declared in the modDesc.xml <storeItems>.
Then add it in the defaultItems.xml, there are two ways:
1. with <item defaultFarmProperty="true" farmId=.. the item appears in "new farmer" mode only. No problem, simply change game difficulty later.
2. with <item mapBoundId=.. it appears always, however doesn't count as farm silo, but as external silo. You'll lose the content display for own farm silos.

I'd suggest you DL and examine the Giants map "Estancia Lapacho". There you have good examples how to add custom silos and other useful stuff.

John Bailey (Unknown) 09.09.2019 14:52
I have added to the modDesc and the modItems as you have suggested, the silo appears using the placeable mechanic and is visable however the "IN" and "OUT" triggers are still visible on the map and are not usable.
This is the case for the 3 different Silos I have tried, I have looked at the Estancia Lapacho map as you have suggested and copied as they have made this map however this does not seem to change the problem. There are no errors in the log
what am I doing wrong?

Bilbo Beutlin (BBeutlin) 09.09.2019 15:13
Quite impossible to say without seeing your map and xml's. ;)
I'd guess you have confused locations in i3d groups "placeholders" and regular.
But maybe anything else, also in xml.

For the first step forget your own silos. Take items of the Estancia map and implement it in your map accordingly. When you got it to work, exchange Estancia items with yours.

John Bailey (Unknown) 09.09.2019 15:21
Thank you for your help, I will try this and continue until I can get it to work
Thank you for your support

John Bailey (Unknown) 09.09.2019 16:09
Thank you, I did as you suggested, imported the silo from the Giants map which worked and then following the same method added a custom silo which now works, I am not sure what I was doing wrong but now it works.

Sorry for the repeated questions but, I also seem to have map 'flickering' issues, could this be to do with the mods I have imported or is it likely to to do with something else? It only seems to happen when I pan the camera around ingame

Thanks again

Bilbo Beutlin (BBeutlin) 10.09.2019 00:27
Flickering appears if two (or more) rendered shapes are on the same place.
You must identify the shapes and move one a little bit (millimeters) up/down.


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