Commit graph

195 commits

Author SHA1 Message Date
Marc Di Luzio
a1e425258d exit from perl, don't return outside of subroutine 2015-01-24 11:13:28 +00:00
mdiluzio
3b5196830c Add stub files for java, python and ruby apis 2015-01-13 20:52:29 +00:00
Marc Di Luzio
b01c93a000 Update perl module to 0.4 2015-01-10 18:10:14 +00:00
Marc Di Luzio
c9fb6896d2 Update README.md 2015-01-10 17:33:25 +00:00
Marc Di Luzio
f71bd4b1d6 Update README.md 2015-01-10 17:32:36 +00:00
Marc Di Luzio
11a8873dc5 Update readme and fix unneeded ./ 2015-01-10 17:31:43 +00:00
mdiluzio
ae8a3bf0c2 Update changelog for v0.4.0 2015-01-10 17:29:22 +00:00
mdiluzio
f13a8bd5c4 Ensure that hostname is also properly highlighted 2015-01-10 17:25:01 +00:00
mdiluzio
5e66596d30 Update the Readme with new server and client communication options 2015-01-10 17:23:48 +00:00
mdiluzio
3bb5766061 Fix completion script to take into account non-positional arguments 2015-01-10 17:06:23 +00:00
mdiluzio
96153f8c60 Update launcher script with handing of return value 2015-01-10 17:04:55 +00:00
mdiluzio
96f5c08c14 Update completion script with new parameters 2015-01-10 16:59:45 +00:00
mdiluzio
d65ef46634 Fix some bugs in generation scripts 2015-01-10 16:56:42 +00:00
mdiluzio
06057e6e52 Add perl launcher script and new Readme 2015-01-10 16:56:27 +00:00
mdiluzio
1e38a5f107 Update CMakelists to reflect refactor 2015-01-10 16:56:01 +00:00
mdiluzio
0ead12c7dd Huge refactor, pulling server and local out into their own binaries 2015-01-10 16:55:30 +00:00
mdiluzio
1b2010faba Use some version checking on generator scripts, preventing a full rebuild on every build 2015-01-10 15:11:36 +00:00
Marc Di Luzio
30af43ae95 Fix walls in strings and move constructor 2015-01-07 13:25:16 +00:00
Marc Di Luzio
7811daa78b Merge branch 'net' of https://github.com/mdiluz/ttrts into net 2015-01-07 12:40:44 +00:00
Marc Di Luzio
c51119c3e2 Add TTRTS: Prefix to output 2015-01-07 12:40:41 +00:00
25e0fa04de Merge branch 'net' of https://github.com/mdiluz/ttrts into net 2015-01-07 12:40:07 +00:00
3291bf126e Compare write result correctly with 0
Fixes client sending of orders
2015-01-07 12:39:27 +00:00
JackUnthank
a0ff8680a3 Make the AI print out the walls not the map.
Don’t worry I wasn’t doing this all afternoon I had a spare 5 minutes
whilst waiting for some .DAT files to md5. =P
2015-01-06 17:01:15 +00:00
Marc Di Luzio
a7421fa07b Guard against missing file param for server 2015-01-06 12:39:56 +00:00
mdiluzio
1c97177956 Major cleanup of client code, extracting various functionality 2015-01-04 13:09:37 +00:00
mdiluzio
3ed25cd37f Fix up all logging output
Remove debug logging
Use cerr or clog in the correct places
refactor a few more functions
2015-01-04 11:59:58 +00:00
mdiluzio
b141314434 Some more refactoring with additional comments
Server now performs handshake instantly
2015-01-04 11:22:54 +00:00
mdiluzio
5c8666d4fb More refactoring by pulling code out of client and server files 2015-01-04 11:10:08 +00:00
mdiluzio
43d688a728 Refactor running game server into own function 2015-01-03 22:43:39 +00:00
mdiluzio
4055d85d99 Use new fatal_error and fatal_perror functions for errors 2015-01-03 22:30:52 +00:00
mdiluzio
1785ce2fc0 Add game name to handshake and formalise handshake format 2015-01-03 20:04:31 +00:00
mdiluzio
61c012370d Fix filesystem game method 2015-01-03 19:31:42 +00:00
mdiluzio
b532f1c9c8 Make client output and read in game state and order files 2015-01-03 19:27:08 +00:00
mdiluzio
18cfcff264 Improve both client and server code to account for END of messages, allowing for incomplete packets with TCP 2015-01-03 18:55:44 +00:00
mdiluzio
b34b933dcd Pull base netcode functions out into net files 2015-01-02 19:51:14 +00:00
mdiluzio
b43927a1da add user input for starting the game 2015-01-02 19:46:09 +00:00
mdiluzio
770502184c Make client and server perform a handshake to agree on player IDs 2015-01-02 19:31:14 +00:00
mdiluzio
bccd043d2c Fix server functions being used wrongly 2015-01-02 19:05:58 +00:00
mdiluzio
a81b4ff8d0 Handle end game state properly 2015-01-02 19:00:28 +00:00
mdiluzio
e01a718ac6 Fix bug where we passed client info to the thread by ref, like an ape 2015-01-02 18:57:47 +00:00
mdiluzio
56e767bb5b Clients now connect and recieve gamestate information 2015-01-02 17:14:16 +00:00
mdiluzio
4285770d52 Allow multiple client connections on different threads 2015-01-02 16:18:18 +00:00
mdiluzio
dcb9d68fb4 Revert back to cleaner copy of server code 2015-01-02 16:09:24 +00:00
mdiluzio
83b9990bcc some more cleanup and using TTRTS_PORT 2015-01-02 15:25:30 +00:00
mdiluzio
b4240cf1c8 pull in very simple client/server demo code
inspired by http://www.linuxhowtos.org/C_C++/socket.htm
2015-01-02 15:13:05 +00:00
mdiluzio
0619031cb6 Use argc and argv passed down 2015-01-02 15:07:35 +00:00
mdiluzio
2281bcb6cd More refactoring of functionality into seperate files, with stubs for server and client 2015-01-02 15:03:29 +00:00
mdiluzio
8835bfb82a On second thoughts move filesystem game code out to a filesystem cpp 2015-01-02 14:09:29 +00:00
mdiluzio
0962546a82 Move current client code out to server file, still uses old file-system method 2015-01-02 14:04:37 +00:00
mdiluzio
3b5599ffad Remove references to non-existent maths 2015-01-02 14:04:11 +00:00