PMC Farming Simulator Terrain Common Errors

Common Errors

Error: Trying to set DensityMapHeightUpdater collision map with invalid size (33554432 vs 134217728)
Error: Blocked area map is wrong size for terrain (1024 x 1024) vs (2048 x 2048)

Fix: GE -> scripts -> fs19 -> map -> create ground collision map. TERRAINNAME.i3d.plcMap.grle will not be updated when you create ground collision map, you must copy TERRAINAME.i3d.plcColMap.grle to TERRAINNAME.i3d.plcMap.grle for it to work.

Error: Running LUA method 'update'.
dataS/scripts/fieldJobs/FieldManager.lua(90) : attempt to index local 'farmland' (a nil value)
Error: Running LUA method 'update'.
dataS/scripts/fieldJobs/FieldManager.lua(104) : attempt to index field 'farmland' (a nil value)
Error: Running LUA method 'update'.
dataS/scripts/fieldJobs/Field.lua(103) : attempt to index field 'farmland' (a nil value)

Fix: you did not paint info layer farmland area over EVERY field, also check that your farmlands.xml is in order. If you forgot to paint over some fields you can easily see this in-game as the fields are not present, colored so to speak.

Error: Failed to open xml file '$data/placeables/mapDE/sellingStationGeneric/sellingStationPort01.xml'.
Warning: corrupt savegame, item 24 with className SellingStationPlaceable could not be loaded

Fix: edit defaultItems.xml, remove or fix the entries there.

Error: GDM file has wrong number of channels (11 should be 13)
DensityMap: failed to load GDM file.
Error: Can't load resource 'c:/mydir/MyMap_4km/maps/MyMap_4km/cultivator_density.png'.
Error: Failed to load terrain detail layer 'terrainDetail'.
Error: GDM file has wrong number of channels (9 should be 10)
DensityMap: failed to load GDM file.
Error: Can't load resource 'c:/mydir/MyMap_4km/maps/MyMap_4km/fruit_density.png'.

Then you need to delete the GDM and possibly GRLE files, only leave the PNG versions. open terrain again in GE and it should work now.

Error: TerrainDeformation requires a terrain lod size that is a multiple of the terrain height map size

Fix: some of your _weight or _density (or all maybe) image resolutions are smaller than heightmap (DEM), resize them properly.

Warning: FieldCropsUpdater requires crops and ground density map to have the same size. Ignoring spray resetting and ground type change.
Error: addRequiredCropType foliage must match the size of the ground terrain detail.

Fix: some of your _density files are wrong size, like 2048 vs 4096 etc, check their resolutions and set them all the same size.