Sending data via jsonp
-
Id like to ask if anybody tries to send some data from game via jsonp. Is it even possible? Im thinking about gathering some information (cpu usage, number of screeps etc), then parse and present thouse data on my own server.
-
I haven't tried it via jsonp, but it is possible to send data out of creeps using web calls.
You can also read your data using the undocumented websockets api: https://gist.github.com/bzy-xyz/9c4d8c9f9498a2d7983d
You can subscribe to a certain part of your memory (say Memory.remoteMessage) and fill this part every tick, than read that on your server.
-
That sounds amazing, thank you for tip.
-
"but it is possible to send data out of creeps using web calls"
Can you elaborate a bit?