Skip to content

ScreepsMods/screepsmod-map-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screepsmod-map-tool

Usage:

URL: http://yourServerIP:21025/maptool/

The default username is admin, password is auto-generated at each server launch if not set in .screepsrc

If you have a config.yml you can avoid using .screepsrc by setting the env vars, see examples below

Mouse Tools

Generate Rooms

Left click to generate a room

Ctrl+Left Click to generate a sector

Right click to remove a room

Alt+Right Click to brick a room

Ctrl+Right Click to remove a sector

Alt+Ctrl+Right Click to brick a whole sector

Alt+Left Click will flood fill from the cursor's position, this is useful to find isolated rooms

Edit Room Terrain

Left click sets tile to wall

Right click sets tile to plain

Alt+Left click sets tile to swamp

Open/Close Rooms

Left click to open a room (status = 'normal')

Right click to close a room (status = 'out of borders')

Ctrl+Left Click to open a sector (ignores highways)

Ctrl+Right Click to close a sector (ignores highways)

Main Menu

Save saves the current state of the map Note: reloading the window without hitting Save will reload the map from the server and all changes to the map will be lost

Generate Walls will generate solid rooms surrounding the generated ones, this prevents pathfinding errors that result from exits leading to the 'void' Note: don't leave any room open to the 'void', doing so will cause pathfinding errors

Fix All Rooms this will search for and fix exit mismatches, terrain errors, and game object errors sometimes caused by generation

The slider controls the solid wall chances for newly generated rooms

'Show Walls' will display newly generated rooms that are walled off from each other with a red line

Auto Gen will generate an entire map of the specified size (Can run autoGen(w,h) from console for custom sizes)

'Mouse Tool' select the mouse tool mode

Additional Notes

*Room types/features are automatic based on room position. (IE: bus, sk, controllers, etc)

*You can scroll the map by using the arrow keys

*There are a number of helper functions that can be accessed in devtools console e.g. generateSector('E5S5') to generate a sector around E5S5

Config

Edit .screepsrc to configure

[maptool]
user = admin
pass = password

If using screeps-launcher, you can specify user and pass in your config.yml:

env:
  backend:
    MAPTOOL_USER: admin
    MAPTOOL_PASS: password

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 7