Skip to content

perduta/screeps_console

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screeps_console

This project streams the Screeps console output to the terminal. It strips out any html tags and adds colors.

Screeps Interactive Console

Settings

The settings file is a yaml file. Begin by copying the settings.dist file to .settings.yaml in the directory you will be calling notify.py from.

cp .settings.dist.yaml .settings.yaml

The settings file is in yaml and takes various authentication tokens.

# Copy this to .settings.yaml and fill it out.

# Screeps account info
# Your username is your full email address.
screeps_username:
screeps_password:
screeps_ptr: false

# Proxy configuration
http_proxy:
http_proxy_port:

Launching

To stream the console output directly to your terminal's stdout run the console.py application.

$ ./screeps_console/console.py

This project also offers an interactive shell that can be used for both reading console output and sending console commands to the server.

$ ./screeps_console/interactive.py

Interactivity

The interactive console allows you to directly interact with your screeps program through the in game console. Most of the time what you put in will be sent directly to the screeps server to be processed. There are a few built in commands however.

  • clear - resets the console display.
  • exit - exits the shell.
  • list - lists these and other built in commands and aliases.
  • themes - lists available themes when called without an argument, or switches themes when called with the theme name as the first argument

Colors and Severity

Console output can have colors, in both the website version and the shell. To get the best of both worlds use font tags that also have a severity attribute.

<font color="#999999" severity="2">Message goes here!</font>

The severity can be anywhere from 0 to 5, with five beign the most extreme.

About

Standalone Interactive Screeps Console

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%