Nice mods! Is there a place to post private server mods to yet? Also, I've edited the grunt-screeps to allow integration with my private server mod:
Posts made by Zininzinin
-
RE: pushing code
-
RE: pushing code
Aww poo. You beat me to it. I just finished adding auth to my code push method, but it could use some touch up. Now i just need to pull request for grunt-screeps to be able to hit this.
{"email": "test@test.com", "password": "pass", "branch":"default","modules":{"main":"require(\"hello\");","hello":"console.log(\"Hello World!\");"}}
-
RE: pushing code
Woot! I got a v1 of a mod to do this. Note that there is no authentication for this meaning that anyone can push any code for any player. I'm working on getting auth to work, but for those like me just using private server as a personal PTR, it works.
https://github.com/zininzinin/code-push-sceeps
Call Example:
{"email": "test@test.com", "branch":"default","modules":{"main":"require(\"hello\");","hello":"console.log(\"Hello World!\");"}}
-
RE: pushing code
@Finndibaen See the readme section on Authentication.
I will say that looking at the code it is possible to implement your own version of this through mods. If you look in the examples there is a /api/test/ endpoint. You might be able to reimplement the official screeps api/user/code by forwarding the auth token? I'm looking into what it would take to implement this mod.