MichaelOpenRCT2 Posted May 12, 2018 Share Posted May 12, 2018 Hi, This post would be classified as a "Problem" under this "Problems, Bugs and Feedback" section. I am creating a new server on my Linux server and I wish to keep the server automatically updated. My current problem is that there is no way to directly see what the latest released server version is. I have three options here: Scrape the raw file of https://github.com/OpenRCT2/OpenRCT2/blob/6cdcda2c653a3e1ba1ff230128bbd36788c3dbc8/src/openrct2/Version.h and https://github.com/OpenRCT2/OpenRCT2/blob/5284b6754637746ced392dad961343030aabc3d0/src/openrct2/network/Network.cpp and find out the latest version through that. The problem with that is that I wouldn't know if the latest download was actually released on https://openrct2.org/downloads and I wouldn't want to compile it myself if it'll take a couple of minutes or hours before the latest download is released to the public. Additionally (I haven't tested if the launcher works for a server myself yet) but I could potentially use the launcher to update the server. The problem with this is: I don't even know if you can use the launcher to run a server. Even if the launcher were to update the game itself automatically, I would still have no way of knowing to restart the server. Lastly, I originally planned on checking https://openrct2.org/downloads periodically but then I found this link: https://openrct2.org/altapi/?command=get-latest-download&flavourId=7&gitBranch=develop which does the same thing. Again, the problem with this is that I'll be able to know when the latest update comes out, but, if it's just a client update I'm not interested in it (since you guys update multiple times a day (which is actually really nice)). I don't know what I can do here. If someone could link me to a way of strictly finding the latest server version and not the client version (something that would be through altapi or similar would be nice) I would appreciate it. Thanks. If this doesn't work out then I guess I will have to keep track of the version number in bullet #1 and check if it changed every time bullet #3 changes. Link to comment
Broxzier Posted May 19, 2018 Share Posted May 19, 2018 Currently there is no way of checking for the latest network version through an API that I'm aware of. This is definitely something that we should include though! For now I think it's best to set up a cronjob that checks for NETWORK_STREAM_VERSION in https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/network/Network.cpp and if it's different from your current network version check if the commit has a build. If you can manage to get the launcher running, you only have to run it and it'll update the binaries, then launch OpenRCT2 with the commands you want again. 1 Link to comment
MichaelOpenRCT2 Posted May 20, 2018 Author Share Posted May 20, 2018 Thanks. I figured that would be the case. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now