Commit Graph

212 Commits

Author SHA1 Message Date
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
240492520e I was passing around a member variable.
I just realized that there is no need to pass around a slice to something to
which protoTalker already has access.
2014-03-09 21:53:55 -07:00
67ad90d7a4 added logging line when using http profile info
I could never remember the url, so I print it out now.
2014-03-08 18:28:08 -08:00
0959be2df2 updated for changes in bandwidth 2014-03-08 18:27:48 -08:00
a932d24683 Added a memprofile dump flag and mechanism 2014-03-08 15:29:08 -08: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
ecc70606a9 missed some protoTalker conversions 2014-02-17 22:18:16 -08:00
491d972a4b added NewSpectator and NewPlayer funcs 2014-02-17 01:07:29 -08:00
0bc1575f81 fixed bug in last commit 2014-02-17 01:06:53 -08:00
5d9103f176 Pulled out common code from spectator and player 2014-02-17 00:42:52 -08:00
b131b4bc53 Count bytes coming in/out of player 2014-02-17 00:10:55 -08:00
ad9d6c1026 Switched to using json.Encoder and Decoder 2014-02-04 08:06:12 -08:00
bc58ee9165 solved spectator disconnect issue 2014-01-29 22:12:26 -08:00
eac39ad9d1 Changed the collision response from boolean to Collision 2014-01-27 20:35:56 -08:00
0698f21a0f Merge branch 'master' of ssh://bitbucket.org/hackerbots/botserv 2014-01-23 23:03:44 -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
Fraser Graham
dce3f15c4c self shots are still suicides 2014-01-23 21:20:57 -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
a57903d81c added tests for last commit (ProbeResult.Type) 2014-01-16 23:45:17 -08:00
714ea669d2 added probe result type 2014-01-16 23:04:49 -08:00
a755d28688 parity to formatting 2014-01-16 22:33:03 -08:00
7971198c17 Fixed collision detection in probes
This was a problem before when the probe hit an object that was further than
another object first. Now we traverse all objects all the time to find the
closest one. \o/
2014-01-16 00:56:35 -08:00
Fraser Graham
72d5a1a64c stats stats stats stats 2014-01-16 00:13:02 -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
Fraser Graham
9583de2ffa game types, deathmatch and melee 2014-01-15 21:41:40 -08:00
845db00032 added file line numbers to the logs 2014-01-13 20:54:01 -08:00
10373d06d2 update for api change in vector 2014-01-07 21:21:16 -08:00
cf3c7e8629 Merge branch 'point-limit' 2014-01-05 19:46:53 -08:00
3bb710dd9c point limit parametrized 2013-11-29 01:10:49 -07:00
Fraser Graham
33aea792ed allow probes while repairing and scanning 2013-11-27 20:33:57 -08:00
Fraser Graham
ffbd656bc7 stop firing 2013-11-27 08:55:51 -08:00
Fraser Graham
83f5d51bc4 min damage from collisions 2013-11-27 08:39:36 -08:00
Fraser Graham
f6c8399699 changes to collision response and player to player collision 2013-11-26 22:35:09 -08:00
Fraser Graham
34b8ec045f start using new poly intersection against buildings 2013-11-26 21:41:21 -08:00
Fraser Graham
b702afeb3a renaming rect to AABB 2013-11-24 14:26:40 -08:00
Fraser Graham
9ca442f10d stop sending all data to dead robots 2013-11-18 22:49:05 -08:00
4eb849a63f fixed resetart error vis-a-vis obstacles 2013-11-18 08:52:59 -08:00
Fraser Graham
cacb8b547d :( compile code before committing Fraser 2013-11-17 08:23:11 -08:00
Fraser Graham
4c4c0d4e67 objects have HP now, only direct hits hurt them 2013-11-17 08:21:36 -08:00
Fraser Graham
ae9d09596c prevent flipping between scan and repair for infinite awesomeness 2013-11-17 08:21:13 -08: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
f6b3027ded minor: changed some logging 2013-11-16 18:56:15 -08:00
4e55fa8ebe trim the hashes
I tried taking it down to 6, but it fails the tests consistently ...
2013-11-15 23:20:22 -08:00
f8fb523a76 fixed some httpstatu.es 2013-11-15 08:54:52 -08:00