Trying to get my creeps to go to a flag when they have nothing to do Hello, I am trying to figure out how to get my creeps to go to a flag while sitting around idle. I'm fairly new to java script and haven't figured out how to do it yet. Use npm install screeps@ptr in order to install the supported server branch. Third-party GUI utilities. You can integrate the renderer library to your own application which would display Screeps game objects in the same way as in the official game client. For example, you can develop a standalone room history viewer, a third-party game client, etc.
Screeps Typescript Starter is a starting point for a Screeps AI written in Typescript. It provides everything you need to start writing your AI whilst leaving main.ts
as empty as possible.
You will need:
npm install -g rollup
)Download the latest source here and extract it to a folder.
Open the folder in your terminal and run your package manager to install install the required packages and TypeScript declaration files:
Fire up your preferred editor with typescript installed and you are good to go!
Screeps Typescript Starter uses rollup to compile your typescript and upload it to a screeps server.
Move or copy screeps.sample.json
to screeps.json
and edit it, changing the credentials and optionally adding or removing some of the destinations.
Running rollup -c
will compile your code and do a 'dry run', preparing the code for upload but not actually pushing it. Running rollup -c --environment DEST:main
will compile your code, and then upload it to a screeps server using the main
config from screeps.json
.
You can use -cw
instead of -c
to automatically re-run when your source code changes - for example, rollup -cw --environment DEST:main
will automatically upload your code to the main
configuration every time your code is changed.
Finally, there are also NPM scripts that serve as aliases for these commands in package.json
for IDE integration. Running npm run push-main
is equivalent to rollup -c --environment DEST:main
, and npm run watch-sim
is equivalent to rollup -cw --dest sim
.
The type definitions for Screeps come from typed-screeps. If you find a problem or have a suggestion, please open an issue there.
We've also spent some time reworking the documentation from the ground-up, which is now generated through Gitbooks. Includes all the essentials to get you up and running with Screeps AI development in TypeScript, as well as various other tips and tricks to further improve your development workflow.
Maintaining the docs will also become a more community-focused effort, which means you too, can take part in improving the docs for this starter kit.
To visit the docs, click here.
Issues, Pull Requests, and contribution to the docs are welcome! See our Contributing Guidelines for more details.
This is my repository for the game Screeps.
A documentation can be found here and its related API here.
It only makes sense to push the changes directly to the master
branch, that is, because the local project files that screeps generate, will only get overwritten when changes happen to the master. Notice that every local files will get overwritten as well when commits get pushed to the master. So either copy changes beforehand or work in the repo directly.
To make VS Code work with ScreepsAutocomplete to enjoy auto-completion functionality with the Screeps API the following Steps are necessary:
dist/screeps.d.ts
into our root levelnpm install typings --global
jsconfig.json
on root level with{ 'compilerOptions': { 'target': 'ES6' }, 'exclude': [ 'node_modules' ] }
_references.js
in the ScreepsAutocomplete folder and filling it with this info:screeps-scripts is MIT licensed.
Also connect usb cable to your device if you’re using mobile devices.3. Zombiewood hacked.
Trying to get my creeps to go to a flag when they have nothing to do Hello, I am trying to figure out how to get my creeps to go to a flag while sitting around idle. I'm fairly new to java script and haven't figured out how to do it yet. Use npm install screeps@ptr in order to install the supported server branch. Third-party GUI utilities. You can integrate the renderer library to your own application which would display Screeps game objects in the same way as in the official game client. For example, you can develop a standalone room history viewer, a third-party game client, etc.
Screeps Typescript Starter is a starting point for a Screeps AI written in Typescript. It provides everything you need to start writing your AI whilst leaving main.ts
as empty as possible.
You will need:
npm install -g rollup
)Download the latest source here and extract it to a folder.
Open the folder in your terminal and run your package manager to install install the required packages and TypeScript declaration files:
Fire up your preferred editor with typescript installed and you are good to go!
Screeps Typescript Starter uses rollup to compile your typescript and upload it to a screeps server.
Move or copy screeps.sample.json
to screeps.json
and edit it, changing the credentials and optionally adding or removing some of the destinations.
Running rollup -c
will compile your code and do a 'dry run', preparing the code for upload but not actually pushing it. Running rollup -c --environment DEST:main
will compile your code, and then upload it to a screeps server using the main
config from screeps.json
.
You can use -cw
instead of -c
to automatically re-run when your source code changes - for example, rollup -cw --environment DEST:main
will automatically upload your code to the main
configuration every time your code is changed.
Finally, there are also NPM scripts that serve as aliases for these commands in package.json
for IDE integration. Running npm run push-main
is equivalent to rollup -c --environment DEST:main
, and npm run watch-sim
is equivalent to rollup -cw --dest sim
.
The type definitions for Screeps come from typed-screeps. If you find a problem or have a suggestion, please open an issue there.
We've also spent some time reworking the documentation from the ground-up, which is now generated through Gitbooks. Includes all the essentials to get you up and running with Screeps AI development in TypeScript, as well as various other tips and tricks to further improve your development workflow.
Maintaining the docs will also become a more community-focused effort, which means you too, can take part in improving the docs for this starter kit.
To visit the docs, click here.
Issues, Pull Requests, and contribution to the docs are welcome! See our Contributing Guidelines for more details.
This is my repository for the game Screeps.
A documentation can be found here and its related API here.
It only makes sense to push the changes directly to the master
branch, that is, because the local project files that screeps generate, will only get overwritten when changes happen to the master. Notice that every local files will get overwritten as well when commits get pushed to the master. So either copy changes beforehand or work in the repo directly.
To make VS Code work with ScreepsAutocomplete to enjoy auto-completion functionality with the Screeps API the following Steps are necessary:
dist/screeps.d.ts
into our root levelnpm install typings --global
jsconfig.json
on root level with{ 'compilerOptions': { 'target': 'ES6' }, 'exclude': [ 'node_modules' ] }
_references.js
in the ScreepsAutocomplete folder and filling it with this info:screeps-scripts is MIT licensed.
Also connect usb cable to your device if you’re using mobile devices.3. Zombiewood hacked.