lock filter map

Your forum for all discussions around Modding.
Cyrille
Posts: 9
Joined: Thu Feb 15, 2024 7:19 pm

lock filter map

Post 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
User avatar
LS-Lara
Posts: 394
Joined: Sun Aug 04, 2019 4:57 pm

Re: lock filter map

Post 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.
Der Sinn des Lebens ist:
29.61%

Mein Traktor:
Base:
HP Pavilion 690-03xx
Core i7-8700 @ 3.2GHz
NVIDIA GeForce GTX 1060 6GB
2x Benq GL2450H
Windows 10 Home 64bit
Custom:
2 x 16GB Corsair Vengeance LPX DDR4 C16 XMP 2.0
Samsung NVMe M.2 970 EVO Plus 500GB
Samsung SSD 860 EVO 1TB
Logitech G203 Prodigy
Logitech Wireless F710
Cyrille
Posts: 9
Joined: Thu Feb 15, 2024 7:19 pm

Re: lock filter map

Post 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.
User avatar
LS-Lara
Posts: 394
Joined: Sun Aug 04, 2019 4:57 pm

Re: lock filter map

Post 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.
Der Sinn des Lebens ist:
29.61%

Mein Traktor:
Base:
HP Pavilion 690-03xx
Core i7-8700 @ 3.2GHz
NVIDIA GeForce GTX 1060 6GB
2x Benq GL2450H
Windows 10 Home 64bit
Custom:
2 x 16GB Corsair Vengeance LPX DDR4 C16 XMP 2.0
Samsung NVMe M.2 970 EVO Plus 500GB
Samsung SSD 860 EVO 1TB
Logitech G203 Prodigy
Logitech Wireless F710
Cyrille
Posts: 9
Joined: Thu Feb 15, 2024 7:19 pm

Re: lock filter map

Post 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
Post Reply