How to load custom map - dapucita/haxbotron GitHub Wiki

Language : English, Korean(한국어)

This manual is written in English and based on v0.4.4.

How to load custom maps

First, you have to create *.hbs.ts file in core/lib/stadium directory.

Copy and Paste map data into the *.hbs.ts file.

export var stadiumText: string = `
{
  [YOUR MAP DATA HERE]
}
`

Open core/lib/stadiumLoader.ts file and edit:

import * as [MAP NAME] from "./stadium/[YOUR MAP FILE NAME].hbs"
...
    case '[MAP NAME]':
        return [MAP NAME].stadiumText;
...

You have to build again for apply changes.

[haxbotron/core] npm run build

Use custom maps

Open Create new room page in the Web-based Management System and find Game Rules section.

After that, edit Default Map Name and Ready Map Name textfield.

See also

Available built-in maps name tags