Map definition question

Moderator: Jason Petho

Post Reply
harry_vdk
Posts: 338
Joined: Tue Jun 10, 2014 11:41 am
Location: Drachten

Map definition question

Post by harry_vdk »

Hi,

For Flashpoint Campaigns: Red Storm I have created a small tool OtsFp9Tools.exe for several map actions.

Right now a similar tool is missing for CSME.

The current map definition is just a ascii file, but the values have a calculated shift of the values.

With reverse engineering can this make more clear but its better to ask you for it.

The final question is. Can I get a description of the map definition and if so are there limitations for using this definition.

Harry
User avatar
Crossroads
Posts: 17498
Joined: Sun Jul 05, 2009 8:57 am

RE: Map definition question

Post by Crossroads »

Something like THIS ?

Mike's (Warhorse) around, I'll point this thread to him.
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < Available now
CS: Middle East 1948-1985 2.0 < 3.0 In the works
User avatar
Crossroads
Posts: 17498
Joined: Sun Jul 05, 2009 8:57 am

RE: Map definition question

Post by Crossroads »

double post removed
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < Available now
CS: Middle East 1948-1985 2.0 < 3.0 In the works
User avatar
Warhorse
Posts: 5369
Joined: Fri May 12, 2000 8:00 am
Location: Birdsboro, PA, USA
Contact:

RE: Map definition question

Post by Warhorse »

Hi Harry, do you mean our map description is ascii, I assume you have looked at the Map Description.dat file already then? If you are talking about movement values for different terrain, Berto is the man to ask for that, I never did get an explanation of those?!
Mike Amos

Meine Ehre heißt Treue
www.cslegion.com
harry_vdk
Posts: 338
Joined: Tue Jun 10, 2014 11:41 am
Location: Drachten

RE: Map definition question

Post by harry_vdk »

The link describe 1 type of action (converting to a different maptype) witch can be automated with the tool I was thinking of.

Map Description.dat describe the terrain types and this was not the data I was looking for.

Perhaps the best way of seeing the usage for a tool like this is to look to a previous map project. AAR of a Dutch map part 2 This was not possible without a extra tool for some special actions..

Some type of actions can by done within memap (crop, level down) but not batch wise.

Other type of actions are not possible like (merging, adding of export to picture for comparison).

A second option with came to my mind is generate a map from OSM data. A lot of data is available and waiting for map generating.
User avatar
Warhorse
Posts: 5369
Joined: Fri May 12, 2000 8:00 am
Location: Birdsboro, PA, USA
Contact:

RE: Map definition question

Post by Warhorse »

Like this from the exe?

MENUITEM "&New...", 101
MENUITEM "&Open...", 102
MENUITEM SEPARATOR
MENUITEM "&Save", 103
MENUITEM "Save &As...", 104
MENUITEM SEPARATOR
MENUITEM "E&xit", 105
}
POPUP "&Terrain"
{
MENUITEM "&None", 201
MENUITEM "&Open", 202
MENUITEM "&Water", 203
MENUITEM "&Shallow Water", 212
MENUITEM "&Super Canal", 230
MENUITEM "&Canal", 231
MENUITEM "&Super River", 232
MENUITEM "&River", 233
MENUITEM "&Forest", 204
MENUITEM "&Marsh", 205
MENUITEM "&Swamp", 217
MENUITEM "&Beach", 209
MENUITEM "&Building", 206
MENUITEM "&Village", 207
MENUITEM "&Suburb", 216
MENUITEM "&City", 208
MENUITEM "&Industrial", 214
MENUITEM "&Orchard", 210
MENUITEM "&Rough", 211
MENUITEM "&Field", 215
MENUITEM "&Impassable", 213
MENUITEM "&Vineyard", 218
MENUITEM "&Cactus", 219
MENUITEM "&Hammada", 220
MENUITEM "&Scrub", 221
MENUITEM "&Soft Sand", 222
MENUITEM "&Wadi", 223
MENUITEM "&Dry Rice Paddies", 224
MENUITEM "&Flooded Rice Paddies", 225
MENUITEM "&Palm Trees", 226
MENUITEM "&Light Jungle", 227
MENUITEM "&Dense Jungle", 228
MENUITEM "&Kunai", 229
MENUITEM SEPARATOR
MENUITEM "&Cycle Terrain", 234
}
POPUP "&Elevation"
{
MENUITEM "+0", 301
MENUITEM "+1", 302
MENUITEM "+2", 303
MENUITEM "+3", 304
MENUITEM "+4", 305
MENUITEM "+5", 306
MENUITEM "+6", 307
MENUITEM "+7", 308
MENUITEM "+8", 309
MENUITEM "+9", 310
MENUITEM "+10", 311
MENUITEM "+11", 312
MENUITEM "+12", 313
MENUITEM "+13", 314
MENUITEM "+14", 315
MENUITEM "+15", 316
MENUITEM "+16", 317
MENUITEM "+17", 318
MENUITEM "+18", 319
MENUITEM "+19", 320
MENUITEM "+20", 321
MENUITEM "+21", 322
MENUITEM "+22", 323
MENUITEM "+23", 324
MENUITEM "+24", 325
MENUITEM "+25", 326
MENUITEM "+26", 327
MENUITEM "+27", 328
MENUITEM "+28", 329
MENUITEM "+29", 330
MENUITEM "+30", 331
MENUITEM "+31", 332
MENUITEM "+32", 333
MENUITEM "+33", 334
MENUITEM "+34", 335
MENUITEM "+35", 336
MENUITEM "+36", 337
MENUITEM "+37", 338
MENUITEM "+38", 339
MENUITEM "+39", 340
MENUITEM "+40", 341
MENUITEM "+41", 342
MENUITEM "+42", 343
MENUITEM "+43", 344
MENUITEM "+44", 345
MENUITEM "+45", 346
MENUITEM "+46", 347
MENUITEM "+47", 348
MENUITEM "+48", 349
MENUITEM "+49", 350
}
POPUP "&Sides"
{
MENUITEM "&Paved Road", 401
MENUITEM "&Unpaved Road", 412
MENUITEM "&Rail", 402
MENUITEM "&Path", 415
MENUITEM SEPARATOR
MENUITEM "&Stream", 403
MENUITEM "&Minor River", 404
MENUITEM SEPARATOR
MENUITEM "&Heavy Bridge", 405
MENUITEM "&Medium Bridge", 406
MENUITEM "&Light Bridge", 407
MENUITEM "&Ford", 414
MENUITEM SEPARATOR
MENUITEM "&Hedge", 408
MENUITEM "&Cliff", 410
MENUITEM "&Embankment", 411
MENUITEM "&Gully", 413
MENUITEM "&High Wall", 416
MENUITEM "&Stone Wall", 417
MENUITEM "&Bocage", 418
MENUITEM "&Dune", 409
MENUITEM "&Escarpment", 419
MENUITEM "&Reef", 420
}
POPUP "&Labels"
{
MENUITEM "&Add/Delete", 501
}
POPUP "&Values"
{
MENUITEM "&Elevations", 601
MENUITEM "&Compass", 602
}
POPUP "E&xtent"
{
MENUITEM "&Resize", 701
MENUITEM "&Shift", 702
MENUITEM "&Raise", 703
MENUITEM "&Lower", 704
}
POPUP "&Display"
{
MENUITEM "&Map Labels (L)", 901
MENUITEM "&Hex Contours (C)", 902
MENUITEM "Map &Elevations (.)", 903
MENUITEM "Map &Coordinates (,)", 904
MENUITEM SEPARATOR
POPUP "&Conditions"
{
MENUITEM "Normal &Ground", 801
MENUITEM "Soft &Ground", 802
MENUITEM "Mud &Ground", 803
MENUITEM "Snow &Ground", 804
MENUITEM SEPARATOR
MENUITEM "Normal &Trees", 805
MENUITEM "Brown &Trees", 806
MENUITEM "Barren &Trees", 807
MENUITEM "Snow &Trees", 808
MENUITEM SEPARATOR
MENUITEM "Normal &Fields", 809
MENUITEM "Plowed &Fields", 810
MENUITEM "No &Fields", 811
MENUITEM SEPARATOR
MENUITEM "Normal &Water", 812
MENUITEM "Frozen &Water", 813
}
MENUITEM SEPARATOR
MENUITEM "&Jump Map... (J)", 905
MENUITEM SEPARATOR
MENUITEM "&3D Normal View (1)", 906
MENUITEM "&3D Zoom-Out View (2)", 907
MENUITEM "&3D Extreme Zoom-Out View (3)", 908
MENUITEM "&2D Zoom-In View (4)", 909
MENUITEM "&2D Normal View (5)", 910
MENUITEM "&2D Zoom-Out View (6)", 911
MENUITEM "&2D Extreme Zoom-Out View (7)", 912
MENUITEM SEPARATOR
MENUITEM "&Rotate Map (R)", 913
MENUITEM "&Redraw Display (Alt-D)", 914
}
POPUP "&Options"
{
MENUITEM "&Prompt for Map", 1001
MENUITEM "&Blink Hot Spot", 1002
MENUITEM "&Auto Scroll", 1003
MENUITEM SEPARATOR
MENUITEM "&Hex Outlines (Ctrl-X)", 1004
POPUP "Hex &Contours Colors"
{
MENUITEM "Light", 1005
MENUITEM "Medium", 1006
MENUITEM "Dark", 1007
}
POPUP "&Elevation Delta"
{
MENUITEM "1", 1008
MENUITEM "2", 1009
MENUITEM "3", 1010
}
MENUITEM SEPARATOR
POPUP "Labels"
{
MENUITEM "Transparent", 1012
MENUITEM "Transparent Enhanced", 1013
}
MENUITEM SEPARATOR
POPUP "Highlight Colors"
{
MENUITEM "Black", 1014
MENUITEM "Yellow", 1015
MENUITEM "Green", 1016
MENUITEM "Light Blue", 1017
MENUITEM "Magenta", 1018
MENUITEM "White", 1019
MENUITEM "Violet", 1020
MENUITEM "Red", 1021
MENUITEM "Orange", 1022
MENUITEM "Blue", 1023
MENUITEM "Fuchsia", 1024
MENUITEM "Turquoise", 1025
MENUITEM "Sky Blue", 1026
MENUITEM "Brown", 1027
MENUITEM "Lavender", 1028
MENUITEM "Purple", 1029
}
}
POPUP "Ch&anges"
{
MENUITEM "&Undo (Ctrl-U)", 1101
MENUITEM "&Redo (Ctrl-R)", 1102
}
POPUP "&Help"
{
MENUITEM "&Manual (F1)", 1201
MENUITEM "&About", 1202
}
}

Or do you mean the terrain image file names?
Mike Amos

Meine Ehre heißt Treue
www.cslegion.com
harry_vdk
Posts: 338
Joined: Tue Jun 10, 2014 11:41 am
Location: Drachten

RE: Map definition question

Post by harry_vdk »

No,

I am looking for the description of the structure of the *.map files.

For direct adding/deleting/modification of the files.

Image

Special the header and why/how there is a shift of values depending on the size of the map.

I can try to reverse engineer this or just ask for a description of the map file structure.
Attachments
Mapstructure.jpg
Mapstructure.jpg (160.31 KiB) Viewed 203 times
User avatar
Warhorse
Posts: 5369
Joined: Fri May 12, 2000 8:00 am
Location: Birdsboro, PA, USA
Contact:

RE: Map definition question

Post by Warhorse »

Oh that, it seems it changes the code every map, that link that Petri posted kinda showed that in what I did converting maps. Berto will need to step in for further discussion on how/why though, it's how the system works. I think it was EF that was always standard, but later they all seemed to do randome coding. You can figure it out, but usually takes an hour or so. Would be nice to have something as you propose, however!

There are blocks of code, the first is the terrain, the second is heights, the third sides, streams, roads, etc. The sizes, if you count the hexes, will show you that each map size corresponds with the number of characters in each row. You should read that document I made, might help, maybe you alrteady know all this, I don't know?!
Mike Amos

Meine Ehre heißt Treue
www.cslegion.com
Post Reply

Return to “Mods and Scenarios”