Page 1 of 1

lock filter map

Posted: Sun Mar 03, 2024 5:52 pm
by Cyrille
Hi everyone,
I would like to change the display and locking of crop filters in the PDA. Because resets every time you start the game. I looked in the xml of the moded map but I can't find.
if anyone knows how to do it.
Thanks
Cyrille

Re: lock filter map

Posted: Tue Mar 05, 2024 8:45 am
by LS-Lara
This is a global setting in the "gameSettings.xml" file.
Crops that are listed inside the "ingameMapFruitFilter" tag are disabled in the map-overlay.

For example

Code: Select all

<ingameMapFruitFilter>CANOLA;SUNFLOWER<ingameMapFruitFilter>
By default, the tag is empty. Grass is disabled in any case even if not mentioned here, because this is hard-coded.

If there are non-standard fruitTypes disabled on mod-maps, it seems that the value will still persist, even if other maps are loaded. But it will be overwritten once you make any changes (not only on the crops) in the PDA filtering when a map is loaded, which does not contain that specific fruitType.

Re: lock filter map

Posted: Tue Mar 05, 2024 2:25 pm
by Cyrille
Hi,
I went to the gameseting file, the grass was written in this XML, but Iif you delete the entry, the filter remains disabled when starting the game.
this isn't boring but probably a solution for holding this activate ?
You mentioned this is hard-coded, can you explain, i'm not moddr.

Re: lock filter map

Posted: Tue Mar 05, 2024 4:29 pm
by LS-Lara
This behaviour is correct.

There is no way to keep GRASS activated - or to explicitly activate any other fruitType. By default, all fruitTypes are activated and only deactivation is stored in the XML. GRASS is an exception: it is always deactivated irrespective of whether it is written in the XML or not. You can only keep it active manually during play.

Hard-coded means here, that this exception is explicitly programmed in one of the base script files of the game (InGameMenuMapFrame.lua). Theoretically, this issue could maybe be solved by scripting. But one would need to deep-dive into this.

Re: lock filter map

Posted: Wed Mar 06, 2024 6:33 pm
by Cyrille
Hi,
Thank you very much for all these details, it's a shame on the 19, the grass appeared all over the map but now it is limited to the field.
Thank you for your reply.
Cyrille