This a small program that use pseudo terminal in order to read the full output of a garry's mod server.
- Only one java file that can start and read a garry's mod server
- A cpp file not used anymore, that was used to do the job of the pty4J lib
Simply run the gradle 'jar' task !
You can also find a compiled jar in the release.
Put the compiled jar in the directory where the garry's mod server's executable is. Then
run java -jar ./gmodconsolereader.jar <usual-cmd-for-a-gmod-server>
.
For example, I
have java -jar ./gmodconsolereader.jar ./srcds_run -game garrysmod +maxplayers 15 +map rp_rockford_karnaka +host_workshop_collection 1382039356 -norestart
That it, you should have the garry's mod server starting and see the output in the console.
Note : The program wasn't test on a Windows system, but I think that you only need to change ./srcds_run
for ./srcds.exe