You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Relicensed from GPLv3 to GPLv2.
- Updated Starkku.Utilities.dll.
- Updated LCW.cs implementation.
- Moved map tool & map file logic from MapTool project to new one called MapTool.Logic.
- Moved general map file logic from MapTool to a new class called MapFile.
- Refactored map object handling, now parsed as objects.
- MapTool.UI no longer launches the command-line map tool but calls MapFileTool class directly.
- Added context menus to list boxes & logger text box in UI with options like show in file explorer, open file etc.
- Changing tabs while maps are processing is no longer allowed.
- Logger text box retains focus for as long as maps are processing.
- Select main tab when adding maps to list via drag & drop.
- Closing application while maps are being processed now prompts with a message box before closing with an option to cancel.
- Fixed an issue with calculating value ranges for tile / overlay conversion rules when only a first value declares a range.
- Tile conversion rules now accept two additional value ranges for current sub-tile indices & new sub-tile indices. Old sub-tile index override takes priority over latter if set.
- Object conversion rules now accept comma-separated list of upgrade filters, separated from the values by +. * is a wildcard and None matches an empty upgrade slot.
Copy file name to clipboardExpand all lines: Conversion-Profile-Documentation.md
+51-25Lines changed: 51 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ If set to yes / true, removes all clear tiles at lowest elevation level (0). Sin
85
85
86
86
### TileRules
87
87
88
-
A list of tile index conversion rules, each on it's own line with | as separator between source and destination value, as well as optional height override and sub-tile index override values. Can also be prefixed by a tile coordinate filter in brackets, _f.ex (X,Y)_.
88
+
A list of tile index conversion rules, each on its own line with | as separator between source and destination value, as well as optional height override and sub-tile index override values. Can also be prefixed by a tile coordinate filter in brackets, _f.ex (X,Y)_.
89
89
90
90
To assist in figuring out the numbers to use, MapTool can be run with command line parameter *-l* with a game theater configuration INI (such as temperat(md).ini) as input file to extract a listing of tiles and their tile indices to a plaintext output file.
91
91
@@ -157,12 +157,24 @@ This randomly assigns new tile index from range 25 to 45 to tiles 0-15, as well
157
157
(32,*)16-20|50-54
158
158
</pre>
159
159
160
-
Tiles 0-15 will get converted to tiles 25-40, respectively, but only at specific tile coordinate X = 25, Y = 50.
161
-
Tiles 16-20 will get converted to tiles 50-54, respectively, but only at specific tile coordinates where X = 32.
160
+
Tiles 0-15 will get converted to tiles 25-40, respectively, but only at specific tile coordinate X = 25, Y = 50.
161
+
Tiles 16-20 will get converted to tiles 50-54, respectively, but only at specific tile coordinates where X = 32.
162
+
163
+
**Example #9:**
164
+
<pre>
165
+
[TileRules]
166
+
0-15|25-40|*|*|*|0-3|1-1
167
+
16-20|50-54|*|*|*|1|2
168
+
21|60|3|*|*|1|2
169
+
</pre>
170
+
171
+
Tiles 0-15 will get converted to tiles 25-40 but only for tiles using sub-tiles 0-3, which will also get converted to using sub-tile 1.
172
+
Tiles 16-20 will get converted to tiles 50-54 but only for tiles using sub-tile 1, which will also get converted to using sub-tile 2.
173
+
Tile 21 will get converted to tile 60 but only for tiles using sub-tile 1, which gets converted to sub-tile 3 because sub-tile index override has been defined and takes precedence over the target sub-tile range which has been set to 2.
162
174
163
175
### OverlayRules
164
176
165
-
A list of overlay ID conversion rules, each on it's own line with a | as a separator between source and destination value. Can also be prefixed by a tile coordinate filter in brackets, _f.ex (X,Y)_.
177
+
A list of overlay ID conversion rules, each on its own line with a | as a separator between source and destination value. Can also be prefixed by a tile coordinate filter in brackets, _f.ex (X,Y)_.
166
178
167
179
**Example:**
168
180
<pre>
@@ -176,78 +188,92 @@ A list of overlay ID conversion rules, each on it's own line with a | as a separ
176
188
(32,*)31|53
177
189
</pre>
178
190
179
-
Overlays with ID 0 are converted to overlays with ID 5.
180
-
Overlays with ID 15 are randomly assigned new ID from range of 20 to 30, likewise for overlays with ID in range of 16 to 19.
181
-
Overlays with ID 6 will have their frame data for frames 0 to 2 changed to 12.
182
-
Overlays with ID 8 will have their frame data for frames 0 to 255 changed to randomly assigned value from 0 to 50.
183
-
Overlay with ID 20 will be converted to overlay with ID 52, but only at tile coordinate where X = 25 and Y = 50.
184
-
Overlay with ID 31 will be converted to overlay with ID 64, but only at tile coordinates where X = 32.
191
+
Overlays with ID 0 are converted to overlays with ID 5.
192
+
Overlays with ID 15 are randomly assigned new ID from range of 20 to 30, likewise for overlays with ID in range of 16 to 19.
193
+
Overlays with ID 6 will have their frame data for frames 0 to 2 changed to 12.
194
+
Overlays with ID 8 will have their frame data for frames 0 to 255 changed to randomly assigned value from 0 to 50.
195
+
Overlay with ID 20 will be converted to overlay with ID 52, but only at tile coordinate where X = 25 and Y = 50.
196
+
Overlay with ID 31 will be converted to overlay with ID 64, but only at tile coordinates where X = 32.
185
197
186
198
ID values from 0 to 254 are available for for regular use. Using 255 as destination ID will remove overlays. 255 as a source ID is ignored unless tile coordinate filter is in use. Frame values from 0 to 255 are available for use as both source and destination values.
187
199
188
200
### ObjectRules
189
201
190
-
A list of object ID conversion rules, each on it's own line with a | as a separator between source and destination value.
202
+
A list of object ID conversion rules, each on its own line with a | as a separator between source and destination value.
191
203
192
204
**Example #1:**
193
205
<pre>
194
206
[ObjectRules]
195
207
GACNST|YACNST
196
208
</pre>
197
209
198
-
Will convert any objects, be it Infantry, Building, Aircraft, Vehicle or Terrain with ID GACNST on the processed maps to an object of same type with ID YACNST.
210
+
All objects with ID `GACNST`, be it Infantry, Building, Aircraft, Vehicle or Terrain are replaced by an object of same type with ID `YACNST`.
199
211
200
212
**Example #2**
201
213
<pre>
202
214
[ObjectRules]
203
215
GACNST
204
216
</pre>
205
217
206
-
Will remove any objects, be it Infantry, Building, Aircraft, Vehicle or Terrain with ID GACNST on the processed maps.
218
+
All objects with ID `GACNST`, be it Infantry, Building, Aircraft, Vehicle or Terrain are removed.
219
+
220
+
**Example #3**
221
+
<pre>
222
+
[ObjectRules]
223
+
GAPOWR+GAPOWRUP|NAPOWR
224
+
GAPOWR+GAPOWRUP,GAPOWRUP|NAAPWR
225
+
GACTWR+*|GACTWR+GAVULC
226
+
GAPLUG+GAPLUG3|GAPLUG+None,None,None
227
+
</pre>
207
228
229
+
All buildings with ID `GAPOWR` with upgrade with ID `GAPOWRUP` in first upgrade slot are replaced with building with ID `NAPOWR`.
230
+
All buildings with ID `GAPOWR` with upgrade with ID `GAPOWRUP` in both first and second upgrade slots are replaced with building with ID `NAAPWR`.
231
+
All buildings with ID `GACTWR` with any upgrade or no upgrade in the first upgrade slot with building are replaced with building with ID `GACTWR` with upgrade with ID `GAVULC` in first upgrade slot.
232
+
All buildings with ID `GAPLUG` with upgrade with ID `GAPLUG3` in the first upgrade slot with building are replaced with building with ID `GAPLUG` with no upgrades in any slot.
233
+
208
234
### SectionRules
209
235
210
-
A list of section name, keys and values conversion rules, each on it's own line with | as a separator between section name, key and value information.
236
+
A list of section name, keys and values conversion rules, each on its own line with | as a separator between section name, key and value information.
211
237
212
238
**Example #1:**
213
239
<pre>
214
240
[SectionRules]
215
241
Basic|Official|no
216
242
</pre>
217
243
218
-
Sets the value for key 'Official' under section 'Basic' to 'no'.
244
+
Sets the value for key `Official` under section `Basic` to `no`.
219
245
220
246
**Example #2:**
221
247
<pre>
222
248
[SectionRules]
223
249
Basic|Official=
224
250
</pre>
225
251
226
-
Removes key 'Official' under section 'Basic'.
252
+
Removes key `Official` under section `Basic`.
227
253
228
254
**Example #3:**
229
255
<pre>
230
256
[SectionRules]
231
257
Basic=
232
258
</pre>
233
259
234
-
Removes section 'Basic' altogether.
260
+
Removes section `Basic` altogether.
235
261
236
262
**Example #4:**
237
263
<pre>
238
264
[SectionRules]
239
265
Basic=NotSoBasic|Official=Unofficial|Yes
240
266
</pre>
241
267
242
-
Changes name of section 'Basic' to 'NotSoBasic', name of key 'Official' under said section to 'Unofficial' and it's value to 'Yes'.
268
+
Changes name of section `Basic` to `NotSoBasic`, name of key `Official` under said section to `Unofficial` and its value to `Yes`.
0 commit comments