TheGrunch
12-25-2013, 04:59 AM
http://www.youtube.com/watch?v=yLqR5khwDcU
I've been writing a server controller, mainly because I wanted a controller that offered a simple way of running a DCG campaign for just a few people, but also as an exercise to introduce myself to writing programs in Java, and later in Clojure.
I actually wrote a lot more functionality in pure Java before I became frustrated with the awkward multithreading features and started rewriting the whole thing from scratch a few days ago.
This is what is working so far:
Written in Java/Clojure so very portable - DCG features will only work on Windows though.
Direct access to the remote server console via a TCP socket connection to view output and enter commands.
Intelligent parsing of console output - at present difficulty settings are parsed from the server at runtime before they are loaded into the table in the Settings page. This means that I won't have to rewrite the program every time DT add a difficulty setting.
Things that were tested in the Java-only branch and shouldn't take me too long to restore:
Local mission selection - when you are running the server on the local machine, you can simply select the server .exe and the .mis file and you will be able to load the selected mission.
Remote mission loading using direct path entry - when you are using the server remotely you can enter a path for the mission to load.
DCG integration - the Next button generates a new DCG mission and when complete, loads the mission. This can only be done when the server is running locally or when the server directory is accessible over a network share.
Easily editable .ini configuration file.
Planned features:
Mission cycle configuration.
In-game control via chat - enter commands on chat to control the server.
Simple pilot management. I don't envisage this being extremely detailed.
Features I'm not planning to write:
Statistics.
Anybody have any suggestions/input/comments?
I've been writing a server controller, mainly because I wanted a controller that offered a simple way of running a DCG campaign for just a few people, but also as an exercise to introduce myself to writing programs in Java, and later in Clojure.
I actually wrote a lot more functionality in pure Java before I became frustrated with the awkward multithreading features and started rewriting the whole thing from scratch a few days ago.
This is what is working so far:
Written in Java/Clojure so very portable - DCG features will only work on Windows though.
Direct access to the remote server console via a TCP socket connection to view output and enter commands.
Intelligent parsing of console output - at present difficulty settings are parsed from the server at runtime before they are loaded into the table in the Settings page. This means that I won't have to rewrite the program every time DT add a difficulty setting.
Things that were tested in the Java-only branch and shouldn't take me too long to restore:
Local mission selection - when you are running the server on the local machine, you can simply select the server .exe and the .mis file and you will be able to load the selected mission.
Remote mission loading using direct path entry - when you are using the server remotely you can enter a path for the mission to load.
DCG integration - the Next button generates a new DCG mission and when complete, loads the mission. This can only be done when the server is running locally or when the server directory is accessible over a network share.
Easily editable .ini configuration file.
Planned features:
Mission cycle configuration.
In-game control via chat - enter commands on chat to control the server.
Simple pilot management. I don't envisage this being extremely detailed.
Features I'm not planning to write:
Statistics.
Anybody have any suggestions/input/comments?