Commit Graph

47 Commits

Author SHA1 Message Date
c8efd34080 ignore new binary
Create new bserv binary

Herein lie the following ideas:

- change package visibility of many things
- try to stash the globals into structs
- the code is far from correct; it merely compiles
2014-03-31 23:21:14 -07:00
9a4b76f610 Added io.Reader and io.Writer wrapper
This finalizes the work on getting the server to support multiple encodings for
players and spectators.
2014-03-13 00:12:21 -07:00
e6c7abc969 Implemented Fraser's suggestion
Typically client offers supported encodings, then the server chooses the
optimal one.
2014-03-10 21:58:36 -07:00
f645c42eb3 Added encoding negociation step into protocol.
This is the first step involved in letting go clients talk gob to the game
server.

Still missing: actually use the client's prefered encoding
2014-03-10 00:05:25 -07:00
00373be3da fixed misspelling 2014-03-10 00:03:51 -07:00
6fd4138740 added bw calcs
unfortunately there is an issue with how these are calculated, and they don't
decrease as things quiet down. Well, the bad numbers are their for your
consumption, and should Just Work TM when appropriate changes in
bitbucket.org/smcquay/bandwith land. And they will. But I'm tired now.
2014-03-03 22:56:26 -08:00
491d972a4b added NewSpectator and NewPlayer funcs 2014-02-17 01:07:29 -08:00
5d9103f176 Pulled out common code from spectator and player 2014-02-17 00:42:52 -08:00
bc58ee9165 solved spectator disconnect issue 2014-01-29 22:12:26 -08:00
ff3f9a5137 changed the stats payload
As it turns out there are other citizens of this world, not just the botclient.
So I have properly labeled the payload with a type. This makes the web
front-end less breaky.
2014-01-23 23:00:45 -08:00
7bb5ae59b3 send the client calculated values for stats 2014-01-23 21:11:13 -08:00
c6c45ace51 cleaned up some logging 2014-01-23 21:09:27 -08:00
d3070ad501 send the client max points for the game 2014-01-22 22:14:22 -08:00
Fraser Graham
3fa53daadb rewrite of the stats system 2014-01-16 00:02:59 -08:00
Fraser Graham
90b7731865 allow the control interface to specify game type 2014-01-15 22:16:06 -08:00
3bb710dd9c point limit parametrized 2013-11-29 01:10:49 -07:00
Fraser Graham
c9f0fb08bb removing unused field in boardstate 2013-11-16 23:16:12 -08:00
Fraser Graham
58c084c7ab bandwidth reduction, filtering explosions and sending objects as [4]int 2013-11-16 23:13:03 -08:00
5a2651d0dd allow object specification 2013-11-16 19:57:13 -08:00
50868809bd revert me: default to allowing connecting players to start games 2013-11-14 00:18:46 -08:00
2e774285ba quieted things down slightly (logging) 2013-11-13 23:47:42 -08:00
245c483f9e added simple game stats 2013-11-13 23:45:02 -08:00
84ed6c9c32 added gameover packet 2013-11-13 22:24:54 -08:00
aabda1cc90 added config file support 2013-11-13 20:38:57 -08:00
Fraser Graham
c7d5e4be87 support setting heading in instructions 2013-11-11 21:36:11 -08:00
Fraser Graham
3f40fe4603 put point limit back to normal 2013-11-11 20:31:46 -08:00
Fraser Graham
9de2b51f46 fixed naming 2013-11-08 22:59:56 -08:00
Fraser Graham
570d8eea8e get multibots working 2013-11-08 22:26:56 -08:00
Fraser Graham
e39a97089e First pass of multibot support 2013-11-08 21:25:42 -08:00
49ff6af1f3 minor cleanup
- removed comment-disabled code
- reduced verbosity in protocol logging
2013-11-07 22:11:54 -08:00
caea45741f Added ability to configure game at creation time 2013-11-07 22:11:54 -08:00
Fraser Graham
14f6c65e86 obstacle support 2013-10-25 22:30:15 -07:00
Fraser Graham
f9b18eb253 Convert to 32-bit to save space in the serialization 2013-10-19 00:00:51 -07:00
c074397c1f bugfix for incorrect logic in game creation 2013-10-18 23:56:06 -07:00
Fraser Graham
c80acb478b All sorts of fun stuff...
- stats are now based on a 1-100 ranged and mapped to sensibles
- turnspeed and fire rate are available stats
- bugs in movement are squished
2013-10-18 23:22:35 -07:00
d19b3f71fa added ability to autovivify games in debug mode 2013-10-18 20:49:57 -07:00
56c965add7 some clean up
Mainly adding some comments, and some function renaming
2013-09-28 12:59:17 -07:00
2a2f4f6f96 moved all negociation code into a single function 2013-09-28 12:37:23 -07:00
e33f2c0c4f moved code out of awkward bots repo 2013-09-27 22:27:05 -07:00
472e2011b9 logging and infinite melee 2013-09-27 00:03:32 -07:00
13c0cd047b use user-provided name in /game/list/ output 2013-09-26 21:51:57 -07:00
fb0e6d92d7 Sorted out extra load
turns out we were never exiting the loop even when all bots left. Games now
shut down when there ever has been bots and they all leave (or are killed,
I think).
2013-09-04 23:23:05 -07:00
b495b16065 refactor for bot 2013-09-03 23:26:40 -07:00
835303c53d middle of refactor 2013-09-01 23:00:09 -07:00
0512bb7664 added test for out of order conf, found bug that needs fixing 2013-08-26 23:09:39 -07:00
1b29096479 pared down logging in favor of unittests 2013-08-26 23:02:41 -07:00
ccd5dc3961 moved negociation code to func 2013-08-21 07:53:34 -07:00