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 "How to add a province/change settlement names"

From TWC Wiki
Jump to navigationJump to search
(New page: Scriptorium Article : Coming Soon!)
 
m (Text replacement - "http://www.twcenter.net" to "https://www.twcenter.net")
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Scriptorium Article : Coming Soon!
+
This article is based on [https://www.twcenter.net/forums/showthread.php?t=33332  Adding a new province and changing a cities name] the original article was written by [[Seleukos]] and imported with his permission as part of the [[Scriptorium]] project.  The article may have been altered since import - please refer to the history page for details of changes, or reference the original document.
 +
 
 +
==To add more provinces==
 +
The list of files to be altered and their paths are as follows (make a back up of these):
 +
 
 +
*Data/World/Maps/Base/[[map_regions.tga]]
 +
*Data/world/maps/base/[[descr_regions.txt]]
 +
*Data/world/maps/campaign/imperial_campaign (or your created provincial campaign)/[[descr_strat.txt]]
 +
*Data/world/maps/campaign/imperial_campaign (or your created provincial campaign)/[[descr_mercenaries.txt]]
 +
*Data/world/maps/campaign/imperial_campaign (or your created provincial campaign)/[[descr_regions_and_settlement_name_lookup.txt]]
 +
*Data/text/imperial_campaign_regions_and_settlement_names.txt (if adding to a provincial campaign, create a copy of this file, and replace 'imperial_campaign' with whatever is at the top of your descr_strat.txt file across from the campaign title).
 +
 
 +
1) Delete the [[map.rwm]] file and the [[map_heights.hgt]] file in your Data/world/maps/base folder.
 +
 
 +
2) Open the [[map_regions.tga]] file in whatever photo editing program you use. Examples are Adobe Photoshop or Paint Shop Pro. On this image, each province in the game is coloured differently from the other. Zoom in, and with the pencil tool, re-colour a portion of the world map, wherever you want your new province to be, with a new colour. Make sure you keep the current land form intact (don't put a province on the water, in other words). Put a black dot wherever you want the settlement to be, and a white dot wherever you want the port to be. Make sure the port is alongside the water, and make sure, for land locked provinces, that there is NO port.
 +
 
 +
3) On the colour panel of whatever photo editing tool you're using, note the RGB values of the colour. In Adobe Photoshop, there should be three little sliders, and to the right of them, three boxes with separate numbers. These allow the game to figure out where the new province is on the world map.
 +
 
 +
4) Open [[descr_regions.txt]]. Copy one of the current entries (such as the top Britannia_Inferior one) and paste it at the very bottom. Change the top name (Britannia_Inferior) to the name of the province that you want. Change the name below that (the city name) to whatever you want the settlement to be named in this province. Three lines below that you should see three groups of numbers (232 41 198 for Britannia_Inferior). These are those RGB values you noted earlier. Put in the ones for your province.
 +
 
 +
5) Go to your [[descr_strat.txt]] file. Copy a settlement that already exists, and paste it in the list of settlements for the faction that you want to own it. So, under the Romans_Julii faction, you would copy this:
 +
 
 +
  settlement
 +
  {
 +
  level large_town
 +
  region Etruria
 +
 
 +
  year_founded 0
 +
  population 4000
 +
  settlement_tax 51
 +
  plan_set default_set
 +
  faction_creator romans_julii
 +
  building
 +
  {
 +
  type barracks militia_barracks
 +
  }
 +
  building
 +
  {
 +
  type core_building governors_villa
 +
  }
 +
  building
 +
  {
 +
  type port_buildings port
 +
  }
 +
  building
 +
  {
 +
  type defenses wooden_pallisade
 +
  }
 +
  building
 +
  {
 +
  type hinterland_farms farms
 +
  }
 +
  building
 +
  {
 +
  type hinterland_roads roads
 +
  }
 +
  }
 +
 
 +
 
 +
Then, paste that under the settlement list for whatever faction you wanted your new province to belong to. Edit the region name to be your new provinces name. Edit in or out any buildings you want this settlement to have, and slo the population you want it to start with. Make sure that's all in the correct format. Compare it to other settlements to make sure it's all in correctly and not missing anything.
 +
 
 +
6) Open [[descr_mercenaries.txt]]. Put the name of your new province next to the name of the other provinces you want the listed mercenaries recruitable in. For example:
 +
 
 +
  pool Cisapline_Gaul
 +
  regions Cisalpine_Gaul Venetia Noricum Raetia NEW_PROVINCE_HERE
 +
  unit merc barbarian cavalry, exp 0 cost 800 replenish 0.06 - 0.15 max 1 initial 0
 +
  unit merc barbarian infantry, exp 0 cost 800 replenish 0.05 - 0.25 max 4 initial 0
 +
 
 +
7) Open descr_regions_and_settlement_name_lookup.txt. At the very bottom of this list, put the name of your province, and below that, the name of your settlement.
 +
 
 +
8) Finally, open the name_of_your_campain_regions_and_settlement_names_ lookup.txt in the Data/text folder. Copy one of the extisting names (such as {Hibernia} Hibernia) and paste this at the VERY bottom of the file. Adjust the both names (the one instead the curly brackets, and the oens without) to the name of your province. Then, paste it again below that, and this time rename them to the name of your added settlement.
 +
 
 +
 
 +
You should now have an added province in your game. Load it up and see. If it doesn't work, make sure there are no spelling mistakes. If it still doesn't, restore all the fields and try again, but with a province somewhere else.
 +
 
 +
==To change a city name==
 +
Go to the name_of_your_campaign_regions_and_settlement_names.txt in the Data/text folder. Find the city you want to edit. Edit the name outside of the brackets. Do not edit the one inside, if you do, it will CTD. Thats all to it.
 +
 
 +
 
 +
{{permitted|link location=[https://www.twcenter.net/forums/showthread.php?t=33332  TWC Tutorial]|Name=[[Seleukos]]}}
 +
 
 +
[[Category:RTW Campaign Map Modding]]
 +
[[Category:M2TW Campaign Map Modding]]

Latest revision as of 07:42, 15 February 2020

This article is based on Adding a new province and changing a cities name the original article was written by Seleukos and imported with his permission as part of the Scriptorium project. The article may have been altered since import - please refer to the history page for details of changes, or reference the original document.

To add more provinces

The list of files to be altered and their paths are as follows (make a back up of these):

  • Data/World/Maps/Base/map_regions.tga
  • Data/world/maps/base/descr_regions.txt
  • Data/world/maps/campaign/imperial_campaign (or your created provincial campaign)/descr_strat.txt
  • Data/world/maps/campaign/imperial_campaign (or your created provincial campaign)/descr_mercenaries.txt
  • Data/world/maps/campaign/imperial_campaign (or your created provincial campaign)/descr_regions_and_settlement_name_lookup.txt
  • Data/text/imperial_campaign_regions_and_settlement_names.txt (if adding to a provincial campaign, create a copy of this file, and replace 'imperial_campaign' with whatever is at the top of your descr_strat.txt file across from the campaign title).

1) Delete the map.rwm file and the map_heights.hgt file in your Data/world/maps/base folder.

2) Open the map_regions.tga file in whatever photo editing program you use. Examples are Adobe Photoshop or Paint Shop Pro. On this image, each province in the game is coloured differently from the other. Zoom in, and with the pencil tool, re-colour a portion of the world map, wherever you want your new province to be, with a new colour. Make sure you keep the current land form intact (don't put a province on the water, in other words). Put a black dot wherever you want the settlement to be, and a white dot wherever you want the port to be. Make sure the port is alongside the water, and make sure, for land locked provinces, that there is NO port.

3) On the colour panel of whatever photo editing tool you're using, note the RGB values of the colour. In Adobe Photoshop, there should be three little sliders, and to the right of them, three boxes with separate numbers. These allow the game to figure out where the new province is on the world map.

4) Open descr_regions.txt. Copy one of the current entries (such as the top Britannia_Inferior one) and paste it at the very bottom. Change the top name (Britannia_Inferior) to the name of the province that you want. Change the name below that (the city name) to whatever you want the settlement to be named in this province. Three lines below that you should see three groups of numbers (232 41 198 for Britannia_Inferior). These are those RGB values you noted earlier. Put in the ones for your province.

5) Go to your descr_strat.txt file. Copy a settlement that already exists, and paste it in the list of settlements for the faction that you want to own it. So, under the Romans_Julii faction, you would copy this:

 settlement 
 { 
 level large_town 
 region Etruria 
 
 year_founded 0 
 population 4000 
 settlement_tax 51 
 plan_set default_set 
 faction_creator romans_julii 
 building 
 { 
 type barracks militia_barracks 
 } 
 building 
 { 
 type core_building governors_villa 
 } 
 building 
 { 
 type port_buildings port 
 } 
 building 
 { 
 type defenses wooden_pallisade 
 } 
 building 
 { 
 type hinterland_farms farms 
 } 
 building 
 { 
 type hinterland_roads roads 
 } 
 }


Then, paste that under the settlement list for whatever faction you wanted your new province to belong to. Edit the region name to be your new provinces name. Edit in or out any buildings you want this settlement to have, and slo the population you want it to start with. Make sure that's all in the correct format. Compare it to other settlements to make sure it's all in correctly and not missing anything.

6) Open descr_mercenaries.txt. Put the name of your new province next to the name of the other provinces you want the listed mercenaries recruitable in. For example:

 pool Cisapline_Gaul 
 regions Cisalpine_Gaul Venetia Noricum Raetia NEW_PROVINCE_HERE 
 unit merc barbarian cavalry, exp 0 cost 800 replenish 0.06 - 0.15 max 1 initial 0 
 unit merc barbarian infantry, exp 0 cost 800 replenish 0.05 - 0.25 max 4 initial 0

7) Open descr_regions_and_settlement_name_lookup.txt. At the very bottom of this list, put the name of your province, and below that, the name of your settlement.

8) Finally, open the name_of_your_campain_regions_and_settlement_names_ lookup.txt in the Data/text folder. Copy one of the extisting names (such as {Hibernia} Hibernia) and paste this at the VERY bottom of the file. Adjust the both names (the one instead the curly brackets, and the oens without) to the name of your province. Then, paste it again below that, and this time rename them to the name of your added settlement.


You should now have an added province in your game. Load it up and see. If it doesn't work, make sure there are no spelling mistakes. If it still doesn't, restore all the fields and try again, but with a province somewhere else.

To change a city name

Go to the name_of_your_campaign_regions_and_settlement_names.txt in the Data/text folder. Find the city you want to edit. Edit the name outside of the brackets. Do not edit the one inside, if you do, it will CTD. Thats all to it.


Initial content for this article was based on: TWC Tutorial

Posted here with the permission of the original author: Seleukos

Please note that the content may have been altered since import. Subsequent amendments are welcome but are not the responsibility of the original author.