Screeps Api

Screeps Api 7,0/10 9015 votes

R/screeps: Discussion about Screeps(the world's first MMO strategy sandbox game for programmers. Cargo Features check-all-casts. By default, screeps-game-api assumes that the Screeps JavaScript API calls return the types that they are documented to return and bypasses instanceof checks when constructing rust wrappers for those return values.

This is an unofficial client for the Screeps Unoffical API.

Since the API is unofficial it could in theory change at any time. In practice though breaking changes are rare.

Setup:

Simply install the library using pip.

Usage

Authentication

To authenticate to the primary servers just supply a username and password.

The static speaks my name. A dark/sad/weird/funny first person exploration game. You play a man on his last night alive as he obsesses over a mysterious painting. More of a story game in that it emphasizes mood and character over gameplay. Takes ten minutes to play and has 'next-gen' features like a shrimp tank. The Static Speaks My Name: Explained - Duration: 15:26. Shenaotic 308,325 views. 246 videos Play all One-Offs CrankGameplays; THE LOVE. Stream The Static Speaks My Name- Ambient Video Game Music by Shawn Claude Jones from desktop or your mobile device. The Static Speaks My Name- Ambient Video Game Music by Shawn Claude Jones published on 2014. The static speaks my name soundtrack. The Static Speaks My Name; 2015; Category Gaming; Show more Show less. Advertisement Autoplay When autoplay is enabled, a suggested video will automatically play next.

It is also possible to access private servers with the host and secure parameters.

Note that by default private servers do not use SSL and all traffic is unencrypted.

API

The API itself is a simple REST-based API. Each method in the api library corresponds to a different endpoint for the API.

The best way to discover functionality is to read through the library itself.

Console Example

User Information Example

Socket

Screeps provides a sizable amount of data over a websocket. This includes console data and room details.

Temple run oz game download. The best way to utilize the socket is to extend screepsapi.Socket and override the various abstract functions.

This adds user/pass auth to the screeps private server

  1. npm install screepsmod-auth in your server folder.
  2. Thats it!

Web Form Method

  1. Open the steam client at least once (Required to create initial account)
  2. Goto http://yourServerHostOrIP:21025/authmod/password/
  3. Enter your desired password
  4. Click Signin with steam
  5. Your password should be set and you be able to login via API

Server CLI method

  1. Open the screeps server CLI (npx screeps cli or via Steam Server UI)
  2. Run setPassword('Username', 'YourDesiredPassword')
  3. Now you should be able to login via API

config.auth.authUser(username,password)

Returns a Promise, resovles to either the user object or false

To enable github auth, you need to add a github client id and client secret to your .screepsrc
(Or ENV vars GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET with other launchers)

Make sure to set the callback url to point to /api/auth/github/return on your server. ex: https://screeps.mydomain.com/api/auth/github/return
Get the id and secret from youe Github settings: https://github.com/settings/developers

.screepsrc

You can set the initial CPU that gets placed on a user (Steam users always receive 100), and alsocontrol whether the new user can place spawns. This can be used in combination with a whitelistor manual approval to control spawning.