Differences

This shows you the differences between two versions of the page.

Link to this comparison view

paintabletrees [2017/05/24 14:27] (current)
Line 1: Line 1:
 +====== How To Add Paintable Trees To Maps ======  ​
  
 +Game Version: ​ FS13 and later\\
 +GE Version: ​ 5.x and later
 +
 +----
 +
 +[[modding_tutorials|Modding Index]] | [[map_making|Map Making Tutorials]]
 +
 +----
 +
 +===== Intro =====
 +
 +In this tutorial you will learn how to add paint able trees to your map
 +
 +===== Prep Work =====
 +
 +  * Have giants editor installed
 +  * Download the files - http://​fs-uk.com/​mods/​view/​33902
 +  * Sit back and have a cup of hot chocolate
 +  * Notepad++/​or equivalent ​
 +
 +===== Full Details =====
 +
 +First you  need to open the map01i3d file with Notepad++ or a similar program.
 +Next you will need to insert the following two lines below into the map01.i3d.
 +At the top of the .i3d you will see a section named as <​Files>​ Copy and paste the two lines into that section and it should look like the following in the picture Below (These are for the texture path of the Paintable trees)
 +
 +<​code>​
 +<File fileId="​3050"​ filename="​map01/​treesNadel2_density.png"​ relativePath="​true"/>​
 +<File fileId="​3070"​ filename="​textures/​foliage/​foliage_treesNadel2_diffuse.png"​ relativePath="​true"/>​
 +</​code>​
 +http://​image.noelshack.com/​fichiers/​2014/​11/​1394735902-01.png
 +
 +Now you need to search for the <​Materials>​ section it should just be below the <​Files>​ area. You now need to copy the following and paste it in that Section
 +<​code>​
 +<​Material name="​foliage_treesNadel2_mat"​ materialId="​3060"​ ambientColor="​1.5 1.5 1.5" customShaderId="​355">​
 +<Texture fileId="​3070"/>​
 +<​CustomParameter name="​fadeStartEnd"​ value="​225 300 0 0"/>​
 +</​Material>​
 +</​code>​
 +http://​image.noelshack.com/​fichiers/​2014/​11/​1394735904-02.png
 +    ​
 +Now you will have to look for the following yours might be different <File fileId="​86"​ filename="​shaders/​solidFoliageShader.xml"​ relativePath="​true"/>​ you will find this in the <​Files>​ Section near the top. Now you will have to get the file-id of the following line In my case its 86 for me, 
 +   
 +http://​image.noelshack.com/​fichiers/​2014/​11/​1394735906-03.png
 +   
 +Now go back down to where you inserted the Lines in the Material Section and look for the customShaderId="​86">​
 +And type in the number you got from the SolidFoliageShader and insert it in their  ​
 +
 +It Should now look like the following below. ​
 +
 +http://​image.noelshack.com/​fichiers/​2014/​11/​1394735907-04.png
 +
 +The Following below needs to be inserted in the </​FoliageMultiLayer>​ at the bottom If you use the search function a search for FoliageMultiLayer you will find it easily.
 +
 +<​code>​
 +<​FoliageMultiLayer densityMapId="​3050"​ numChannels="​1"​ numTypeIndexChannels="​0">​
 +      <​FoliageSubLayer name="​treesTanne2"​ numDensityMapChannels="​1"​ materialId="​3060"​ cellSize="​8"​ viewDistance="​300"​ terrainOffset="​-0.8"​ objectMask="​65520"​ atlasSize="​2"​ numBlocksPerUnit="​0.25"​ width="​10.5"​ height="​10.5"​ widthVariance="​0.1"​ heightVariance="​3"​ horizontalPositionVariance="​5"/>​
 +    </​FoliageMultiLayer></​code>​
 +    ​
 +Once you have done that it should now look like this 
 +
 +http://​image.noelshack.com/​fichiers/​2014/​11/​1394735909-05.png
 +
 +You now can save and exit from The map01.i3d as you are done in their
 +
 +Download the following link provided. You will need to Extract from the Paintabletrees.Zip in order to get the texture files.
 +
 +Once you have done that Go in to the Move To Map01  Located at User>Map Name Here>​Map>​map01 Folder and copy the GRLE File and paste it in your map01 folder belonging to your map.
 +
 +Next you need to also need to copy the  foliage_treesNadel2_diffuse.dds file which will be in the folder Move to Textures-Foliage Folder and you  will need to paste this in your  Foliage Folder ​ User>Map Name Here>​Map>​Textures>​Foliage.
 +
 +
 +Once you have done all of the following you can now go into GE (Giants Editor) and you should be able to paint on some Trees!
 +
 +----
 +
 +Original Author: ​ SEAN6920S | Date: March 13, 2014
 +        ​
 +[[modding_tutorials|Modding Index]] | [[map_making|Map Making Tutorials]]