How To – Edit a resource

I don’t know if it is possible to add a new resource. Other people seem to have been having as much trouble as I have on this so this guide can only tell you how to edit an existing resource.

The files you will have to edit are:

In Data\ folder:
- descr_sm_resources.txt - Contains trade value and icons for resources

In Data\Text\ folder:
strat.txt - Contains the text names of resources
tooltips.txt - Contains the text which appears when you mouse over a resource.

Important Folders:

Data\models_strat - Contains models for resources
Data\models_strat\textures - Contains textures for models of resources
Data\UI\RESOURCES - Contains icons for resources

This part of the ‘How To’ is divided into two parts: Editing the name and editing the value.

Part 1: Editing the name of a resource.

Fist go to Data\text and open strat.txt.
The names of the resources are listed as below, scroll down or search for them.

Code:
 {SMT_RESOURCE_IRON}						Iron
{SMT_RESOURCE_POTTERY}						Pottery
{SMT_RESOURCE_FURS}						Furs
{SMT_RESOURCE_GRAIN}						Grain
{SMT_RESOURCE_TIMBER}						Timber
{SMT_RESOURCE_ELEPHANT}					Elephants
{SMT_RESOURCE_CAMEL}						Camels
{SMT_RESOURCE_DOG}						Dogs
{SMT_RESOURCE_PIG}						Pigs
{SMT_RESOURCE_OLIVE_OIL}					Olive Oil
{SMT_RESOURCE_WINE}						Wine
{SMT_RESOURCE_SLAVES}						Slaves
{SMT_RESOURCE_GLASS}						Glass
{SMT_RESOURCE_MARBLE}						Marble
{SMT_RESOURCE_TEXTILES}					Textiles
{SMT_RESOURCE_PURPLE_DYE}					Purple Dye
{SMT_RESOURCE_INCENSE}						Incense
{SMT_RESOURCE_SILK}						Silk
{SMT_RESOURCE_WILD_ANIMALS}					Wild Animals
{SMT_RESOURCE_HIDES}						Hides
{SMT_RESOURCE_TIN}						Tin
{SMT_RESOURCE_COPPER}						Copper
{SMT_RESOURCE_LEAD}						Lead
{SMT_RESOURCE_AMBER}						Amber
Edit the names on the right, but as usual, don’t edit the names on the left. Save and quit.

Now go to tooltips.txt. This file contains the messages that appear when you move you mouse onto a resource. They are listed as below. Search for them and edit away.

Code:
 {TMT_SILVER_TOOLTIP}					Silver Mines can be constructed at the nearby settlement
{TMT_GOLD_TOOLTIP}					Gold Mines can be constructed at the nearby settlement
{TMT_IRON_TOOLTIP}					Iron - a valuable trade resource
{TMT_GRAIN_TOOLTIP}					Grain - a valuable resource\nAdds to population growth at export destination
{TMT_OLIVE_OIL_TOOLTIP}					Olive Oil - a valuable trade resource
{TMT_WINE_TOOLTIP}					Wine - a valuable trade resource
{TMT_SLAVES_TOOLTIP}					Slaves - a valuable resource\nAdds to population growth at export destination
{TMT_GLASS_TOOLTIP}					Glass - a valuable trade resource
{TMT_POTTERY_TOOLTIP}					Pottery - a valuable trade resource
{TMT_TIMBER_TOOLTIP}					Timber - a valuable trade resource
{TMT_MARBLE_TOOLTIP}					Marble  - a valuable trade resource
{TMT_TEXTILES_TOOLTIP}					Textiles  - a valuable trade resource
{TMT_PURPLE_DYE_TOOLTIP}					Purple Dye  - a valuable trade resource
{TMT_INCENSE_TOOLTIP}					Incense - a valuable trade resource
{TMT_SILK_TOOLTIP}					Silk - a valuable trade resource
{TMT_WILD_ANIMALS_TOOLTIP}					Wild Animals - a valuable trade resource
{TMT_HIDES_TOOLTIP}					Hides - a valuable trade resource
{TMT_FURS_TOOLTIP}					Furs - a valuable trade resource
{TMT_TIN_TOOLTIP}					Tin - a valuable trade resource
{TMT_COPPER_TOOLTIP}					Copper - a valuable trade resource
{TMT_LEAD_TOOLTIP}					Lead - a valuable trade resource
{TMT_AMBER_TOOLTIP}					Amber - a valuable trade resource
{TMT_PIGS_TOOLTIP}					Allows the training of incendiary pig units
{TMT_DOGS_TOOLTIP}					Allows the training of war dog units
{TMT_CAMELS_TOOLTIP}					Allows the training of camel-mounted units
{TMT_ELEPHANTS_TOOLTIP}					Allows the training of elephant units
Save and quit. That’s all you need to do to edit the name of a resource.

Part 2: Editing the trade value of a resource.

In the Data\ folder, open up descr_sm_resources.txt
Here there should be a list of all the resources in this format:

Type
Value
Campaign Map Model
Icon

For example

Code:
 type				gold
trade_value			15
item				data/models_strat/resource_gold.CAS
icon				data/ui/resources/resource_gold.tga
To change the trading value of a resource, simply change the number. Here is some indication of what the values mean:

0 =Can’t be traded (e.g. dogs)
2 = Cheap (e.g. textiles)
5 = Moderate (e.g. olive oil)
7 = Dear (e.g. marble)
10 = Expensive (e.g. silver)
15 = Precious (e.g. gold)

Save and quit, end of part 2.