npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

screeps-bot-kasamibot

v1.0.2

Published

A bot for the MMO RPG game Screeps, where you program your own AI.

Downloads

4

Readme

KasamiBot - Autonomous Screeps bot

Current Release: Cake and grief counseling - version 1.0

Read more about KasamiBot on the Github pages:

Documentation and features. The source code is available on github.


Install the bot:


What is Screeps?

Screeps is an open source MMO RTS game for programmers, where your mission is to code an AI. There is an official server hosted by the developers, and there are multiple open private servers. You can also run a server locally. To learn more, visit screeps.com or the steam page.

What is KasamiBot?

KasamiBot is a code base used by me (Kasami) on the public server, but customized for automation to be used as an opponent on private servers. It has a lot of features, and will be quite hard to compete with for new players, so you can customize the difficulty in the config.js-file. It allows you to set the bot as passive, meaning it will not attack your rooms; and slow, meaning it will use less of the advanced features included in the bot.

The bot is distributed as an minified version of the Typescript codebase I'm working on. This is not a community-driven codebase, but my personal screeps codebase.

I have also decided to include the full source code, available under the directory source on github. It is compiled from the original typescript, but is not uglified and should provide enough detail to understand what is going on and tweak it if you want to do that. I've also added a section in the documentation about how you can take manual control of the bot and use it as I do.

Can I use it on the public server?

Screeps is a game about programming your own AI. While I can't stop you from using this code on the public server, I highly recommend developing your own AI instead. I have decided to release the source for the bot, so you can further develop it, tune it and use it as you want. If you have any questions about the bot or about the features, please post an issue on github, and I can either answer there or further develop the documentation.

Remember, there is no right way to program your screeps AI, so I recommend trying to come up with your own solutions. Over time you will find a lot of joy in figuring our clever things to implement.


The next big release will focus on combat, and better replace the current HarassManager with a smarter DestructionManager. The goal is that it should be able to remove all hostile rooms around it.

Plans for release 1.1 - Some just like to watch the world burn

  • DestructionManager for intelligent attacks on hostile rooms
  • Improved AI for defending units when under siege
  • Better AI for Bank-teams, being able to defend themselves
  • Better defense when under siege, and response from the room itself and neighbouring rooms
  • Operation for guarding rooms owned by an enemy, but without spawns. This to prevent rebuilding.
  • Towers should be smarter, and avoid being drained
  • New team for harassing enemy rooms, that targets all neighbouring rooms and try to kill civilian units
  • Nuke-defense
  • Offensive use of nukes
  • Long-term siege at enemy rooms, with longbows, drainers and wreckerteams

Roadmap

  • Use Observers for scouting when reacing RCL 8
  • Faster and consistent boosting of units
  • Better response for invaders in portal room
  • More efficient wallbuilding, by splitting it up to repairers and haulers
  • Pillage enemy rooms by stealing valuable resources
  • Better operation for guarding wanted outposts
  • Tracking CPU usage for better deciding on how capable we are of expanding
  • New room-type, fortress, that is used to limit CPU-usage
  • Better DistributionManager for lowering transfer-costs of energy
  • Better TradeManager for finding good deals on the market