Log in

View Full Version : How to add a new province



VikingHorde
10-15-2004, 19:42
Programs needed:
Ultimate Paint
Mithel Image Converter
java runtime environment
ReadBif

The programs can be downloaded here:
http://www.totalwar.org/Downloads/Tools.shtml


LUKUPMAP (low resolution) and LUKUPMAP2 (High resolution)
Use Ultimate Paint to edit the files. A province has two colours, one for the province and one for the border. The colours has to be in the palette below or it will not work! For my new scania province I used 123,123,159 as the main colour and 131,131,163 as the border colour.When the editing is done, the files are not ready for use yet. The palette is out of order, so to correct it I use Mithel Image Converter. In the program I load an unedited map and save the palette. Then I load the new map, load palette and then save the map.


MapTex and MapTex2 (background map)
You can edit the backgound map with most graphics programs (I use Coral Photopaint 9)


FE_MINIMAP_LUKUP (Big menu map) and MINILUKUP (Small ingame map)
The maps are in Bif format, so you will need to edit them with ReadBif. Use the palette in the program find the right number colour (I used palette colour 200). There are no borders in this map.


000 255,0,255 // this is the "pink" colour,(coast and seaborders)

Old provinces
001 143,63,63 (Province, Scotland)
002 147,67,67 (Border, Scotland)
003 155,71,71 (Province)
004 163,79,79 (Border)
005 171,83,83
006 179,91,91
007 187,99,99
008 195,103,103
009 199,111,111
010 207,119,119
011 215,123,123
012 223,131,131
013 231,139,139
014 239,147,147
015 247,155,155
016 123,111,91
017 127,115,95
018 135,123,103
019 143,131,111
020 151,139,119
021 159,143,123
022 167,151,131
023 175,159,139
024 183,167,147
025 187,171,155
026 195,179,163
027 203,187,167
028 211,195,179
029 219,203,187
030 227,211,195
031 235,219,203
032 51,115,23
033 55,119,27
034 63,127,27
035 71,135,35
036 79,143,39
037 87,151,43
038 95,155,47
039 103,163,55
040 115,171,59
041 123,179,67
042 131,187,71
043 143,191,79
044 151,199,83
045 163,207,91
046 171,215,99
047 183,223,107
048 131,0,0
049 139,0,0
050 147,0,0
051 155,0,0
052 163,0,0
053 171,0,0
054 179,0,0
055 187,0,0
056 195,0,0
057 203,0,0
058 211,0,0
059 219,0,0
060 227,0,0
061 235,0,0
062 247,0,0
063 255,0,0
064 27,27,115
065 31,31,123
066 35,35,131
067 43,43,143
068 51,47,151
069 59,55,159
070 67,63,171
071 75,71,179
072 83,79,187
073 91,87,199
074 99,99,207
075 111,107,215
076 119,115,227
077 131,127,235
078 143,139,243
079 155,151,255
080 131,131,35
081 139,139,35
082 147,147,39
083 155,155,39
084 163,163,43
085 171,171,43
086 179,179,47
087 187,187,47
088 195,195,51
089 203,203,55
090 211,211,55
091 219,219,59
092 227,227,59
093 235,235,59
094 247,247,63
095 255,255,67
096 83,67,115
097 91,71,123
098 99,79,131
099 107,87,143
100 115,95,151
101 123,99,159
102 131,107,171
103 139,115,179
104 147,123,187
105 155,131,199
106 163,139,207
107 175,147,215
108 183,155,227
109 191,163,235
110 199,175,243
111 211,183,255
112 135,99,51
113 143,103,55
114 151,111,59
115 159,119,63
116 167,127,67
117 175,135,71
118 183,147,75
119 191,155,79
120 199,163,83
121 207,171,87
122 215,179,91
123 223,187,99
124 231,199,103
125 239,207,107
126 247,215,111
127 255,227,119
128 63,107,63
129 67,111,67
130 75,119,75
131 83,123,83
132 87,131,87
133 95,139,95
134 103,143,103
135 111,151,111
136 119,155,119
137 127,163,127
138 139,171,139
139 147,175,147
140 155,183,155
141 167,187,167
142 175,195,175
143 187,203,187
144 119,67,67
145 123,71,71
146 131,79,79
147 135,83,83
148 143,91,91
149 147,99,99
150 155,107,107
151 159,115,115
152 167,123,123
153 171,131,131
154 179,139,139
155 183,147,147
156 191,159,159
157 199,167,167
158 203,175,175
159 211,187,187
160 107,63,107
161 111,67,111
162 119,75,119
163 127,83,127
164 131,87,131
165 139,95,139
166 147,103,147
167 151,111,151
168 159,119,159
169 167,127,167
170 171,139,171
171 179,147,179
172 187,155,187
173 191,167,191
174 199,175,199
175 207,187,207
176 63,107,107
177 67,111,111
178 75,119,119
179 83,123,123
180 87,131,131
181 95,139,139
182 103,143,143
183 111,151,151
184 119,155,155
185 127,163,163
186 139,171,171
187 147,175,175
188 155,183,183
189 167,187,187
190 175,195,195
191 187,203,203
192 67,67,111
193 71,71,115
194 79,79,123
195 83,83,127
196 91,91,135
197 99,99,139
198 107,107,147 (Main Colour, Sicily)
199 115,115,151 (Border Colour, Sicily)

Free colours for new provinces
200 123,123,159 (Main Colour, Scania)
201 131,131,163 (Border Colour, Scania)
202 139,139,171
203 147,147,175
204 159,159,183
205 167,167,191
206 175,175,195
207 187,187,203
208 171,91,19
209 175,95,23
210 179,99,31
211 187,107,35
212 191,111,43
213 199,119,51
214 203,127,59
215 207,131,67

Sea "provinces"
216 215,139,75 (North Atlantic)
217 219,147,83
218 227,155,91
219 231,163,103
220 235,171,111
221 243,179,119
222 247,183,131
223 255,195,143
224 119,71,51
225 127,75,55
226 135,87,63
227 143,95,71
228 155,103,79
229 163,111,87
230 171,119,95
231 179,131,103
232 191,139,115
233 199,151,123
234 207,159,135
235 219,171,143
236 227,179,155
237 235,191,167
238 243,203,179
239 255,215,191
240 107,107,107
241 115,115,115
242 123,123,123
243 131,131,131
244 139,139,139
245 151,151,151
246 159,159,159
247 167,167,167
248 175,175,175
249 183,183,183
250 195,195,195
251 0,255,255
252 1,255,255
253 2,255,255
254 3,255,255
255 239,239,239

-------------------------------------------------------------------------------

The era campaign files:
\Medieval - Total War\campmap\startpos\early.txt (high and late)

The new provinces to be added to the files. Here you can setup the borders, tradegoods, buildings, units ect.

Lines needed to be added in the early.txt

DeclareLandRegion:: "ID_SCANIA"

SetRegionUnfloodable:: ID_SCANIA (add the line if the province can be floded)

SetRegionUnquakeable:: ID_SCANIA (add the line if the province can't have eathquakes)

SetRegionRebels:: ID_SCANIA 88 (Name of the rebels in the province, the name is in DEFAULT_FACTION_SPECIFIC.TXT)

SetNeighbours:: (setup what provinces borders the new province)

SetBorderInfo:: (setup terrain, river)


Castle, Origin and Port coordinates:
When finding the right coordinates, I open LUKUPMAP2 with Coral Draw and find the place of an old castle (any one). Write down the coordinates and compare it with the coordinates in the early.txt. Now use the LUKUPMAP2 map and find the place you want to add the new Scania castle, write down the coordinates and use them to create the new coordinates.


SetCastle:: ID_SCANIA 14850 5056 (Setup the coordinates of the castle)

SetOrigin:: ID_SCANIA 14850 4656 (Setup origin were unit are placed in the province)

SetPort:: ID_SCANIA 14320 3720 5 (Setup the coordinates of the port and it's direction (5))

SetAttributes:: ID_SCANIA (setting up religion, rebelliousness ect.)

SetTradableGoods:: ID_SCANIA FISH WOOD (Province tradegoods, add if any)

SetResources:: ID_SCANIA IRON (Province resources, add if any)

SetRegionOwner:: FN_DANISH (Who owns the province)

AddTitle:: ID_SCANIA (setup province titel)

MakeBuilding:: ID_SCANIA (Building in the province)

MakeUnit:: ID_SCANIA (Units in the province)

---------------------------------------------------------------------

File that needs editing in \Loc\Eng

DEFAULT_FACTION_SPECIFIC.TXT


In @["rebel_factions_xzy"], add the following line last (after the Welsh):

@{"the Scanians"} (This is rebel number 88, see early.txt)

This is the name of the rebels in the region

---------------------------------------------------------------------

Another file that needs editing in \Loc\Eng

DEFAULT_REGION_SPECIFIC.TXT


In the following lines in the correct places, alway after Sicily, but before North Atlantic!:

@{"Scania"}

["Scania"] {"Scania"}

@{" of Scania"}

@{"Your Forces Invade Scania"}

@{"Scania Conquered!"}

@{"Scania Lost!"}

@{"Scania Relieved!"}

@{"Amir of Scania"}

@{"Duke of Scania"}

["Title Earl of Scania"] {"Earl of Scania"} (the titel from early.txt)

["Scania Castle_xzy"] {"Lund Castle"} (the castle from early.txt)


-------------------------------------------------------------------

File that needs editing in CAMPMAP\names

DEFAULT_HEROES.TXT

Add this line last after Sicily:

SET_REBELS:: ID_SCANIA 2 2

The first number is the choice of forename, the last is the surname. I used the danish names.

Feel free to fill the gaps ~D

dewinter
05-21-2005, 05:48
couple questions...

is there a way to remove the existant text on the text maps..

and do all of the lukemaps have to be pixal for pixal exact to one another? and if so is there a simple way to do it

thanks!

WesW
06-10-2005, 03:16
PSP's compression method screws LBM files up. The file looks fine in PSP, but when you use Mithil, you see how it's all messed up, and why all you see on the strategic map are a few blue streaks on top of the tex map.
To use PSP, you need to save the LBM as an uncompressed file, then load and save it using Mithil in order to re-compress it before inserting it into the game.

Dewinter, the text maps (tga's) are hand-drawn, so removing the provincial names has to be done manually, though you can use a graphic's program feature to create a new file with typed-in letters, and then merge it onto the tga.

The maps don't have to be matched in order to work, except for size.

For the LBM and bifs, IIRC, you can open the LBM's in Ultimate Paint, change their size as needed, then save them as bitmaps. You can then use bifreader to import the bitmap frame and save them as bifs. I think you can use either program to alter the files, but doing it with UP means you only have to do the large LBM, and then shrink it down to the other sizes.

WesW
06-17-2005, 13:28
It turns out that it was indeed the PSP method of compressing the LBM which messed it up, so make sure that when you use PSP you save it as an umcompressed file. You still need to load it into Mithil for re-compression before inserting it into the game.

I need help with the TGA's. For some reason, they don't show up correctly in the game. I tried simply opening and saving original, unedited files using both PSP and UP, and they show up in the game with a heavy purple tint, as if the hue were all screwed up.
Does anyone have any ideas here?

EatYerGreens
10-11-2005, 01:51
Useful info in this thread. Can it be stickied, please?