Category | Scripting |
Created | 25.04.2020 12:55 |
Johnny Andersson (Unknown) | 25.04.2020 12:55 |
---|---|
I'm trying to implement chaff-baleing in a modified map of ungetsheim. I have gotten so far that i can mowe the rye/triticale with a mower and get it to a chaff windrow, but when i pick it up with the baler the bales come out as woodchips-bales. i have changed inputs in the "maps_densityMapHeightTypes.xml" "maps_fillTypes.xml" "maps_baleTypes.xml" and the "maps_fruitTypes.xml" but i am stuck in this now. For information why i am doing this is to use it with MaizePlus so i can make bales out of WCS (fresh) and i have contacted The-Alien-Paul and gotten some help but i think i can throw out a question here aswell. Here are the inputs in all xml's: "maps_densityMapHeightTypes": <?xml version="1.0" encoding="utf-8" standalone="no" ?> <map> <densityMapHeightTypes> <densityMapHeightType fillTypeName="triticale" maxSurfaceAngle="40" fillToGroundScale="1.0" allowsSmoothing="false" > <collision scale="1.00" baseOffset="0.0" minOffset="0.0" maxOffset="0.0" /> <textures diffuse="maps/fillPlanes/triticale_diffuse.png" normal="maps/fillPlanes/triticale_normal.png" distance="maps/fillPlanes/distance/triticale_distance.png" /> </densityMapHeightType> <densityMapHeightType fillTypeName="rye" maxSurfaceAngle="40" fillToGroundScale="1.0" allowsSmoothing="false" > <collision scale="1.00" baseOffset="0.0" minOffset="0.0" maxOffset="0.0" /> <textures diffuse="maps/fillPlanes/rye_diffuse.png" normal="maps/fillPlanes/rye_normal.png" distance="maps/fillPlanes/distance/rye_distance.png" /> </densityMapHeightType> <densityMapHeightType fillTypeName="chaff_windrow" maxSurfaceAngle="35" fillToGroundScale="6.0" allowsSmoothing="false" > <collision scale="0.35" baseOffset="0.10" minOffset="0.10" maxOffset="1.20" /> <textures diffuse="$data/fillPlanes/grass_diffuse.png" normal="$data/fillPlanes/grass_normal.png" distance="$data/fillPlanes/distance/grassDistance_diffuse.png" /> </densityMapHeightType> </densityMapHeightTypes> </map> "maps_Filltypes": <?xml version="1.0" encoding="utf-8" standalone="no" ?> <map> <fillTypes> <fillType name="TRITICALE" title="$l10n_fillType_triticale" showOnPriceTable="true" pricePerLiter="0.437" > <image hud="maps/huds/hud_fill_triticale.png" hudSmall="maps/huds/hud_fill_triticale_sml.png" /> <physics massPerLiter="0.78" maxPhysicalSurfaceAngle="15" /> <pallet filename="$data/objects/pallets/fillablePallet/fillablePallet.xml" /> </fillType> <fillType name="RYE" title="$l10n_fillType_rye" showOnPriceTable="true" pricePerLiter="0.432" > <image hud="maps/huds/hud_fill_rye.png" hudSmall="maps/huds/hud_fill_rye_sml.png" /> <physics massPerLiter="0.68" maxPhysicalSurfaceAngle="15" /> <pallet filename="$data/objects/pallets/fillablePallet/fillablePallet.xml" /> </fillType> <fillType name="CHAFF_WINDROW" title="$l10n_fillType_chaff" showOnPriceTable="true" pricePerLiter="0.045" > <image hud="$dataS2/menu/hud/fillTypes/hud_fill_grass_windrow.png" hudSmall="$dataS2/menu/hud/fillTypes/hud_fill_grass_windrow_sml.png" /> <physics massPerLiter="0.4" maxPhysicalSurfaceAngle="50" /> </fillType> </fillTypes> <fillTypeCategories> <fillTypeCategory name="BULK" >RYE TRITICALE CHAFF_WINDROW</fillTypeCategory> <fillTypeCategory name="WINDROW" >CHAFF_WINDROW</fillTypeCategory> <fillTypeCategory name="COMBINE" >RYE TRITICALE</fillTypeCategory> <fillTypeCategory name="AUGERWAGON" >RYE TRITICALE</fillTypeCategory> <fillTypeCategory name="FORAGEWAGON" >CHAFF_WINDROW</fillTypeCategory> <fillTypeCategory name="SILAGETRAILER" >CHAFF_WINDROW</fillTypeCategory> <fillTypeCategory name="TRAINWAGON" >RYE TRITICALE</fillTypeCategory> <fillTypeCategory name="FORAGEHARVESTER" >CHAFF_WINDROW</fillTypeCategory> <fillTypeCategory name="FARMSILO" >RYE TRITICALE</fillTypeCategory> <fillTypeCategory name="LOADINGVEHICLE">RYE TRITICALE CHAFF_WINDROW </fillTypeCategory> </fillTypeCategories> <fillTypeSounds> <fillTypeSound isDefault="true"> <sound template="DEFAULT_SILO_FILL"/> </fillTypeSound> </fillTypeSounds> </map> "maps_baleTypes": <?xml version="1.0" encoding="utf-8" standalone="no" ?> <map> <baleTypes> <baleType filename="$data/objects/squarebales/baleGrass240.i3d" fillType="CHAFF_WINDROW" isRoundbale="false" width="1.20" height="0.90" length="2.40" /> <baleType filename="$data/objects/roundbales/roundbaleGrass_w112_d130.i3d" fillType="CHAFF_WINDROW" isRoundbale="true" width="1.12" diameter="1.3" /> </baleTypes> </map> "maps_fruitTypes": <?xml version="1.0" encoding="utf-8" standalone="no" ?> <map> <fruitTypes> <fruitType name="rye" title="$l10n_fillType_rye" shownOnMap="true" useForFieldJob="true" > <general startStateChannel="0" numStateChannels="4" /> <cultivation needsSeeding="true" allowsSeeding="true" useSeedingWidth="false" directionSnapAngle="0" alignsToSun="false" seedUsagePerSqm="0.05" /> <harvest minHarvestingGrowthState="3" maxHarvestingGrowthState="6" cutState="8" minForageGrowthState="3" allowsPartialGrowthState="false" literPerSqm="0.98" /> <growth witheringNumGrowthStates="8" numGrowthStates="7" growthStateTime="24000000" resetsSpray="true" groundTypeChangeGrowthState="-1" groundTypeChanged="NONE" growthRequiresLime="true" /> <windrow name="straw" litersPerSqm="3.68" /> <options lowSoilDensityRequired="true" increasesSoilDensity="false" consumesLime="true" startSprayState="0" /> <destruction filterStart="2" filterEnd="7" state="8" /> <mapColors default="0.0000 0.2509 0.2509 1" colorBlind="0.3968 0.3712 0.2159 1"/> </fruitType> <fruitType name="triticale" title="$l10n_fillType_triticale" shownOnMap="true" useForFieldJob="true"> <general startStateChannel="0" numStateChannels="4" /> <cultivation needsSeeding="true" allowsSeeding="true" useSeedingWidth="false" directionSnapAngle="0" alignsToSun="false" seedUsagePerSqm="0.05" /> <harvest minHarvestingGrowthState="3" maxHarvestingGrowthState="6" cutState="8" minForageGrowthState="3" allowsPartialGrowthState="false" literPerSqm="0.96" /> <growth witheringNumGrowthStates="8" numGrowthStates="7" growthStateTime="24000000" resetsSpray="true" groundTypeChangeGrowthState="-1" groundTypeChanged="NONE" growthRequiresLime="true" /> <windrow name="straw" litersPerSqm="3.68" /> <options lowSoilDensityRequired="true" increasesSoilDensity="false" consumesLime="true" startSprayState="0" /> <destruction filterStart="2" filterEnd="7" state="8" /> <mapColors default="0.0706 0.9137 0.9255 1" colorBlind="0.6795 0.6867 0.7231 1"/> </fruitType> <fruitType name="chaff" title="$l10n_fillType_chaff" showOnPriceTable="false" shownOnMap="false" useForFieldJob="false"> <general startStateChannel="0" numStateChannels="4" /> <cultivation needsSeeding="false" allowsSeeding="false" useSeedingWidth="false" directionSnapAngle="0" alignsToSun="false" seedUsagePerSqm="0.02" /> <harvest minHarvestingGrowthState="2" maxHarvestingGrowthState="3" cutState="1" allowsPartialGrowthState="false" literPerSqm="4.37" /> <growth witheringNumGrowthStates="4" numGrowthStates="4" growthStateTime="36000000" resetsSpray="true" groundTypeChangeGrowthState="-1" groundTypeChanged="NONE" growthRequiresLime="false" /> <windrow name="chaff_windrow" litersPerSqm="4.37" /> <options lowSoilDensityRequired="false" increasesSoilDensity="false" consumesLime="false" startSprayState="0" /> <mapColors default="0.0423 0.1221 0.0252 1" colorBlind="1.0000 0.9473 0.0369 1"/> </fruitType> </fruitTypes> <fruitTypeCategories> <fruitTypeCategory name="GRAINHEADER" >RYE TRITICALE</fruitTypeCategory> <fruitTypeCategory name="DIRECTCUTTER" >RYE TRITICALE </fruitTypeCategory> <fruitTypeCategory name="SOWINGMACHINE" >RYE TRITICALE </fruitTypeCategory> <fruitTypeCategory name="DIRECTCUTTER" >CHAFF_WINDROW</fruitTypeCategory> <fruitTypeCategory name="PICKUP" >CHAFF_WINDROW</fruitTypeCategory> </fruitTypeCategories> <fruitTypeConverters> <fruitTypeConverter name="FORAGEHARVESTER"> <converter from="RYE" to="CHAFF" factor="3.0" /> <converter from="TRITICALE" to="CHAFF" factor="3.0" /> <converter from="CHAFF_WINDROW" to="CHAFF" factor="1.0" /> </fruitTypeConverter> <fruitTypeConverter name="MOWER"> <converter from="RYE" to="CHAFF_WINDROW" factor="1.0" windrowFactor="1.0" /> <converter from="TRITICALE" to="CHAFF_WINDROW" factor="1.0" windrowFactor="1.0" /> </fruitTypeConverter> </fruitTypeConverters> </map> Thanks in advance :) |
Bilbo Beutlin (BBeutlin) | 25.04.2020 18:44 |
---|---|
For a non-default fillType you must create dedicated bales. See default bales in "$data/objects/..". Each bale has a user attribute which determines the fillType. |
Johnny Andersson (Unknown) | 26.04.2020 14:21 |
---|---|
Thanks Bilbo, i got it working about four hours after a wrote the original message in here. Now i have chaff bales that ferments into silage. I used the standard bales from Giants and just changed the fillTypes in them like you said. |
Note: Log in to post. Create a new account here.