thornx Posted May 28, 2020 Posted May 28, 2020 Is there an API function which triggers when a new update for the dedicated server arrives (download available) ? We have multiple instances of well-visited servers in a datacenter. Lets say 30 People are on the Server. Some new come, some Player leaves the server. Then a new patch is available (like the supercarrier). For the update we have to kill all of the dcs.exe instances on the Server and run dcs_updater.exe, then restart the instances. The admins are not permanently present and we dont have physical access to the server. It would be great if we could start the update on the server automatically as soon as a patch arrives (with a script like: Check API > If new patch: kill all dcs.exe, start dcs_updater.exe, start all instances again ...). What comes to mind is a web crawler that searches https://updates.digitalcombatsimulator.com/ for new updates. However, it often takes a while between the announcement on https://updates.digitalcombatsimulator.com/ - and the actual availability of the download. In this case all players would be kicked from the server for no reason. Is there a way to accomplish this?
ED Team c0ff Posted May 28, 2020 ED Team Posted May 28, 2020 However, it often takes a while between the announcement on https://updates.digitalcombatsimulator.com/ - and the actual availability of the download. Nope, this page is updated directly from the public repository, so if it changed, the version is already available. The changelogs on the site were ahead of time a bit. Now we'll try to open them right after the version becomes available. Dmitry S. Baikov @ Eagle Dynamics LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.
thornx Posted May 29, 2020 Author Posted May 29, 2020 Thank you for the reply! I got it. So, I think the better option is to crawl the MD5 Fingerpringt from the dedicated Server Download Page. That should do the Job and trigger as soon, as a new Version is available for Download.
thornx Posted May 29, 2020 Author Posted May 29, 2020 Thank you for the reply! I got it. So, I think the better option is to crawl the MD5 Fingerpringt from the dedicated Server Download Page. That should do the Job and trigger as soon, as a new Version is available for Download. I didn't think this through. Its only the Installer :(
ED Team c0ff Posted May 29, 2020 ED Team Posted May 29, 2020 I didn't think this through. Its only the Installer :( this is the page to watch: https://updates.digitalcombatsimulator.com/ Dmitry S. Baikov @ Eagle Dynamics LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.
ED Team c0ff Posted June 1, 2020 ED Team Posted June 1, 2020 btw. awesome bandcamp album! Thank you very much! Dmitry S. Baikov @ Eagle Dynamics LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.
thornx Posted June 10, 2020 Author Posted June 10, 2020 Sorry for reviving this thread :-) I managed most of it. The only thing keeping our server from an automated update is the dcs_updater.exe The script worked fine for todays update. It started dcs_updater as intended. But the updater needs "Enter" to begin with the update process. Is there a option to start dcs_updater with "no promp"? So the updater starts without having to press "Enter"?
Recommended Posts