Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Another thing you could try is to eliminate so many distance textures per crop. All you really need is a green, brown, and dead distance texture. Also, for certain "flowering" stages of certain crops (like yellow for canola, etc). The distance layers are all optional, so you can make them whatever you want.

At 3-4 textures per crop, you could have 60 - 70 crops on the map which is double what a vanilla map supports. It must be making a texture array for reused texture files to only count as 1. I'm still waiting to hear back from a couple people, but it's not an issue many have run into. In fact, you're the first that's ever mentioned it to me.

I would just need to go into the crop xml and see which ones are brown green and dead and delete the rest out of the xml and then delete them out of the distance folder too correct?    I think the issue is cause I have 57 crops on my map and I’m tryin to max it out at 64 I believe is the max.  

Right. There are usually 2-3 green ones, potentially a colored one for flowering stages, a brown one for harvest ready, and a withered one. You really don't need all of the green ones. Those are just different shades of green to match the shade of green in the crop itself. For example, if you had distance2, distance3, distance4 all green, then distance5 brown, and distance6 withered. You could just rename and reference them to distance2 = green, distance3 = brown, distance4 = withered. and save 2 slots per crop done like this.

Also, some states like stubble could just use the green or brown texture depending. A lot of crops leave so little stubble you could just remove the distanceMap attribute from those altogether and have it show the terrain texture in those cases.

And yes, 5 channels = 31 crops (plus 0 or no crop), 6 channels = 63 crops (plus 0 or no crop). Also, all crops by default have 15 total growth states available (though many of them are not used by default).

have you heard anything back on this yet?

Also, any idea if 6 channels and 63 crops is the maximum that you can have?  

hey so I’m still working on my modded map here and I’ve run into this error and I can’t figure it out.   Have you ever encountered this one

Ok so my error reads densitymapfilter: called from fs22_precisionfarminganhydrousready/scripts/maps/NitrogenMap.lua (1161) 

And then it comes up again with (1202) in parenthesis.  

My map works fine when I use the precision farming mod from modhub but when I use this one it throws this error.  

Do you know how to fix it or at least determine what is causing it.  Do the numbers in parenthesis mean something?   Do I go into the mod and that lua file and look for line 1161

I'd have to look at that one to be sure but it's probably DensityMapFilter.new not just DensityMapFilter. If it is it means it's trying to reference a map layer that does not exist.

well according to my log….it just reads DensityMapFilter.    I’m just confused cause like I said it works fine with the ingame modhub precision farming mod but when I use Collins custom precision farming mod it throws this error.   I take it it has something to do with the nitrogen map in that mod but I don’t understand the invalid object parameter part and how to determine what is wrong.  

if your thinking it’s a map layer that doesn’t exist…where would I start to look at that?   In the map i3d.  Terrainlayerdetail?

(1 edit)

Ok, so your issue is likely related to the anhydrous version not being a 1:1 copy of the vanilla Precision Farming scripts. The vanilla version has a terrainDataPlaneId check (i.e. map layer) and the anhydrous version does not. This is causing the following function to fail.

fruitFilter:resetDensityMapAndChannels(desc.terrainDataPlaneId, etc, etc)

PF Vanilla


PF Anhydrous

so to make it work do I need to add that wording in somewhere?  

The weird thing is I’ve been using it for many months with the anhydrous and I’ve added lots of fruits and it always worked….then recently I did some deleting and adding of different fruits and trees and only then did it start to cause the error.    I’ve reverted back to my previous maps to find where the issue started and it seems like it started when I made flax as flax2 and flax windrow and flax converted into chaff

Basically I wanted to make flax as chaf, cut and bake flax, harvest flax, and cut and pickup harvest flax.     Seems like that’s where the issue started.