Open lf- opened 4 years ago
This looks like something that will need to be fixed in rust-screeps-api.
I think I have an old in-progress update on my hard disk which I started a while ago but never finished. I've got some free time, so I'd be down to either see if I can finish that today/tomorrow, or otherwise I'd upload the code if you want to see what you can do with it.
Would you be interested in fixing/updating screeps-game-api?
I had a lot of trouble trying to understand why some of the very strange compiler errors were happening given an intersection of wrong dependency versions and use of old preview functionality on a new compiler. I can poke at it I guess- depends on how much time I have in the near future.
Alright
I've got some experience upgrading/dealing with the weird future versions, and I know how annoying it can be to work with the old versions when all the docs point to the newer ones, so I can at least try to resolve those errors today. We'll see how it goes from there, I guess?
If you find time and end up inspired, fixing the login errors in rust-screeps-api shouldn't be too complicated. The logging is set up to complain about exactly what it finds wrong, and the solution usually ends up being either adding new fields to a few structs in rust-screeps-api, or making existing fields optional, and then just copying the JSON data from the logged warning/error in to make a new parsing test.
Alright - I've updated screeps-game-api
and srv
to the latest futures, as well as associated crates (tokio, hyper, etc.), and I've pushed all of the in-progress protocol updates to screeps-game-api
.
There are still outdated protocol structs in screeps-game-api
, so it isn't fully working. I probably won't be fixing those anytime soon. However, all the dependency issues should be resolved.
I've also written up some notes on doing the protocol updates at https://github.com/daboross/rust-screeps-api/blob/master/CONTRIBUTING.md, if you're interested in getting it running with the latest official server.
To reproduce:
use srv to log in
Observed behaviour:
Also, there are some build issues, which I will file a PR to partially fix.