1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Extra Foliage Layers

Discussion in 'Map Making' started by Toranion, Feb 12, 2017.

  1. Toranion

    Toranion Member

    Hi everyone, I would like to add carrots and onions to a uk map i am working on. Does anyone know of somewhere i can get the installation information and files i require to do this.

    Thanks in advance Toranion
     
  2. PromGames

    PromGames Member

    If you look at pine cove map, you will find interesting things to start with. In the scripts forder, you will find :
    additionalMapTypes.lua
    AdditionalTriggers.lua
    PalettenSammler.lua
    regFillTypes.lua


    There are explanations from the authors of those scripts that you will find very interesting.

    Code:
    --
    -- AdditionalMapTypes
    --
    -- @author: Blacksheep - RC-Devil
    -- @version: 1.0.0.7
    -- @date: 07 Januar 2017
    --
    -- Copyright (C) 2016 - 2017 Blacksheep - RC-Devil
    
    
    ...
        This is an example part for set in the modDesc.xml
       
        <AdditionalMapTypes hudsDirectory="fruitHuds/" groundTipDirectory="tipOnGround/">
          <!--<newFruitCategory name="food" />  Examples for Register New FruitType Categorys -->
          <!--<newFillCategory name="industry" />  Examples for Register New FillType Categorys -->
          <!--<newAnimalfoodgroup animalname="sheep" groupname="bulk" weight="0.50" filltypename="silage"/>  Examples for Register New Animal FoodGroup with Fruit as Food -->
         
          <!-- massPerLiter bei klee_windrow 350 strawName="klee_windrow" fillTypeConversion="true" convertType="klee_windrow"
               massPerLiter bei luzerne_windrow 350 strawName="luzerne_windrow" fillTypeConversion="true" convertType="luzerne_windrow"-->
           
            <!-- Example for Carrot   
               <fruitType name="carrot" needsSeeding="true" allowsSeeding="true" useSeedingWidth="false" directionSnapAngle="0" alignsToSun="false" minHarvestingGrowthState="5" maxHarvestingGrowthState="7" cutState="8" allowsPartialGrowthState="false" pricePerLiter="0.41" literPerSqm="1.3" seedUsagePerSqm="0.05" showOnPriceTable="true" shownOnMap="true" massPerLiter="400" maxPhysicalSurfaceAngle="22.5" useForFieldJob="true" minForageGrowthState="3" witheringNumGrowthStates="8" numGrowthStates="7" growthStateTime="28800000" resetsSpray="true" groundTypeChangeGrowthState="-1" groundTypeChanged="0" isEarthfruit="true" preparedHaulm="carrot_haulm" minPreparingGrowthState="1" maxPreparingGrowthState="7" preparedGrowthState="6" hasWindrow="false" windrowPricePerLiter="0.04" windrowLiterPerSqm="5" windrowShowOnPriceTable="true" windrowMassPerLiter="0.0003" windrowMaxPhysicalSurfaceAngle="50" hasStraw="false" strawName="straw" strawFactor="7.0" hasFill="true" hasMaterials="true" hasParticles="true" useHeap="true" toFillCategorys="true" fillTypeCategorys="bulk combine forageHarvester forageWagon fork trainWagon augerWagon" toFruitGroups="true" fruitTypeGroups="planter grainHeader directCutter" useAsCowBasefeed="false" useAsCowGrass="false" useAsCowPower="false" useAsSheepGrass="false" useAsPigBasefeed="false" useAsPigGrain="false" useAsPigProtein="false" useAsPigEarthfruit="false" />
         -->     
    
          <fruitType name="oat" needsSeeding="true" allowsSeeding="true" useSeedingWidth="false" directionSnapAngle="0" alignsToSun="false" minHarvestingGrowthState="5" maxHarvestingGrowthState="7" cutState="8" allowsPartialGrowthState="false" pricePerLiter="0.31" literPerSqm="1.2" seedUsagePerSqm="0.05" showOnPriceTable="true" shownOnMap="true" massPerLiter="640" maxPhysicalSurfaceAngle="22.5" useForFieldJob="true" minForageGrowthState="3" witheringNumGrowthStates="8" numGrowthStates="7" growthStateTime="28800000" resetsSpray="true" groundTypeChangeGrowthState="-1" groundTypeChanged="0" isEarthfruit="false" minPreparingGrowthState="1" maxPreparingGrowthState="7" preparedGrowthState="6" hasWindrow="true" windrowPricePerLiter="0.04" windrowLiterPerSqm="5" windrowShowOnPriceTable="false" windrowMassPerLiter="250" windrowMaxPhysicalSurfaceAngle="50" hasStraw="true" strawName="straw" strawFactor="7.0" hasFill="true" hasMaterials="true" hasParticles="true" useHeap="true" toFillCategorys="true" fillTypeCategorys="bulk combine forageHarvester forageWagon fork trainWagon augerWagon" toFruitGroups="true" fruitTypeGroups="sowingmachine grainHeader directCutter" useAsCowBasefeed="false" useAsCowGrass="false" useAsCowPower="false" useAsSheepGrass="false" useAsPigBasefeed="false" useAsPigGrain="false" useAsPigProtein="false" useAsPigEarthfruit="false" fillTypeConversion="true" convertType="chaff" conversionFactor="4" windrowConversionFactor="1" forageWagonConversion="wheat" />
        
          <fillType name="seeds2" pricePerLiter="0.8" showOnPriceTable="true" litersPerSecond="0.0060" massPerLiter="350" useForSpray="false" sprayerCategorys="spreader manureSpreader" toCategorys="true" fillTypeCategorys="bulk" hasMaterials="true" hasParticles="true" useHeap="true" isCowBasefeed="false" isCowGrass="false" isCowPower="false" isCowWindrow="false" isCowLiquid="false" isSheepGrass="false" isSheepLiquid="false" isPigBasefeed="false" isPigGrain="false" isPigProtein="false" isPigEarthfruit="false" />
    
          <fillType name="lime" pricePerLiter="0.8" showOnPriceTable="true" litersPerSecond="0.0060" massPerLiter="1000" useForSpray="true" sprayerCategorys="spreader manureSpreader" toCategorys="true" fillTypeCategorys="bulk liquid windrow piece combine forageHarvester forageWagon slurryTank fork trainWagon augerWagon" hasMaterials="true" hasParticles="true" useHeap="true" isCowBasefeed="false" isCowGrass="false" isCowPower="false" isCowWindrow="false" isCowLiquid="false" isSheepGrass="false" isSheepLiquid="false" isPigBasefeed="false" isPigGrain="false" isPigProtein="false" isPigEarthfruit="false" />
    
          <fillType name="compost" pricePerLiter="0.8" showOnPriceTable="true" litersPerSecond="0.3244" massPerLiter="800" useForSpray="true" sprayerCategorys="manureSpreader" toCategorys="true" fillTypeCategorys="bulk liquid windrow piece combine forageHarvester forageWagon slurryTank fork trainWagon augerWagon" hasMaterials="true" hasParticles="true" useHeap="true" isCowBasefeed="false" isCowGrass="false" isCowPower="false" isCowWindrow="false" isCowLiquid="false" isSheepGrass="false" isSheepLiquid="false" isPigBasefeed="false" isPigGrain="false" isPigProtein="false" isPigEarthfruit="false" />
    
          <fillType name="sand" pricePerLiter="0.8" showOnPriceTable="true" litersPerSecond="0.0060" massPerLiter="1000" useForSpray="false" sprayerCategorys="spreader" hasGroupUnknown="true" hasGroupBulk="true" hasGroupLiquid="false" hasGroupWindrow="false" hasGroupPiece="false" hasGroupCombine="false" hasGroupForageHarvester="false" hasGroupForageWagon="false" hasGroupSlurryTank="false" hasGroupFork="false" hasGroupTrainWagon="false" hasGroupAugerWagon="true" hasMaterials="true" hasParticles="true" useHeap="true" isCowBasefeed="false" isCowGrass="false" isCowPower="false" isCowWindrow="false" isCowLiquid="false" isSheepGrass="false" isSheepLiquid="false" isPigBasefeed="false" isPigGrain="false" isPigProtein="false" isPigEarthfruit="false" />
    
          <!--<addFruitcategory name="wheat" toCategory="maizeheader" />  Examples for add Giants Fruits to new FruitType Categorys -->
          <!--<addFillcategory name="fertilizer" toCategory="trainWagon" />  Examples for add Giants Fruits to new FillType Categorys -->
        </AdditionalMapTypes>
       
        Informations about the Texture Filenames
        Hud Texture Format: DTX5 256x256px and small DTX5 64x64px
        Hud Textures Filename-Format:
        for FruitTypehuds: hud_fruit_rye.dds and hud_fruit_rye_small.dds
        for FillTypehuds: hud_fill_sand.dds and hud_fill_sand_small.dds
        for Windrow Types: hud_oat_windrow.dds and hud_oat_windrow_small.dds
       
        GroundTip Texture Formats:
        diffuse DTX5 use MipMap 512x512px
        normal DTX1 use MipMap 512x512px
        distance DTX1 use MipMap 256x256ps
       
        GroundTip Textures Filename-Format:
        for diffuse Textures: lime_diffuse.dds
        for normal Textures: lime_normal.dds
        for distance Textures: limeDistance_diffuse.dds
       
        Includes Samples for Fillplanes Materialholders and ParticleSystem
    
    
    For Debugging:
    set DebugEbene: 1; for Debug Lines from FruitTypes,
    set DebugEbene: 2; for Debug Lines from FillTypes,
    set DebugEbene: 3; for Debug Lines from New Categorys,
    set DebugEbene: 4; for Debug Lines from Add Giants Fruit or FillTypes to Category,
    set DebugEbene: 5; for Debug Lines from Register Animal FoodGroup with Fruit as Food,
    set DebugEbene: 6; for Debug Lines from Animal Data Set,
    set DebugEbene: 10; for Debug Lines from All.
    --]]
    I think here is covered all you need to include new fruit types.

    And you can see too how the author applied the scripts in the map.
     
    Dirtracer00 and Toranion like this.
  3. Toranion

    Toranion Member

    Last edited: Feb 13, 2017
  4. Carl

    Carl Site Fiddler Staff Member SOB Modding

    Toranion likes this.
  5. Toranion

    Toranion Member

    Last edited: Feb 13, 2017
  6. Toranion

    Toranion Member

    I have also notice you made a video @Carl so i'll be watching that also
     
    ShermyPermy likes this.
  7. ShermyPermy

    ShermyPermy Captain Break It Staff Member Media Staff SOB Modding

    just 1 suggestion; cover your eyes when watching the vid otherwise they might start bleeding a titsybitsy :)
     
    Toranion likes this.
  8. Toranion

    Toranion Member

    ShermyPermy likes this.

Share This Page