4/9/2023 0 Comments Giants map editor![]() Copy those lines over to the section of replacementTexturesMaterialHolder.i3d and replace fileId in both File and Material definition with the same unique value. For each of the fileIds refferenced in the material section locate the corresponding line by searching after fileId=”XXX” from the top of the maps i3d file.From the top of the maps i3d file search for materialId=”XXX” and copy from to and add that in the section of replacementTexturesMaterialHolder.i3d.Take note of the value after materialIds, say XXX. Search for the objects name in the i3d file and locate the actually mesh that you want to modify.Take note of both the object, and the actual mesh that you want to modify. Open the map in Giants editor and find an object of the type that you want to add seasonal textures to.Start by opening the map i3d file in a text editor windows and the replacementTexturesMaterialHolder.i3d in an other.Create a file seasons_textures.xml in the toplevel folder of your map mod and edit it using a text editor as follows obviously using values for shapeName, secondaryNodeName and to as appropriate for your map and placeholder.Edit replacementTexturesMaterialHolder.i3d so only the skeleton remains as follows:.Copy replacementTexturesMaterialHolder.i3d and from the directory “resources/replacementTextures” in the seasons mod to that resources folder.This is where you will store the season specific texture files. Create a textures folder and subfolders in it for each season like textures/autumn, textures/spring and textures/winter.Create a folder resources in the top level folder of your map.If you have trees that do not have replacements (for example, FS15 trees, or CPF bushes), you can add your own replacement textures. ![]() Adding texture replacementsīy default, Seasons will replace textures for all default FS17 trees. Take it slowly and methodically doing one season for one material at a time and get that working before continuing to the next.Įxcept for seasons_textures.xml you could use different file and directory name as long as you edit the files accordingly but I will not point out where to do those changes but rather stick to one way of doing it in this example. You can use data/textures.xml and the files under resources/replacementTextures in the Seasons mod for examples of what’s possible. This procedure is a little tricky and I can recommend using a map with custom texture replacements like “Dusty Cove” by DustyDave available on the modhub as an example. If that has not been done it is possible to make a Seasons Texture Mod (STM), as can be found on our GitHub for a couple of popular maps. Ideally, a map maker incorporates it into the map. Like any other XML-part we have in Seasons, there are two ways to get new replacement visuals in the game: by adding it to the map or by making a separate mod. At last there is an XML file that defines what shapes are used as replacement in each season. To keep them around they have to be bound to a shape. To be able to replace textures in the game, the textures need to be loaded into materials. The trees could be bare for longer after winter if the temperatures have been too cold. Note: Even though it is season dependent, the autumn, spring and winter textures might be shown earlier or later, depending on the temperatures. The texture replacement system is actually a material replacement system so if you want you can change things like shaders and shader parameters between seasons. ssSetVisualSeason sets the visual season, where is autumn, summer, winter, spring.ssResetSnow removes all snow on the map.To help you test your map there are 4 console commands: You can configure specific objects to be visible only in some seasons.You can add a lake plane to lakes and rivers.You can customize the weather to fit the region of the map.You have the ability to customize how growth and animals work to fit the region of the map.If you have vegetation or other objects that you want to change textures as the seasons progresses you will have to configure texture replacements.If your map only uses giants default trees and bushes and you are content with the default tunable values from the seasons mod this might be all you have to do. Adding a snowMask to tell seasons about areas where snow should not be added.The process consists of one or more of the following steps that will be described in detail bellow. This document will guide you through the process of optimizing your map for use with the Seasons mod from RealismusModding.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |