Commit Graph
100 Commits
Author SHA1 Message Date
sm 6f46dd3783 Added license file 2016-07-13 13:11:55 -06:00
sm 76ee015c0b don't render walls
previous commit makes real walls
2016-07-13 12:17:09 -06:00
sm 78b1711cd9 update for modern assetfs 2016-02-23 13:59:40 -08:00
sm e71d11cd4d temporary fix for stats route 2015-08-30 23:25:26 -07:00
sm 566d8b0879 Small tweak to download glyphicon 2015-08-30 23:16:59 -07:00
sm ea5a1f902a fixed but with matching https:// and wss:// 2015-08-30 02:29:10 -07:00
sm bb5f76cd97 got self-hosted website working. 2015-08-30 02:16:44 -07:00
sm 6bad869501 added fetching of source 2015-08-30 01:48:35 -07:00
sm 33f94af784 render arena 2015-08-27 22:29:50 -07:00
sm 6bad86730e List available games on front page 2015-08-27 21:43:09 -07:00
sm 28353170c6 Renamed botsrv 2015-08-27 20:49:01 -07:00
sm 7818a64756 enable static asset serving
- It changes behavior depending on if STATIC is set.
- will need to run $(go generate ./...) before compiles will work
2015-08-26 23:16:12 -07:00
sm 6797c134d1 first wave of static assets 2015-08-26 23:15:53 -07:00
sm 77f9f8033b added ace editor 2015-08-26 23:14:54 -07:00
sm 4b5c214f95 added jquery 2015-08-26 23:14:26 -07:00
sm 15d41be35a added bootstrap 2015-08-26 23:14:13 -07:00
sm 5cac75b638 Made info url more useful (start and uptime) 2015-08-26 22:25:38 -07:00
sm b5cac7c02a placed REST api behind /api/v0/ 2015-08-26 22:18:48 -07:00
sm af926d7f3a renamed botserv -> hbd 2015-08-26 22:17:28 -07:00
sm 446eba5209 vantiy urls
I've moved remote to https://s.mcquay.me/hackerbots/ and stood up routes for go
get on the hackerbots repos. I had to update the imports for this to take
effect.
2015-04-30 23:07:21 -07:00
sm d00e2a8df8 some go fmt 2014-11-24 14:42:38 -08:00
sm f86bacbd69 Used the idg.Generator from github 2014-11-24 14:42:11 -08:00
sm 3eb76009ad moved http routes out of the server main() 2014-11-24 14:32:27 -08:00
sm 06ce7eefc8 Removed dependance on os/user
This was done to make cross-compiling work again
2014-05-11 21:49:18 -07:00
sm c9dfa27320 Add support for fixed object geometry
also updated config file
2014-05-11 21:49:06 -07:00
sm 961cf5d7da Make obstacles know how to minify themselves
including a fix for using pointers instead of values.
2014-05-11 21:48:47 -07:00
sm 8f7ef5aa1a float32 -> float64 2014-04-26 15:36:04 -07:00
sm db28bfea11 Renamed obstacle -> obstacle count 2014-04-26 15:32:14 -07:00
sm 2a9c178ebb go fmt 2014-04-26 15:24:20 -07:00
sm bd1d861971 fix for bug involving probe order 2014-04-26 15:15:14 -07:00
sm 39b8a9e5d7 allow gob spectators to send back Instruction maps 2014-04-26 13:25:30 -07:00
sm 6da0bfac7a Renamed config file, added sample
did this to allow for other configs in our namespace.
2014-04-26 10:25:23 -07:00
sm fd53d3e51e don't rename package without need. 2014-04-23 14:54:39 -07:00
sm 72d0843ff8 Renamed package/directory 2014-04-23 14:28:13 -07:00
sm 9e1cd272f7 Fixed warnings generated by go vet 2014-04-14 00:39:42 -07:00
sm faacfe7fd9 First pass at documentations. 2014-04-14 00:26:41 -07:00
sm 0cf0957d73 More documentations. 2014-04-13 22:54:48 -07:00
sm 996f6c02da Changed executable name back to botserv 2014-04-13 19:51:26 -07:00
sm 6e9a6d6af1 support for botclient refactor 2014-04-08 23:45:07 -07:00
sm 752cec48f3 Removed unecessary tiredness vulgarity 2014-04-07 23:27:34 -07:00
sm a956162205 Plumbed Delta and the IdGenerator back through 2014-03-31 23:21:20 -07:00
sm 8b52f93ca5 Don't automatically do concurrency for users
http://talks.golang.org/2013/bestpractices.slide#25
2014-03-31 23:21:20 -07:00
sm 0d11b8a0ba Added docs around MapLock, change visibility of methods
Removed unused global
2014-03-31 23:21:19 -07:00
sm e185365e2d moved MapLock to control 2014-03-31 23:21:19 -07:00
sm e02d220026 Fixed gob issue 2014-03-31 23:21:19 -07:00
sm 2fd97a7092 Removed extra variables 2014-03-31 23:21:18 -07:00
sm 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.
2014-03-31 23:21:18 -07:00
sm 330e72c21f Fixed unittests 2014-03-31 23:21:18 -07:00
sm 81beee8b43 Put delete of game from controller in right place
Added some debugging
2014-03-31 23:21:16 -07:00
sm 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
sm 62222a9ad9 Removed a development json file 2014-03-18 22:34:21 -07:00
sm 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
sm 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
sm 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
sm 00373be3da fixed misspelling 2014-03-10 00:03:51 -07:00
sm 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
sm 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
sm 0959be2df2 updated for changes in bandwidth 2014-03-08 18:27:48 -08:00
sm a932d24683 Added a memprofile dump flag and mechanism 2014-03-08 15:29:08 -08:00
sm 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
sm ecc70606a9 missed some protoTalker conversions 2014-02-17 22:18:16 -08:00
sm 491d972a4b added NewSpectator and NewPlayer funcs 2014-02-17 01:07:29 -08:00
sm 0bc1575f81 fixed bug in last commit 2014-02-17 01:06:53 -08:00
sm 5d9103f176 Pulled out common code from spectator and player 2014-02-17 00:42:52 -08:00
sm b131b4bc53 Count bytes coming in/out of player 2014-02-17 00:10:55 -08:00
sm ad9d6c1026 Switched to using json.Encoder and Decoder 2014-02-04 08:06:12 -08:00
sm bc58ee9165 solved spectator disconnect issue 2014-01-29 22:12:26 -08:00
sm eac39ad9d1 Changed the collision response from boolean to Collision 2014-01-27 20:35:56 -08:00
sm 0698f21a0f Merge branch 'master' of ssh://bitbucket.org/hackerbots/botserv 2014-01-23 23:03:44 -08:00
sm 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
sm 7bb5ae59b3 send the client calculated values for stats 2014-01-23 21:11:13 -08:00
sm c6c45ace51 cleaned up some logging 2014-01-23 21:09:27 -08:00
sm d3070ad501 send the client max points for the game 2014-01-22 22:14:22 -08:00
sm a57903d81c added tests for last commit (ProbeResult.Type) 2014-01-16 23:45:17 -08:00
sm 714ea669d2 added probe result type 2014-01-16 23:04:49 -08:00
sm a755d28688 parity to formatting 2014-01-16 22:33:03 -08:00
sm 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
sm 845db00032 added file line numbers to the logs 2014-01-13 20:54:01 -08:00
sm 10373d06d2 update for api change in vector 2014-01-07 21:21:16 -08:00
sm cf3c7e8629 Merge branch 'point-limit' 2014-01-05 19:46:53 -08:00
sm 3bb710dd9c point limit parametrized 2013-11-29 01:10:49 -07:00
sm 4eb849a63f fixed resetart error vis-a-vis obstacles 2013-11-18 08:52:59 -08:00
sm 5a2651d0dd allow object specification 2013-11-16 19:57:13 -08:00
sm f6b3027ded minor: changed some logging 2013-11-16 18:56:15 -08:00
sm 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
sm f8fb523a76 fixed some httpstatu.es 2013-11-15 08:54:52 -08:00
sm 50868809bd revert me: default to allowing connecting players to start games 2013-11-14 00:18:46 -08:00
sm 2cbef76a37 cap healing health 2013-11-14 00:16:08 -08:00
sm 527042daa8 added logging for inability to kill 2013-11-14 00:02:26 -08:00
sm 2e774285ba quieted things down slightly (logging) 2013-11-13 23:47:42 -08:00
sm 245c483f9e added simple game stats 2013-11-13 23:45:02 -08:00
sm 84ed6c9c32 added gameover packet 2013-11-13 22:24:54 -08:00
sm aabda1cc90 added config file support 2013-11-13 20:38:57 -08:00
sm 674cda293f renamed function to match go convention 2013-11-09 22:05:37 -08:00
sm da26e1ca46 simplified some loops
These changes were done by running the following command:

    gofmt -s -w *.go
2013-11-09 21:52:06 -08:00
sm bc2d1cdd52 minor tweaks, including go fmt 2013-11-09 21:46:49 -08:00
sm 49ff6af1f3 minor cleanup
- removed comment-disabled code
- reduced verbosity in protocol logging
2013-11-07 22:11:54 -08:00
sm b490cfc228 made it so bots start inside world 2013-11-07 22:11:54 -08:00
sm c9ba660e7f added server info for the / route 2013-11-07 22:11:54 -08:00
sm caea45741f Added ability to configure game at creation time 2013-11-07 22:11:54 -08:00