Crop Destruction
9 posts
Page 1 of 1
Crop Destruction
is it possible to modify the lua to destroy harvested crops too?
Re: Crop Destruction
harvested crops? Are you talking about driving over straw and grass/hay on the windrow? Are you talking about driving over a heap of something on the ground?
Re: Crop Destruction
talking about the harvest stubble, would be nice to have that destroyed
Re: Crop Destruction
theSeb wrote:Yes, it would be possible.
can you show where to make the modifications, I don't understand Giants version as I did with the previous wheels lanes .lua from 15
Re: Crop Destruction
The function is destroyFruitArea and you would need to look at lines 139 to 148 in the latest version on modhub. This is where the selection is made on what fruit states the destruction will act upon.lindbejb wrote:theSeb wrote:Yes, it would be possible.
can you show where to make the modifications, I don't understand Giants version as I did with the previous wheels lanes .lua from 15
I assume you have studied FruitUtil tables in the game? You will need to understand it.
Code: Select all
setDensityCompareParams(entry.preparingOutputId, "equal", 0);
setDensityMaskParams(entry.preparingOutputId, "between", 2, desc.maxPreparingGrowthState+1);
setDensityMaskedParallelogram(entry.preparingOutputId, x,z, widthX,widthZ, heightX,heightZ, 0, 1, entry.id, 0, g_currentMission.numFruitStateChannels, 1);
setDensityCompareParams(entry.preparingOutputId, "greater", -1);
setDensityMaskParams(entry.preparingOutputId, "greater", 0);
setDensityCompareParams(entry.id, "between", 2, desc.maxPreparingGrowthState+1);
setDensityParallelogram(entry.id, x,z, widthX,widthZ, heightX,heightZ, 0, g_currentMission.numFruitStateChannels, desc.cutState+1);
setDensityCompareParams(entry.id, "greater", -1);
Re: Crop Destruction
in 15 the harvested state was usually stage 9, would I just change 2 to 9?
Re: Crop Destruction
It depends on the crop, but for stuff like wheat, barley and rape it is 8. 9 would be witheredlindbejb wrote:in 15 the harvested state was usually stage 9, would I just change 2 to 9?
I highly recommend printing out g_currentMission.fruitUtil
Re: Crop Destruction
tried an failed lol, guess I will stick to modelingtheSeb wrote:It depends on the crop, but for stuff like wheat, barley and rape it is 8. 9 would be witheredlindbejb wrote:in 15 the harvested state was usually stage 9, would I just change 2 to 9?
I highly recommend printing out g_currentMission.fruitUtil
9 posts
Page 1 of 1