- Download
setup.sh
and replaceSTEAM_KEY
with your key and update any versions you want. - Run
setup.sh
. - Replace
mods.json
with one provided here. - Create service file by copying file here to
/etc/systemd/system/screeps-world.service
. - Enable and run service (
systemctl enable screeps-world && systemctl start screeps-world
). - Log into the cli (
su screeps && cd ~/world && ./node_modules/screeps/bin/screeps.js cli
). - Reset memory (
system.resetAllData()
) and restart (systemctl restart screeps-world
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO global: Vagrant version: 2.0.2 | |
INFO global: Ruby version: 2.4.3 | |
INFO global: RubyGems version: 2.6.14 | |
INFO global: VAGRANT_LOG="info" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-2.0.2/bin/vagrant" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: resolv replacement has been enabled! | |
INFO global: Plugins: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Check if a value exists in an array | |
# @param $1 mixed Needle | |
# @param $2 array Haystack | |
# @return Success (0) if value exists, Failure (1) otherwise | |
# Usage: in_array "$needle" "${haystack[@]}" | |
# See: http://fvue.nl/wiki/Bash:_Check_if_array_element_exists | |
in_array() { | |
local hay needle=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2017 Robert Hafner <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const colors = { | |
gray: '#555555', | |
light: '#AAAAAA', | |
road: '#666', // >:D | |
energy: '#FFE87B', | |
power: '#F53547', | |
dark: '#181818', | |
outline: '#8FBB93', | |
speechText: '#000000', | |
speechBackground: '#2ccf3b' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
require('time-grunt')(grunt); | |
// Pull defaults (including username and password) from .screeps.json | |
var config = require('./.screeps.json') | |
if(!config.branch) { | |
config.branch = 'sim' | |
} | |
if(!config.ptr) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Roberts-MacBook-Pro-2:puppet-ros rhafner$ vagrant up --debug | |
INFO global: Vagrant version: 1.9.3 | |
INFO global: Ruby version: 2.2.5 | |
INFO global: RubyGems version: 2.4.5.1 | |
INFO global: VAGRANT_OLD_ENV_VIRTUALENVWRAPPER_PROJECT_FILENAME=".project" | |
INFO global: VAGRANT_OLD_ENV_HOME="/Users/rhafner" | |
INFO global: VAGRANT_OLD_ENV_VIRTUALENVWRAPPER_WORKON_CD="1" | |
INFO global: VAGRANT_OLD_ENV__="/usr/local/bin/vagrant" | |
INFO global: VAGRANT_OLD_ENV_VIRTUALENVWRAPPER_SCRIPT="/usr/local/bin/virtualenvwrapper.sh" | |
INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF-8" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import subprocess | |
if len(sys.argv) < 3: | |
print('image_to_ios_launch.py InputImage BackgroundColor [OutputPrefix]') | |
exit(-1) | |
input_image = sys.argv[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// screep astar | |
// based off of javascript-astar 0.4.1 | |
// http://github.com/bgrins/javascript-astar | |
// Freely distributable under the MIT License. | |
// Implements the astar search algorithm in javascript using a Binary Heap. | |
// Includes Binary Heap (with modifications) from Marijn Haverbeke. | |
// http://eloquentjavascript.net/appendix2.html | |
// Modified for Screeps by Robert Hafner |