I'm announcing a new tool I have just developed to control and monitor DServer through the web.
Binaries can be downloaded there: https://bitbucket.or...ntrol/downloads
Source code: https://bitbucket.or...rvercontrol/src
The interface is pretty simple, as shown on the screenshots below:
SSC1.PNG 46.3KB 12 downloads
This is the admin login page. Enter your secret password (not your ingame password, this one is a different one) and you get access to a number of functions described in the next shots. This step is optional, the site is also usable for regular non-privileged users.
SSC2.PNG 49.15KB 3 downloads
The shot above shows the status page, which displays the status of the server, including its current load. It's not very useful, since DServer typically starts acting up long before the SPS falls below 50, but in the future I'm hoping I can show the tick delay, which is a better figure to show. The enigmatic "Reduce load" button simply triggers a server input MCU in the mission (configurable). It's then up to the mission logic to deactivate non-essential entities. Everybody gets to click that button, but it won't do anything unless you are logged in. Below is the list of players, empty in this case. The page auto-updates every 60 seconds.
SSC3.PNG 73.13KB 4 downloads
Here comes the interesting part. This page is visible to all, but only editable if you are logged in. It allows one to schedule a number of events. It's all pretty self-explanatory, I believe. It may take up to a minute for the server to execute an event whose time has come.
The list is saved to disk, meaning if you need to restart the controller (for instance after an upgrade; it should not crash - if it does, you get all your money back ), the list will still be there. Note that events that should have executed but were missed will be simply dropped.
One last detail before I forget: event times in the GUI are UTC, keep that in mind. The format is year-month-day hour:minute, where year, month and day are optional. If left out, today's values will be used. The button on the right retrieves the current time of the server (UTC), so the easiest is probably to just click that button and edit the field.
Edited by coconut, 27 February 2016 - 17:51.