Hey, I didn't find a thread on search, so I decided to make a new thread asking you guys about it!
Does anyone know the dimensions of the 1v1 maps Blistering Sands and Steppes of War?
I thought they might be 64x64 but it seemed rather small in the editor.
Thanks in advance.
64 x 64 is FAR too low. In my tinkering around I have came to the conclusion that the 'medium' map size is best suited for 1v1 maps. 128x128 is a decent size to start with as far as I can remember.
I chrono a flying unit on a 1 vs 1 map, and it took the same time to cross the map than in a personnalized map with a playable size of 108*108 (128*136 overall size when you create the map). But I suppose all 1 vs 1 have not the same size assuming one of them is described as "big" (it's the one I took for my comparaison, so maybe an average is more like 100*100 -120*128- but my timing is not very precise).
I chrono a flying unit on a 1 vs 1 map, and it took the same time to cross the map than in a personnalized map with a playable size of 108*108 (128*136 overall size when you create the map). But I suppose all 1 vs 1 have not the same size assuming one of them is described as "big" (it's the one I took for my comparaison, so maybe an average is more like 100*100 -120*128- but my timing is not very precise).
Or we could simplify it a thousand fold and just rely on an educated guess and not numbers.
This question, while old, is relevant to another question I had wanted to ask regarding accessing map dimensions. Is there a way to access a map's height and width in the script editor? As in, if I were to write this code:
int[mapWidth][mapHeight] dimensions;
I would want mapWidth and mapHeight to be whatever the current width and height of the map are regardless of the map.
This question, while old, is relevant to another question I had wanted to ask regarding accessing map dimensions. Is there a way to access a map's height and width in the script editor? As in, if I were to write this code:
int[mapWidth][mapHeight] dimensions;
I would want mapWidth and mapHeight to be whatever the current width and height of the map are regardless of the map.
I have been looking into this as well, but I have not found such function. I think your best shot is to loop through all x and y axis points on the map and check if they're in the Playable Map Area.
There is no way to use the map width/height as array sizes, but you can easily get the map dimensions using libNtve_gf_Width/HeightOfRegion()
or PointGetX/Y(RegionGetBoundsMax()) with RegionEntireMap().
constintMapMaxSize=512;// Maximum map size allowed.int[MapMaxSize][MapMaxSize]dimensions;intMapWidth=FixedToInt(PointGetX(RegionGetBoundsMax(RegionEntireMap())));intMapHeight=FixedToInt(PointGetY(RegionGetBoundsMax(RegionEntireMap())));voidSomeFunc(){UIDisplayMessage(PlayerGroupAll(),c_messageAreaDebug,StringToText("Width: "+IntToString(MapWidth)+"\nHeight: "+IntToString(MapHeight)));dimensions[0][0]=SomeValue;//...dimensions[MapWidth][MapHeight]=SomeOtherValue;}
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey, I didn't find a thread on search, so I decided to make a new thread asking you guys about it!
Does anyone know the dimensions of the 1v1 maps Blistering Sands and Steppes of War?
I thought they might be 64x64 but it seemed rather small in the editor.
Thanks in advance.
64 x 64 is FAR too low. In my tinkering around I have came to the conclusion that the 'medium' map size is best suited for 1v1 maps. 128x128 is a decent size to start with as far as I can remember.
I chrono a flying unit on a 1 vs 1 map, and it took the same time to cross the map than in a personnalized map with a playable size of 108*108 (128*136 overall size when you create the map). But I suppose all 1 vs 1 have not the same size assuming one of them is described as "big" (it's the one I took for my comparaison, so maybe an average is more like 100*100 -120*128- but my timing is not very precise).
Or we could simplify it a thousand fold and just rely on an educated guess and not numbers.
@Bowz3r: Go
This question, while old, is relevant to another question I had wanted to ask regarding accessing map dimensions. Is there a way to access a map's height and width in the script editor? As in, if I were to write this code:
int[mapWidth][mapHeight] dimensions;
I would want mapWidth and mapHeight to be whatever the current width and height of the map are regardless of the map.
I have been looking into this as well, but I have not found such function. I think your best shot is to loop through all x and y axis points on the map and check if they're in the Playable Map Area.
@Psyballa: Go
There is no way to use the map width/height as array sizes, but you can easily get the map dimensions using libNtve_gf_Width/HeightOfRegion() or PointGetX/Y(RegionGetBoundsMax()) with RegionEntireMap().