Skip to content

w33zl/FS25_FillTypesPatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This mod is a patch fixing a bug caused by two (or more) mods changing the same filltype, while the latter ones do not define explicit texture paths. Symptoms of this bug is errors in the log, textures looking like wheat (when it should be something else) or that some filltypes cannot be spawned as pallets.

Mods known to be affected by this bug is Additional Filltypes, Seasonal Prices and Coal Mine (but basically any mod altering filltypes might be affected by this issue). If you are using any mods adding or changing filltypes, this patch is highly recommended.

It is safe to add this to an existing savegame and can be removed at any time without implications. This mod just silently operates in the background adding a workaround to the bug until it is fixed permanently in the base game.

SYMPTOMS:

  • Error in log, something similar to: -- "Failed to open xml file 'C:/MODS/FS25_ZYX_SeasonalPrices_crossplay/data/objects/bigBag/pigFood/bigBag_pigFood.xml'" -- "Unable to find vehicle storeitem for 'C:/MODS/FS25_ZYX_SeasonalPrices_crossplay/data/objects/bigBag/pigFood/bigBag_pigFood.xml'" -- "Texture array layer 'C:/MODS/FS25_Coal_Factory/C:/MODS/FS25_AdditionalFilltypes/fillPlanes/coal_diffuse.png' couldn't be loaded."
  • Unable to spawn pallets (e.g. using PowerTools)
  • Custom filltype (e.g. coal) has wrong texture (either black, transparent or might look like wheat)

PROBLEM DESCRIPTION:

Mod A and Mob B both change the WHEAT filltype, however only Mod A actually defines a texture path.

MOD A XML (texture path is defined):

<fillType name="WHEAT">
    <textures diffuseColor="customWheat_diffuse.png" />
</fillType>

MOD B XML (no texture path defined):

<fillType name="WHEAT">
    <textures unitSize="0.5" />
</fillType>

After MOD A is loaded, the path will look like this (all good so far):

fillTypePath = "C:/ModsFolders/FS25_MOD_A/customWheat_diffuse.png"

After MOD B is loaded, the path will now look like this (causing errors):

fillTypePath = "C:/ModsFolders/FS25_MOD_B/C:/ModsFolders/FS25_MOD_A/customWheat_diffuse.png"

This is because the base path of MOD A is prepended to the texture path of MOD B.