Stephen McQuay
8b52f93ca5
Don't automatically do concurrency for users
http://talks.golang.org/2013/bestpractices.slide#25
6 years ago
Stephen McQuay
0d11b8a0ba
Added docs around MapLock, change visibility of methods
Removed unused global
6 years ago
Stephen McQuay
e185365e2d
moved MapLock to control
6 years ago
Stephen McQuay
e02d220026
Fixed gob issue
6 years ago
Stephen McQuay
2fd97a7092
Removed extra variables
6 years ago
Stephen McQuay
a3fa670c3d
Fixed scoping issue
The bug here was that when you would try to start a game it would still be nil
after the block where g was redefined. Just me being sloppy.
6 years ago
Stephen McQuay
330e72c21f
Fixed unittests
6 years ago
Stephen McQuay
81beee8b43
Put delete of game from controller in right place
Added some debugging
6 years ago
Stephen McQuay
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
6 years ago
Stephen McQuay
62222a9ad9
Removed a development json file
6 years ago
Stephen McQuay
9a4b76f610
Added io.Reader and io.Writer wrapper
This finalizes the work on getting the server to support multiple encodings for
players and spectators.
6 years ago
Stephen McQuay
e6c7abc969
Implemented Fraser's suggestion
Typically client offers supported encodings, then the server chooses the
optimal one.
6 years ago
Stephen McQuay
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
6 years ago
Stephen McQuay
00373be3da
fixed misspelling
6 years ago
Stephen McQuay
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.
6 years ago
Stephen McQuay
67ad90d7a4
added logging line when using http profile info
I could never remember the url, so I print it out now.
6 years ago
Stephen McQuay
0959be2df2
updated for changes in bandwidth
6 years ago
Stephen McQuay
a932d24683
Added a memprofile dump flag and mechanism
6 years ago
Stephen McQuay
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.
7 years ago
Stephen McQuay
ecc70606a9
missed some protoTalker conversions
7 years ago
Stephen McQuay
491d972a4b
added NewSpectator and NewPlayer funcs
7 years ago
Stephen McQuay
0bc1575f81
fixed bug in last commit
7 years ago
Stephen McQuay
5d9103f176
Pulled out common code from spectator and player
7 years ago
Stephen McQuay
b131b4bc53
Count bytes coming in/out of player
7 years ago
Stephen McQuay
ad9d6c1026
Switched to using json.Encoder and Decoder
7 years ago
Stephen McQuay
bc58ee9165
solved spectator disconnect issue
7 years ago
Stephen McQuay
eac39ad9d1
Changed the collision response from boolean to Collision
7 years ago
Stephen McQuay
0698f21a0f
Merge branch 'master' of ssh://bitbucket.org/hackerbots/botserv
7 years ago
Stephen McQuay
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.
7 years ago
Fraser Graham
dce3f15c4c
self shots are still suicides
7 years ago
Stephen McQuay
7bb5ae59b3
send the client calculated values for stats
7 years ago
Stephen McQuay
c6c45ace51
cleaned up some logging
7 years ago
Stephen McQuay
d3070ad501
send the client max points for the game
7 years ago
Stephen McQuay
a57903d81c
added tests for last commit (ProbeResult.Type)
7 years ago
Stephen McQuay
714ea669d2
added probe result type
7 years ago
Stephen McQuay
a755d28688
parity to formatting
7 years ago
Stephen McQuay
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/
7 years ago
Fraser Graham
72d5a1a64c
stats stats stats stats
7 years ago
Fraser Graham
3fa53daadb
rewrite of the stats system
7 years ago
Fraser Graham
90b7731865
allow the control interface to specify game type
7 years ago
Fraser Graham
9583de2ffa
game types, deathmatch and melee
7 years ago
Stephen McQuay
845db00032
added file line numbers to the logs
7 years ago
Stephen McQuay
10373d06d2
update for api change in vector
7 years ago
Stephen McQuay
cf3c7e8629
Merge branch 'point-limit'
7 years ago
Stephen McQuay
3bb710dd9c
point limit parametrized
7 years ago
Fraser Graham
33aea792ed
allow probes while repairing and scanning
7 years ago
Fraser Graham
ffbd656bc7
stop firing
7 years ago
Fraser Graham
83f5d51bc4
min damage from collisions
7 years ago
Fraser Graham
f6c8399699
changes to collision response and player to player collision
7 years ago
Fraser Graham
34b8ec045f
start using new poly intersection against buildings
7 years ago