Guangcong Luo
5d1d850fc5
Make sure guests can still use non-chat commands.
2012-08-31 20:00:38 -07:00
Guangcong Luo
66860b7310
Battle rooms should have a send method
...
(fixes a crash when using certain commands in battle rooms)
2012-08-28 23:12:55 -07:00
Guangcong Luo
9ed85c3cdb
Support !data in battle rooms
2012-08-15 01:05:05 -07:00
Guangcong Luo
c2d09f55b2
New protocol - significantly reduced network usage
2012-08-14 20:02:56 -07:00
Guangcong Luo
0c1f1b4d11
Fix the lobby room list
2012-08-14 16:59:23 -07:00
Guangcong Luo
c1bb83b55d
Remove rooms from the lobby room list earlier in the deallocation process
2012-08-13 22:26:00 -07:00
Guangcong Luo
ab9fc735ed
Fix a stray reference to rooms that made them un-deallocatable.
2012-08-13 22:18:34 -07:00
Guangcong Luo
caba1f2f12
Line length exemption to:
...
- sending teams
- sending signed rename token
2012-08-13 13:55:18 -07:00
Guangcong Luo
79207cb90a
Don't allow searching of nonsearchable formats
2012-08-12 23:31:15 -07:00
Guangcong Luo
e8138debee
Last command that needs to be chat-command: /trn
...
(tokenrename) performs a rename using a signed token
2012-08-12 22:58:43 -07:00
Guangcong Luo
68650005ea
New save-team syntax
2012-08-12 21:56:01 -07:00
Guangcong Luo
59959ce24e
Chat commands for most user actions
...
- we're moving to a new protocol! wheee!
2012-08-12 13:44:59 -07:00
Guangcong Luo
47c7e02464
Batched ladder requests
2012-08-07 19:21:53 -07:00
Guangcong Luo
2ab4f287db
New request API
...
(preparation for batched requests)
2012-08-05 00:10:04 -07:00
Guangcong Luo
9ca5321597
Fix kickinactive
2012-08-01 23:33:31 -07:00
Guangcong Luo
8d8245b76d
More reliable determination of inactive side
2012-08-01 23:02:28 -07:00
Guangcong Luo
7323aac95e
Protect against crash from battle not existing
2012-08-01 19:15:26 -07:00
Guangcong Luo
3714979815
Many fixes to multi-process system:
...
- crashes mostly gone
- teams work
- debug console available for battle process (use >>>)
2012-08-01 16:29:49 -07:00
Guangcong Luo
9eb85e85fd
Show only 6 battles on the main list
2012-08-01 13:57:33 -07:00
Guangcong Luo
4831e68a8c
Multi-process battles!
...
Battles now occur in a separate process.
Hopefully, this results in a substantial increase in network stability.
WARNING: Battle crashes are now practically unrecoverable.
2012-08-01 13:48:58 -07:00
Guangcong Luo
64098853d2
Better way of not crashing with unexpected server response
2012-07-28 18:09:22 -07:00
Guangcong Luo
7f72fb181d
Don't crash if server response is unexpected
2012-07-28 18:07:56 -07:00
Bill Meltsner
719a4eddd5
Refactor battle logging into its own function.
2012-07-28 17:45:08 -05:00
Guangcong Luo
ad7ff8a298
Continue numbering rooms properly
2012-07-28 15:05:11 -07:00
Bill Meltsner
f797656cdb
Log a battle even if the ladder server is freaking out and not responding.
...
The log will not have either player's ranking, as that information requires a ladder response, and will have an extra property ladderError set.
2012-07-28 16:55:20 -05:00
Guangcong Luo
8c7449d441
Try to limit the number of open requests
2012-07-23 23:25:49 -07:00
Guangcong Luo
ba78f59052
Continue cutting down on what we print to console
2012-07-23 13:36:11 -07:00
Guangcong Luo
9576201df0
Shorter initial scrollback
2012-07-17 17:41:47 -07:00
Guangcong Luo
3f732395a7
Slightly more efficient user list
2012-07-17 17:40:21 -07:00
Bill Meltsner
e0030dd2f6
Bail if the lag is so bad that a room gets destroyed before it receives confirmation from the ladder server.
2012-07-16 15:58:53 -05:00
Guangcong Luo
37239c99e1
More details about ratings changes are now displayed
2012-07-12 02:31:31 -04:00
Guangcong Luo
5fc790ac4f
Ladder rating difference range decreased to 350
2012-07-11 21:13:28 -04:00
Guangcong Luo
e44a35e4af
Cache MMR - should decrease number of requests to server
2012-07-11 21:08:51 -04:00
Guangcong Luo
e2d0547dae
Cut down on the amount of information we log
2012-07-09 13:44:12 -04:00
Bill Meltsner
6c30b34988
activityQueue doesn't actually exist, which was causing battles to not have their contents properly logged. Fixed this.
2012-07-08 21:12:18 -05:00
Guangcong Luo
e1eddbd77f
Pass the team around very carefully
...
- teams were passed around a lot more haphazardly before
- a race condition may have caused the team issue in LC earlier
- teams are now passed very carefully from search to battle start
2012-07-08 15:28:17 -04:00
Guangcong Luo
ca4890f299
Rewrite how searching works:
...
- now polls the ladder server for ratings
- only players with a rating difference below 400 will play each other
- should diminish rating screw by a fair bit
2012-07-08 04:51:41 -04:00
Bill Meltsner
c31ee2a428
Add SockJS as the default networking library.
...
You can still use Socket.IO by setting config.protocol in config.js.
2012-07-06 22:56:28 -05:00
Guangcong Luo
ac9aa60a60
Add more information to log files:
...
- endType is one of: normal | forfeit | forced
- the entire battle log is now included
2012-07-02 10:10:51 -04:00
Guangcong Luo
494cd5b873
Fix crash when a user doesn't exist at the time of battle start
2012-07-02 09:43:30 -04:00
Bill Meltsner
dce7258294
New log architecture.
...
Logs are now stored in logs/YYYY-MM/tier/YYYY-MM-DD/battle-tiern.log.json.
Also add player ratings to the battle logs.
2012-07-02 00:38:43 -05:00
Guangcong Luo
b3054fefdf
Load all data using tools.js
...
- the original names BattleItems etc have been deprecated; please use:
- Tools.getItem() accessor method if possible
- Tools.data.Items for lower-level access (e.g. iteration)
- app.js was also rearranged a bit
2012-06-13 22:51:37 -07:00
Guangcong Luo
935a88134c
Fix errors with ladder not being updated
2012-06-10 20:20:56 -07:00
Bill Meltsner
b673709463
Unbreak laddering, the redux.
2012-06-10 22:20:30 -05:00
Bill Meltsner
cd4e557f41
Unbreak laddering.
2012-06-10 22:13:56 -05:00
Guangcong Luo
7009b3a4bb
Revert bmelts's hasty porting of Id etc to Sugar.js extensions
...
- The reverted utility functions, toId/toUserid/sanitize/clampIntRange, were designed to handle unsanitized data gracefully
2012-06-08 15:44:49 -07:00
Guangcong Luo
37c8fca226
Even fewer globals:- getRoom -> Rooms.get, newRoom -> Rooms.create
...
- getUser -> Users.get
- getTime has been entirely removed; new Date().getTime() isn't that long
2012-06-08 14:51:40 -07:00
Guangcong Luo
e4f5686dc2
Fewer globals:
...
- serverid and servertoken are now only available as config.serverid and config.servertoken
- lobby is now only available as rooms.lobby
2012-06-08 14:38:13 -07:00
Guangcong Luo
ce506d3b3e
Rooms cleanup:
...
- Renamed: Room -> BattleRoom, Lobby -> LobbyRoom
- rooms.js is now its own file; app.js is now no longer huge
2012-06-08 14:32:48 -07:00