Coder Social home page Coder Social logo

creepos's Introduction

Closure Compiler

  • In make.json replace "js_module_root": "/path/to/CreepOS"
  • Run closure compiler
  • Copy main.js to your screeps folder

Task Management

  • Modules

    • TaskMachine
    • Task
    • Sc(h)eduler (SOON)
  • Task Types

    • fill_structure (spawn, extension, tower, container, ...)
    • upgrade controller
    • build structure (with specific goal)
    • repair structure (with specific goal)
  • Priority/Efficacy Scheduling

    • each creep chooses the next task depending on it's priority and
    • the overall path length the creep needs to move to complete the task
  • TODO:

    • automatic task creation (you need to define the quantity of each task type in the main loop until now)

(Semi-)Automatic Creep Management

  • Modules

    • SpawnMachine
  • Spawning

    • starts with generous spawning (weak screeps using less energy to spawn) at the beginning (few creeps)
    • gets more demanding when more creeps are present (uses more body parts in the end if extensions are available)
    • ensures that creeps at least have one work, carry and move part
  • Memory Freeing

    • clears memory of dead creeps

Basic Defending System

  • Modules

    • Attack
  • Fighter Types

    • remote fighter (kiters)
    • close combatant (TODO ?)
    • tower (heal, attack)
  • Other Featuers

    • worker creeps try to escape
  • Automatic Fighter Spawning

    • when a hostile creep is detected, remote fighters are spawned
  • TODO: increase priority of extension/spawn filling

Basic Tower Management

  • Modules
    • Tower
  • unlimited Range (you may want to reduce the range if multiple towers are present due to efficiency degradation)
  • attack, heal, repair

Automatic Structure Management

  • Modules

    • BuildMachine
  • Street Building

    • build all n ticks m new streets (n=1000,m=3)
    • depending on which fields are frequently used
  • Intentional Street Degradation (SOON)

    • don't repair seldomly used roads

Your Tasks

  • tweak parameters (TODO: which)
  • build all structure except for roads
  • main: define max number of creeps to spawn
  • main: define relative quantity of tasks per type (SOON: removed)

creepos's People

Contributors

inesteem avatar mirithering avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.