Guide to mapping: Difference between revisions

Jump to navigation Jump to search
1,118 bytes added ,  10:33, 6 December 2019
→‎Map Merger: + json file etc
(updated more)
(→‎Map Merger: + json file etc)
Line 229: Line 229:
'''If all your checks pass, then [[Map Merger|map merge]] and [[Setting up git|PR]] your change.'''
'''If all your checks pass, then [[Map Merger|map merge]] and [[Setting up git|PR]] your change.'''


==Map Merger==
==Before Making Your PR==
===Final Requirements===
Make sure your map is in its own folder inside "_maps/map_files". Follow the naming structure of the other maps and folders.
 
In "_maps/_basemap.dm" you will need to insert a new line, "#include "yogstation\map_files\YogsPubby\YogsPubby.dmm". Replace YogsPubby with your folder name and file name.
 
In "_maps", make a new .json file. I copied an existing one and used an [https://jsonformatter.org/json-viewer online editor] to view the file. This file should contain the following:
  {
    "map_name": "YogsPubby",
    "map_path": "map_files/Yogspubby",
    "map_file": "Yogspubby.dmm",
    "shuttles": {
      "emergency": "emergency_pubby",
      "whiteship": "whiteship_pubby",
      "ferry": "ferry_fancy",
      "cargo": "cargo_box"
      }
  }
 
Replace yogspubby with the appropriate names for your map, and change the shuttles if needed.
 
In "_maps", make a new .dm file containing the line, "#define FORCE_MAP "_maps/yogspubby.json". Replace yogspubby with your .json file name.
 
In "config/maps.txt", make a new line containing:
  map yogspubby
  endmap
 
===Map Merger===
It is important that you use the [[Map Merger]] tools before committing any changes to a map. See [[Map_Merger|here]] for how.
It is important that you use the [[Map Merger]] tools before committing any changes to a map. See [[Map_Merger|here]] for how.


Wiki Staff
6,460

edits

Navigation menu