Is there a way to download scripts
-
I would like a way to easily download all my scripts from the browser editor to my machine.
This would be helpful for people who want to backup their files, or those who want to switch to developing locally.
-
There is no direct way to "download" the scripts, but you have two other options:
1) Screeps has a (rather badly documented) public REST API, you can use for making basic http requests to fetch/push resources. See this article: http://support.screeps.com/hc/en-us/articles/203022612-Committing-scripts-using-direct-API-access
2) On the other hand you can link your github repo to the account to push changes from your repo to the game server.
-
So the only way to get the scripts out of the online editor would be manual copy and paste or a GET request through the API?
-
Hello, digging up an old topic !
I'm new to Screeps and wanted to backup my files too.
So, last night, I wrote a little script to do that.
It's ugly but don't judge, it's not its fault you know ...
I don't know if you still need this but here is the link :
-
You can run an private server and login to that server. then your scripts will be at: C:\Users\%USERNAME%\AppData\Local\Screeps\scripts\your steam name___some random number(maby port number?)