Map Configuration
Example of a map configuration with all fields:
"Config": {
// Map
"Name": "The best map ever",
"Author": "Shaigro",
"MapWidth": "6528",
"MapHeight": "2050",
"Ambience": "9",
// Worskhop
"Preview": "thumbnail_of_the_year.png",
"Workshop": "1818514910",
// Sea
"SeaLevel": "1920",
"SeaType": "0",
"SeaDepth": "2",
// Background 1
"Bkgd1File": "background2.png",
"Bkgd1MD5": "92043a581db0c50efb7856aa840f885c",
"Bkgd1Hspeed": "0",
"Bkgd1Vspeed": "0",
"Bkgd1HPara": "1",
"Bkgd1VPara": "0",
"Bkgd1XTile": "1",
"Bkgd1YTile": "1",
"Bkgd1XOff": "0",
"Bkgd1YOff": "0",
// Background 2
"Bkgd2File": "",
"Bkgd2MD5": "",
"Bkgd2Hspeed": "0",
"Bkgd2Vspeed": "0",
"Bkgd2HPara": "0",
"Bkgd2VPara": "0",
"Bkgd2XTile": "1",
"Bkgd2YTile": "1",
"Bkgd2XOff": "0",
"Bkgd2YOff": "0",
// Foreground
"Bkgd3File": "",
"Bkgd3MD5": "",
"Bkgd3Hspeed": "0",
"Bkgd3Vspeed": "0",
"Bkgd3HPara": "0",
"Bkgd3VPara": "0",
"Bkgd3XTile": "1",
"Bkgd3YTile": "1",
"Bkgd3XOff": "0",
"Bkgd3YOff": "0",
// Color background
"BkgdColor1": "4982848",
"BkgdColor2": "3666080",
"Bkgd1AmbCol": "4210752",
"Bkgd1Amb": "8",
// Misc
"Climb": "0",
"DivChc": "25",
"DecalDepth": "-200",
"ShowPath": "0",
"ShowCol": "0",
"ShowLog": "0",
// Other
"TotalGates": "934",
}
Description: Name of the map.
Value: Any string. Default is “Boring Map”. Unknown if there is a limit of characters.
Description: Author of the map.
Value: Any string. Default is the current player name. Unknown if there is a limit of characters.
Description: Width of the map.
Value: 0 < map_width < ...
Description: Height of the map.
Value: 0 < map_height < ...
Description: Ambience of the map.
Value: Possible values are:
0: Silence1: Fields2: Evening3: City4: Desert5: Factory6: Ocean7: Cold8: Caves9: Rain10: Waterfall11: Strange12: Railroad13: Blizzard
Description: Filename of the preview of the map. The preview displays on Steam workshop when looking for the map. The image has to be a .png if it is defined.
Value:
*.png: Preview is defined: Preview is not defined
Description: Workshop ID of the map.
Value: Possible values:
-1: Not on the workshop.0 < workshop_id: On the workshop.
Description: Determines where the sea is rendered on the Y axis.
Value:
0 < sea_level < map_height: The sea level is enabled.sea_level <= 0 || map_height < sea_level: The sea level is disabled.
Description: Type of the sea.
Value:
0: Water1: Lava
Description: Depth of the layer the sea is on.
Value:
sea_depth <= 0: Behind the player.0 < sea_depth: In front of the player.
The background 1 is an image that can be put on a layer behind any assets, tiles or players.
The background 1 is always behind the background 2.
Description: Filename of the background 1 image. The image has to be a .png if it is defined.
*.png: The background 1 is based on the provided image.: There is no background 1.
Description: MD5 checksum of the image. It is used to verify that the image downloaded from the workshop is correct.
Value: md5.length == 32: It’s always a 128-bit value.
Description: Determines how fast the image is moving on the X axis.
Value:
speed < 0: The image moves from right to left.speed == 0: The image doesn’t move.0 < speed: The image moves from left to right.
Description: Determines how fast the image is moving on the Y axis.
Value:
speed < 0: The image moves from bottom to top.speed == 0: The image doesn’t move.0 < speed: The image moves from top to bottom.
Description: Define how the parallax work for the image on the X axis.
Value:
0: Static1: Full-Parallax2: Half-Parallax3: Absolute
Description: Define how the parallax work for the image on the Y axis.
Value:
0: Static1: Full-Parallax2: Half-Parallax3: Absolute
Description: Determines whether the background 1 image should repeat itself on the X axis.
Value:
0: Image does not repeat.1: Image does repeat.
Description: Determines whether the background 1 image should repeat itself on the Y axis.
Value:
0: Image does not repeat.1: Image does repeat.
Description: Define what is the offset of the background 1 image on the X axis.
Value: Any integer. Unknown limit.
offset < 0: Left of the image goes outside the map.0 <= offset < map_width - width_of_image: Image is fully visible in the map.map_width - width_of_image <= offset: Right of the image goes outside the map.
Description: Define what is the offset of the background 1 image on the Y axis.
Value: Any integer. Unknown limit.
offset < 0: Top of the image goes outside the map.0 <= offset < map_height - height_of_image: Image is fully visible in the map.map_height - height_of_image <= offset: Bottom of the image goes outside the map.
The background 2 is an image that can be put on a layer behind any assets, tiles or players.
The background 2 is always above the background 1.
Description: Filename of the background 2 image. The image has to be a .png if it is defined.
*.png: The background 2 is based on the provided image.: There is no background 2.
Description: MD5 checksum of the image. It is used to verify that the image downloaded from the workshop is correct.
Value: md5.length == 32: It’s always a 128-bit value.
Description: Determines how fast the image is moving on the X axis.
Value:
speed < 0: The image moves from right to left.speed == 0: The image doesn’t move.0 < speed: The image moves from left to right.
Description: Determines how fast the image is moving on the Y axis.
Value:
speed < 0: The image moves from bottom to top.speed == 0: The image doesn’t move.0 < speed: The image moves from top to bottom.
Description: Define how the parallax work for the image on the X axis.
Value:
0: Static1: Full-Parallax2: Half-Parallax3: Absolute
Description: Define how the parallax work for the image on the Y axis.
Value:
0: Static1: Full-Parallax2: Half-Parallax3: Absolute
Description: Determines whether the background 2 image should repeat itself on the X axis.
Value:
0: Image does not repeat.1: Image does repeat.
Description: Determines whether the background 2 image should repeat itself on the Y axis.
Value:
0: Image does not repeat.1: Image does repeat.
Description: Define what is the offset of the background 2 image on the X axis.
Value: Any integer. Unknown limit.
offset < 0: Left of the image goes outside the map.0 <= offset < map_width - width_of_image: Image is fully visible in the map.map_width - width_of_image <= offset: Right of the image goes outside the map.
Description: Define what is the offset of the background 2 image on the Y axis.
Value: Any integer. Unknown limit.
offset < 0: Top of the image goes outside the map.0 <= offset < map_height - height_of_image: Image is fully visible in the map.map_height - height_of_image <= offset: Bottom of the image goes outside the map.
The foreground is an image that can be put on a layer above any assets, tiles or players.
Description: Filename of the foreground image. The image has to be a .png if it is defined.
Value:
*.png: The foreground is based on the provided image.: There is no foreground.
Description: MD5 checksum of the image. It is used to verify that the image downloaded from the workshop is correct.
Value: md5.length == 32: It’s always a 128-bit value.
Description: Determines how fast the image is moving on the X axis.
Value:
speed < 0: The image moves from right to left.speed == 0: The image doesn’t move.0 < speed: The image moves from left to right.
Description: Determines how fast the image is moving on the Y axis.
Value:
speed < 0: The image moves from bottom to top.speed == 0: The image doesn’t move.0 < speed: The image moves from top to bottom.
Description: Define how the parallax work for the image on the X axis.
Value:
0: Static1: Full-Parallax2: Half-Parallax3: Absolute
Description: Define how the parallax work for the image on the Y axis.
Value:
0: Static1: Full-Parallax2: Half-Parallax3: Absolute
Description: Determines whether the foreground image should repeat itself on the X axis.
Value:
0: Image does not repeat.1: Image does repeat.
Description: Determines whether the foreground image should repeat itself on the Y axis.
Value:
0: Image does not repeat.1: Image does repeat.
Description: Define what is the offset of the foreground image on the X axis.
Value: Any integer. Unknown limit.
offset < 0: Left of the image goes outside the map.0 <= offset < map_width - width_of_image: Image is fully visible in the map.map_width - width_of_image <= offset: Right of the image goes outside the map.
Description: Define what is the offset of the foreground image on the Y axis.
Value: Any integer. Unknown limit.
offset < 0: Top of the image goes outside the map.0 <= offset < map_height - height_of_image: Image is fully visible in the map.map_height - height_of_image <= offset: Bottom of the image goes outside the map.
Description: Defines the color at the top of the map to be used for the background gradient. The color is defined as a GML color.
Value: 0 <= color <= 16777215
Description: Defines the color at the bottom of the map to be used for the background gradient. The color is defined as a GML color.
Value: 0 <= color <= 16777215
Description: Defines the color of the overlay that is on top of the gradient and the background 1 & 2. The color is defined as a GML color.
Value: 0 <= color <= 16777215
Description: Determines the overlay opacity. The percentage is computed with the formula: percentage = overlay * 10.
Value: 0 <= overlay <= 10
Description: Determines if the map is a climb map.
Value:
1: Is a climb map.0: Is not a climb map.
Description: Defines the chance to divert AI for all “Waypoint Divert” asset. Usually, it is a multiple of 5.
Value: 0 <= chance <= 100
Description: Depth of the layer the decals are on.
Value: Any integer. Default is -200. Unknown limit.
Description: Determines if AI path is shown to the host of the map.
Value:
0: Don’t show AI path1: Show AI path
Description: Determines if collisions are shown to the host of the map.
Value:
0: Don’t show collisions1: Show collisions
Description: Determines if logic is shown to the host of the map.
Value:
0: Don’t show logic1: Show logic
Description: Represents the total number of gates that was ever created. Every time an asset or a tile is placed in the map, the count increase by 1.
Value: 0 <= total_gates