You can right click the main mir2 master source as click Add existing project then select the Map Editors’ SLN file.
Placing SM2 objects libraries into its mir3 libraries range might work but the existing tile set utilities only have WM2 and SM2 range option reassignments.
Increasing SM2 range to 400 (into SM3 & WM3 libraries space) would likely require some changes elsewhere in the code, beyond the libraries range assignment in question here.
You could open up the range of wemade mir2 libraries to its full extent and use it for SM2 objects.
You must already be reassigning objects libraries # to maps (since many maps likely come with the same lib #s) and you can change SM2 to WM2 range. But I guess you are already doing that.
'500 maps' is probably making a showroom for maps, not a server
It would be interesting to see how the client copes with the load since you also opened up libraries full range for Tiles & smTiles (unnecessarily).
I take it, there is a reason (efficiency?) why the lib range is kept locked down to actual libraries count, like WM2 range was for a long time locked to 25 objects and when objects26 library was added many years later, the range was only increased by one count, not opened up to full as if scanning empty places would significantly increase load, decrease efficiency of lib reading.
bro i have build the map editor mir2 master source still showing 79 shandamir2 maps this is client code
>> #region Maplibs
//wemade mir2 (allowed from 0-99)
MapLibs[0] = new MLibrary(Settings.DataPath + "Map\\WemadeMir2\\Tiles");
MapLibs[1] = new MLibrary(Settings.DataPath + "Map\\WemadeMir2\\Smtiles");
MapLibs[2] = new MLibrary(Settings.DataPath + "Map\\WemadeMir2\\Objects");
for (int i = 2; i < 200; i++)
{
MapLibs[i + 1] = new MLibrary(Settings.DataPath + "Map\\WemadeMir2\\Objects" + i.ToString());
}
MapLibs[90] = new MLibrary(Settings.DataPath + "Map\\WemadeMir2\\Objects_32bit");
//shanda mir2 (allowed from 100-199)
MapLibs[100] = new MLibrary(Settings.DataPath + "Map\\ShandaMir2\\Tiles");
for (int i = 1; i < 200; i++)
{
MapLibs[100 + i] = new MLibrary(Settings.DataPath + "Map\\ShandaMir2\\Tiles" + (i + 1));
}
MapLibs[110] = new MLibrary(Settings.DataPath + "Map\\ShandaMir2\\SmTiles");
for (int i = 1; i < 200; i++)
{
MapLibs[110 + i] = new MLibrary(Settings.DataPath + "Map\\ShandaMir2\\SmTiles" + (i + 1));
}
MapLibs[120] = new MLibrary(Settings.DataPath + "Map\\ShandaMir2\\Objects");
for (int i = 1; i < 500; i++)
{
MapLibs[120 + i] = new MLibrary(Settings.DataPath + "Map\\ShandaMir2\\Objects" + (i + 1));
}
MapLibs[190] = new MLibrary(Settings.DataPath + "Map\\ShandaMir2\\AniTiles1");
//wemade mir3 (allowed from 200-299)
string[] Mapstate = { "", "wood\\", "sand\\", "snow\\", "forest\\"};
for (int i = 0; i < Mapstate.Length; i++)
{
MapLibs[200 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate
+ "Tilesc");
MapLibs[201 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Tiles30c");
MapLibs[202 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Tiles5c");
MapLibs[203 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Smtilesc");
MapLibs[204 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Housesc");
MapLibs[205 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Cliffsc");
MapLibs[206 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Dungeonsc");
MapLibs[207 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Innersc");
MapLibs[208 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Furnituresc");
MapLibs[209 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Wallsc");
MapLibs[210 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "smObjectsc");
MapLibs[211 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Animationsc");
MapLibs[212 +(i*15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Object1c");
MapLibs[213 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\WemadeMir3\\" + Mapstate + "Object2c");
}
Mapstate = new string[] { "", "wood", "sand", "snow", "forest"};
//shanda mir3 (allowed from 300-399)
for (int i = 0; i < Mapstate.Length; i++)
{
MapLibs[300 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Tilesc" + Mapstate);
MapLibs[301 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Tiles30c" + Mapstate);
MapLibs[302 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Tiles5c" + Mapstate);
MapLibs[303 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Smtilesc" + Mapstate);
MapLibs[304 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Housesc" + Mapstate);
MapLibs[305 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Cliffsc" + Mapstate);
MapLibs[306 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Dungeonsc" + Mapstate);
MapLibs[307 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Innersc" + Mapstate);
MapLibs[308 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Furnituresc" + Mapstate);
MapLibs[309 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Wallsc" + Mapstate);
MapLibs[310 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "smObjectsc" + Mapstate);
MapLibs[311 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Animationsc" + Mapstate);
MapLibs[312 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Object1c" + Mapstate);
MapLibs[313 + (i * 15)] = new MLibrary(Settings.DataPath + "Map\\ShandaMir3\\" + "Object2c" + Mapstate);
}
#endregion and This is Map Editor code >>
>
Map Editor code>> public const string LibPath = @".\Data\Map\WemadeMir2\";
public const string ShandaMir2LibPath = @".\Data\Map\ShandaMir2\";
public const string ObjectsPath = @".\Data\Objects\";
//Map
public static readonly MLibrary[] MapLibs = new MLibrary[800];
public static readonly ListItem[] ListItems = new ListItem[400];
static Libraries()
{
//wemade mir2 (allowed from 0-99)
//MapLibs[99]=new MLibrary(@".\Objects\MyImage");
MapLibs[0] = new MLibrary(@".\Data\Map\WemadeMir2\Tiles");
ListItems[0] = new ListItem("Tiles", 0);
MapLibs[1] = new MLibrary(@".\Data\Map\WemadeMir2\Smtiles");
ListItems[1] = new ListItem("Smtiles", 1);
MapLibs[2] = new MLibrary(@".\Data\Map\WemadeMir2\Objects");
ListItems[2] = new ListItem("Objects", 2);
MapLibs[90] = new MLibrary(@".\Data\Map\WemadeMir2\Objects_32bit");
for (int i = 2; i < 28; i++)
{
if (File.Exists(@".\Data\Map\WemadeMir2\Objects" + i + ".lib"))
{
MapLibs[i + 1] = new MLibrary(@".\Data\Map\WemadeMir2\Objects" + i);
ListItems[i + 1] = new ListItem("Objects" + i, i + 1);
}
}
//shanda mir2 (allowed from 100-199)
MapLibs[100] = new MLibrary(@".\Data\Map\ShandaMir2\Tiles");
ListItems[100] = new ListItem("Tiles", 100);
for (int i = 1; i < 200; i++)
{
if (File.Exists(@".\Data\Map\ShandaMir2\Tiles" + (i + 1) + ".lib"))
{
MapLibs[100 + i] = new MLibrary(@".\Data\Map\ShandaMir2\Tiles" + (i + 1));
ListItems[100 + i] = new ListItem("Tiles" + (i + 1), 100 + i);
}
}
MapLibs[110] = new MLibrary(@".\Data\Map\ShandaMir2\SmTiles");
ListItems[110] = new ListItem("SmTiles", 110);
for (int i = 1; i < 200; i++)
{
if (File.Exists(@".\Data\Map\ShandaMir2\SmTiles" + (i + 1) + ".lib"))
{
MapLibs[110 + i] = new MLibrary(@".\Data\Map\ShandaMir2\SmTiles" + (i + 1));
ListItems[110 + i] = new ListItem("SmTiles" + (i + 1), 110 + i);
}
}
MapLibs[120] = new MLibrary(@".\Data\Map\ShandaMir2\Objects");
ListItems[120] = new ListItem("Objects", 120);
for (int i = 1; i < 500; i++)
{
if (File.Exists(@".\Data\Map\ShandaMir2\Objects" + (i + 1) + ".lib"))
{
MapLibs[120 + i] = new MLibrary(@".\Data\Map\ShandaMir2\Objects" + (i + 1));
ListItems[120 + i] = new ListItem("Objects" + (i + 1), 120 + i);
}
}
MapLibs[199] = new MLibrary(@".\Data\Map\ShandaMir2\AniTiles1");
ListItems[199] = new ListItem("AniTiles1", 199);
//wemade mir3 (allowed from 200-299)
string[] Mapstate = { "", "wood\\", "sand\\", "snow\\", "forest\\" };
for (int i = 0; i < Mapstate.Length; i++)
{
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Tilesc" + ".lib"))
{
MapLibs[200 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Tilesc");
ListItems[200 + (i * 15)] = new ListItem(Mapstate + "Tilesc", 200 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Tiles30c" + ".lib"))
{
MapLibs[201 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Tiles30c");
ListItems[201 + (i * 15)] = new ListItem(Mapstate + "Tiles30c", 201 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Tiles5c" + ".lib"))
{
MapLibs[202 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Tiles5c");
ListItems[202 + (i * 15)] = new ListItem(Mapstate + "Tiles5c", 202 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Smtilesc" + ".lib"))
{
MapLibs[203 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Smtilesc");
ListItems[203 + (i * 15)] = new ListItem(Mapstate + "Smtilesc", 203 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Housesc" + ".lib"))
{
MapLibs[204 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Housesc");
ListItems[204 + (i * 15)] = new ListItem(Mapstate + "Housesc", 204 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Cliffsc" + ".lib"))
{
MapLibs[205 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Cliffsc");
ListItems[205 + (i * 15)] = new ListItem(Mapstate + "Cliffsc", 205 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Dungeonsc" + ".lib"))
{
MapLibs[206 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Dungeonsc");
ListItems[206 + (i * 15)] = new ListItem(Mapstate + "Dungeonsc", 206 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Innersc" + ".lib"))
{
MapLibs[207 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Innersc");
ListItems[207 + (i * 15)] = new ListItem(Mapstate + "Innersc", 207 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Furnituresc" + ".lib"))
{
MapLibs[208 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Furnituresc");
ListItems[208 + (i * 15)] = new ListItem(Mapstate + "Furnituresc", 208 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Wallsc" + ".lib"))
{
MapLibs[209 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Wallsc");
ListItems[209 + (i * 15)] = new ListItem(Mapstate + "Wallsc", 209 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "smObjectsc" + ".lib"))
{
MapLibs[210 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "smObjectsc");
ListItems[210 + (i * 15)] = new ListItem(Mapstate + "smObjectsc", 210 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Animationsc" + ".lib"))
{
MapLibs[211 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Animationsc");
ListItems[211 + (i * 15)] = new ListItem(Mapstate + "Animationsc", 211 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Object1c" + ".lib"))
{
MapLibs[212 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Object1c");
ListItems[212 + (i * 15)] = new ListItem(Mapstate + "Object1c", 212 + (i * 15));
}
if (File.Exists(@".\Data\Map\WemadeMir3\" + Mapstate + "Object2c" + ".lib"))
{
MapLibs[213 + (i * 15)] = new MLibrary(@".\Data\Map\WemadeMir3\" + Mapstate + "Object2c");
ListItems[213 + (i * 15)] = new ListItem(Mapstate + "Object2c", 213 + (i * 15));
}
}
//shanda mir3 (allowed from 300-399)
Mapstate = new[] { "", "wood", "sand", "snow", "forest" };
for (int i = 0; i < Mapstate.Length; i++)
{
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Tilesc" + Mapstate + ".lib"))
{
MapLibs[300 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Tilesc" + Mapstate);
ListItems[300 + (i * 15)] = new ListItem("Tilesc" + Mapstate, 300 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Tiles30c" + Mapstate + ".lib"))
{
MapLibs[301 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Tiles30c" + Mapstate);
ListItems[301 + (i * 15)] = new ListItem("Tiles30c" + Mapstate, 301 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Tiles5c" + Mapstate + ".lib"))
{
MapLibs[302 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Tiles5c" + Mapstate);
ListItems[302 + (i * 15)] = new ListItem("Tiles5c" + Mapstate, 302 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Smtilesc" + Mapstate + ".lib"))
{
MapLibs[303 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Smtilesc" + Mapstate);
ListItems[303 + (i * 15)] = new ListItem("Smtilesc" + Mapstate, 303 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Housesc" + Mapstate + ".lib"))
{
MapLibs[304 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Housesc" + Mapstate);
ListItems[304 + (i * 15)] = new ListItem("Housesc" + Mapstate, 304 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Cliffsc" + Mapstate + ".lib"))
{
MapLibs[305 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Cliffsc" + Mapstate);
ListItems[305 + (i * 15)] = new ListItem("Cliffsc" + Mapstate, 305 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Dungeonsc" + Mapstate + ".lib"))
{
MapLibs[306 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Dungeonsc" + Mapstate);
ListItems[306 + (i * 15)] = new ListItem("Dungeonsc" + Mapstate, 306 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Innersc" + Mapstate + ".lib"))
{
MapLibs[307 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Innersc" + Mapstate);
ListItems[307 + (i * 15)] = new ListItem("Innersc" + Mapstate, 307 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Furnituresc" + Mapstate + ".lib"))
{
MapLibs[308 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Furnituresc" + Mapstate);
ListItems[308 + (i * 15)] = new ListItem("Furnituresc" + Mapstate, 308 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Wallsc" + Mapstate + ".lib"))
{
MapLibs[309 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Wallsc" + Mapstate);
ListItems[309 + (i * 15)] = new ListItem("Wallsc" + Mapstate, 309 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "smObjectsc" + Mapstate + ".lib"))
{
MapLibs[310 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "smObjectsc" + Mapstate);
ListItems[310 + (i * 15)] = new ListItem("smObjectsc" + Mapstate, 310 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Animationsc" + Mapstate + ".lib"))
{
MapLibs[311 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Animationsc" + Mapstate);
ListItems[311 + (i * 15)] = new ListItem("Animationsc" + Mapstate, 311 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Object1c" + Mapstate + ".lib"))
{
MapLibs[312 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Object1c" + Mapstate);
ListItems[312 + (i * 15)] = new ListItem("Object1c" + Mapstate, 312 + (i * 15));
}
if (File.Exists(@".\Data\Map\ShandaMir3\" + "Object2c" + Mapstate + ".lib"))
{
MapLibs[313 + (i * 15)] = new MLibrary(@".\Data\Map\ShandaMir3\" + "Object2c" + Mapstate);
ListItems[313 + (i * 15)] = new ListItem("Object2c" + Mapstate, 313 + (i * 15));
}
}
What i did worng?