Community Forum

Windrow added to crop, but animation from back of harvester missing

Forum Overview >> Scripting

CategoryScripting
Created03.11.2016 19:31


Sebastian P (Unknown) 03.11.2016 19:32
I've added a windrow to canola and it's dropping onto the ground and I can pick it up with a forage wagon/baler, but the animation of it coming out from the back of the harvester is not there. Is there something obvious I am missing?

Please ignore the magic value. This is just experimental code :)

[code]
FruitUtil.setFruitTypeWindrow(FruitUtil.fruitTypes["rape"].index,30,6);
FruitUtil.registerFruitTypeWindrowForageWagonConversion(FruitUtil.fruitTypes["rape"].index,FruitUtil.fruitTypes["wheat"].index);

[/code]

I am not sure if the second line is required, but I added it in there for good measure. The animation is missing whether I have that second line, or not.

Here is a dump of fruitType table for rape

[code]
[3] => table: 0x02195ac2f030 {
[cutState] => 8
[maxHarvestingGrowthState] => 6
[windrowLiterPerSqm] => 6
[alignsToSun] => false
[shownOnMap] => true
[forageWagonConversionSources] => table: 0x02195c5f7310 {
}
[needsSeeding] => true
[directionSnapAngle] => 0
[minHarvestingGrowthState] => 4
[minForageGrowthState] => 4
[literPerSqm] => 0.58
[forageWagonConversionTarget] => 1
[seedUsagePerSqm] => 0.07
[minPreparingGrowthState] => -1
[windrowName] => "straw"
[useForFieldJob] => true
[useSeedingWidth] => false
[preparedGrowthState] => -1
[index] => 3
[allowsPartialGrowthState] => false
[allowsSeeding] => true
[hasWindrow] => true
[name] => "rape"
[maxPreparingGrowthState] => -1

[/code]

Sebastian P (Unknown) 05.11.2016 11:58
Am I being silly? Is this happening because there is no particle system associated with the crop?


Note: Log in to post. Create a new account here.