Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Difference between revisions of "Ground types settlement plan"

From TWC Wiki
Jump to navigationJump to search
Line 13: Line 13:
 
<br>
 
<br>
 
The ''-288 -288 288 288'' is the positioning of this file and the scale. You can use this in your 3d editor and create a plane with length and width being 576, and applying this .tga
 
The ''-288 -288 288 288'' is the positioning of this file and the scale. You can use this in your 3d editor and create a plane with length and width being 576, and applying this .tga
 
 
<br>
 
<br>
 
  
 
[[File:Roman town ground.tga.jpg|500px|Roman town ground.tga]]
 
[[File:Roman town ground.tga.jpg|500px|Roman town ground.tga]]
Line 53: Line 51:
 
==Rendering ground_types for your custom settlement==
 
==Rendering ground_types for your custom settlement==
 
You can paint the ground_type file by hand (which is the easiest way), but some of us (like me) are lazy and want things as perfect as possible.<br>
 
You can paint the ground_type file by hand (which is the easiest way), but some of us (like me) are lazy and want things as perfect as possible.<br>
This section describes how to use the '''3ds Max''' renderer to create a template.
+
This section describes how to use the '''3ds Max''' renderer to create a template. <br>
 
 
 
There is some accuracy offset for the .tga and in game usage. Probably the game uses a `pixel + 1` thing internally to render the ground types. So keep that in mind when you paint it yourself.
 
There is some accuracy offset for the .tga and in game usage. Probably the game uses a `pixel + 1` thing internally to render the ground types. So keep that in mind when you paint it yourself.
In Rome Remastered you do not need to restart the whole game after you edit an used ground_types .tga, so restarting your custom battle after the changes will help you a lot.
+
In Rome Remastered you do not need to restart the whole game after you edit an used ground_types .tga, so restarting your custom battle after the changes will help you a lot. <br><br>
<br>
 
 
 
 
Please note that the following method is not 100% accurate, as described above, but I tried to make it as accurate as possible. So next section is about rendering in 3ds Max. I don't use Blender so you have to find a way with it yourself if you use Blender.
 
Please note that the following method is not 100% accurate, as described above, but I tried to make it as accurate as possible. So next section is about rendering in 3ds Max. I don't use Blender so you have to find a way with it yourself if you use Blender.
  
Line 65: Line 60:
  
 
https://i.imgur.com/g0dpDYf.jpg
 
https://i.imgur.com/g0dpDYf.jpg
 +
<br>
 
Now you want to hide every scene part that you do not want to render ground types for. I keep most of the overlays and some buildings without overlay visible. Also make sure you are on top view:
 
Now you want to hide every scene part that you do not want to render ground types for. I keep most of the overlays and some buildings without overlay visible. Also make sure you are on top view:
  
 
https://i.imgur.com/50CsynM.png
 
https://i.imgur.com/50CsynM.png
 +
<br>
  
 
==== 2. Creating the Render plane ====
 
==== 2. Creating the Render plane ====
Line 78: Line 75:
 
So '''416 * 2 + 1 = 833'''.
 
So '''416 * 2 + 1 = 833'''.
 
Make sure to hide this plane, but have it selected. This plane will be used for the renderer to render a region for blowup.
 
Make sure to hide this plane, but have it selected. This plane will be used for the renderer to render a region for blowup.
 
+
<br>
 
==== 3. Render Setup ====
 
==== 3. Render Setup ====
 
Now open the 3ds Max render window ('''F9'''), and open the ''Render Setup'' window.
 
Now open the 3ds Max render window ('''F9'''), and open the ''Render Setup'' window.
 
Make sure your output render will be sized '''512x512''' (or another factor of 2):
 
Make sure your output render will be sized '''512x512''' (or another factor of 2):
 +
<br>
 
https://i.imgur.com/MDcDxW9.png
 
https://i.imgur.com/MDcDxW9.png
 +
<br>
 
Now close the Render Setup window, and make sure you select '''Blowup''' under the dropdown 'Area to Render:'
 
Now close the Render Setup window, and make sure you select '''Blowup''' under the dropdown 'Area to Render:'
 
Next make sure you have the created plane selected, and click on the 'Auto Region Selected' button
 
Next make sure you have the created plane selected, and click on the 'Auto Region Selected' button
 +
<br>
 
https://i.imgur.com/EMf9wZW.png
 
https://i.imgur.com/EMf9wZW.png
 
<br>
 
<br>

Revision as of 08:48, 6 November 2023

Rome:Total War & Remastered - Modding Index


This article is about ground_types that are used inside settlements in Rome Total War and Rome Total War: Remastered.

ground_types

A settlement plan ground_type file can be found under data\settlement_plans\ground_types. It is a .tga file that is used inside a settlement plan, and tells the game what sounds to produce when a soldier walks/runs over that given section. It will also disable/enable grass render for certain ground types.

Most of the example images are sized 512x512, but I suspect any size of factor 2 will work.
The .tga file is being referenced inside a settlement plan. It has its own line after the floor.

ground_types roman_town_ground.tga -288 -288 288 288


The -288 -288 288 288 is the positioning of this file and the scale. You can use this in your 3d editor and create a plane with length and width being 576, and applying this .tga

Roman town ground.tga

You can paint different colours in here, but thanks to Feral we know what each color means.

Type RGB Color
Use Underlay { 255, 255, 255 }
 
Short Grass { 0, 255, 0 }
 
Long Grass { 0, 166, 0 }
 
Mud { 255, 0, 255 }
 
Sand { 171, 160, 0 }
 
Stone Road { 0, 255, 255 }
 
Stone Road (Walls) { 198, 156, 109 }
 
Stone Road (Pavement) { 0, 174, 239 }
 
Grass Short (Wheat Field) { 255, 255, 0 }
 
Grass Short (Vegetation) { 0, 166, 81 }
 
Stone Road (Building) { 0, 0, 0, }
 
Underlay Topographical (uses underlying topographical type?) { 255, 127, 255 }
 

Rendering ground_types for your custom settlement

You can paint the ground_type file by hand (which is the easiest way), but some of us (like me) are lazy and want things as perfect as possible.
This section describes how to use the 3ds Max renderer to create a template.
There is some accuracy offset for the .tga and in game usage. Probably the game uses a `pixel + 1` thing internally to render the ground types. So keep that in mind when you paint it yourself. In Rome Remastered you do not need to restart the whole game after you edit an used ground_types .tga, so restarting your custom battle after the changes will help you a lot.

Please note that the following method is not 100% accurate, as described above, but I tried to make it as accurate as possible. So next section is about rendering in 3ds Max. I don't use Blender so you have to find a way with it yourself if you use Blender.

1. Settlement Plan Scene

This might be obvious for all settlement modders out there, but I always make a scene where I put everything together. Underlays, overlays and also buildings. Check the example below for my German Large Town for Total War: 1942 mod:

g0dpDYf.jpg
Now you want to hide every scene part that you do not want to render ground types for. I keep most of the overlays and some buildings without overlay visible. Also make sure you are on top view:

50CsynM.png

2. Creating the Render plane

Now create a new plane, make sure its position is x:0 y:0, and use the size you defined in your settlement for your ground plan and calculate the plane width and height. For example, in the above scene I want to make ground types for the German Large Town. I defined it like this:

ground_types 1942_german_large_town_ground.tga -416 -416 416 416

Multiply the values with factor 2, and add another 1 unit to the plane's width and height. So 416 * 2 + 1 = 833. Make sure to hide this plane, but have it selected. This plane will be used for the renderer to render a region for blowup.

3. Render Setup

Now open the 3ds Max render window (F9), and open the Render Setup window. Make sure your output render will be sized 512x512 (or another factor of 2):
MDcDxW9.png
Now close the Render Setup window, and make sure you select Blowup under the dropdown 'Area to Render:' Next make sure you have the created plane selected, and click on the 'Auto Region Selected' button
EMf9wZW.png
Now click Render

You can now save or copy this render to Photoshop