Request: World map update

Speak about everything.
No Spam!

Request: World map update

Postby Margus » Mon Jan 23, 2017 8:43 pm

We need someone to help with the world map, keep it up to date when we update maps. Last world map we have is from 2015 and is missing a lot of maps and existing ones are out of date.
https://mo.mo.ee/world_map_2015_oct.png

World map should contain: teleports, town locations, map names.

Built in chat methods that can help with mapping:
/savemap


Would be nice if the world map would also be available in a format that supports layers for later editing.

[Advanced, requires use of JS console] Script I came up with that can help save maps without having to visit all of them.
Prepare script:
Code: Select all
for (var i = 1; i < maps; i++) {
  preloadMap(i, false);
}

function saveMapToFile(){
  var remember_fullscreen_mode = fullscreen_mode;
  fullscreen_mode = false;
  if(minimap){
    Editor.toggle_minimap(true);
  }
  c["minimap"] = document.createElement("canvas");
  c["minimap"].width = 616;
  c["minimap"].height = 429;
  ctx["minimap"] = c["minimap"].getContext("2d");
  minimap_scale = 0.125;
  Editor.toggle_minimap();

  var dataURL = c["minimap"].toBlob(function(blob){
    saveAs(blob, "map"+current_map+".png")
  });
  c["minimap"] = document.createElement("canvas");
  c["minimap"].width = width;
  c["minimap"].height = height;
  ctx["minimap"] = c["minimap"].getContext("2d");
  fullscreen_mode = remember_fullscreen_mode;
  Editor.toggle_minimap(true);
  minimap_scale = 0.125;
  setCanvasSize(true);
  Editor.toggle_minimap();
  Editor.toggle_minimap();
  refreshHUD();
}


Save maps:
Code: Select all
current_map = 0; saveMapToFile(); // change current map from 0-35 to get that map
User avatar
Margus
Site Admin
 
Posts: 1280
Joined: Thu Jul 26, 2012 1:53 am

Re: Request: World map update

Postby leriel » Tue Jan 24, 2017 1:11 am

is there any ingame info (numbers in map definitions) that can be translated to how maps are colocated? i'm thinking auto generation
leriel
 
Posts: 89
Joined: Sun Dec 29, 2013 5:36 pm

Re: Request: World map update

Postby Margus » Tue Jan 24, 2017 2:35 am

leriel wrote:is there any ingame info (numbers in map definitions) that can be translated to how maps are colocated? i'm thinking auto generation

You can scan through on_map[map_id] variables and look for objects that have these params those are (from teleports) and the coordinates point towards:
params.to_map, params.to_i, params.to_j

Town positions are held in teleport_locations variable.

However, automatic generation is likely gonna have placement issues because the map positions on world map itself are not really logical.
User avatar
Margus
Site Admin
 
Posts: 1280
Joined: Thu Jul 26, 2012 1:53 am

Re: Request: World map update

Postby Margus » Sun Feb 05, 2017 9:00 pm

New world map has been provided by Dragadorn. Thank you very much, will go up with next patch.
Map preview:
https://mo.mo.ee/world_map_2017_feb.png
His topic:
viewtopic.php?f=6&t=7898
User avatar
Margus
Site Admin
 
Posts: 1280
Joined: Thu Jul 26, 2012 1:53 am


Return to General Board

Who is online

Users browsing this forum: No registered users and 8 guests