Commit graph

38 commits

Author SHA1 Message Date
ClobberXD
3b4692814d Allow specifying optional param for /r 2018-12-30 23:10:39 +00:00
ClobberXD
5bb2cff6c5 Fix and improve /reset_rankings 2018-12-03 16:29:12 +00:00
ClobberXD
66a8a73c68 Fix summary not stored before restart
- Match summary is now shown at the end of the going match (using `registered_on_winner` and `register_on_skip_map` callbacks), instead of at the start of the next match.
- Therefore, `prev_match_summary` is now preserved even after restart.
- Also fixes the "Can't initialize mod storage twice" error which occurred due to mod storage also being initialized in `gui.lua` to set/get summary from mod storage. Now, the code for storing and retrieving `prev_match_summary` has been moved to init.lua itself.
2018-11-14 12:48:05 +00:00
ClobberXD
c6b3fbd0ce Improve rankings formspec
- Renamed `render_per_team_stats` to `render_team_stats`, for the immaculate intention of shortening lines without adding a line-break.
- Adds fixed minimum width to columns to space them out.
- Displays a player's rankings at the bottom of the formspec without having to scroll down. (if the player isn't in the top 50)
  - This is achieved using a very hacky method: Another table is required, with the same column widths as the main table. This is the reason why I added fixed width to columns in the main table. :)
2018-11-12 21:31:05 +00:00
Anand S
5bd09b46ad Add /r to allow players to take a quick peek at their score 2018-11-12 15:26:40 +00:00
Anand S
d0ff9e332a Fix /rankings not returning text output 2018-11-12 15:26:40 +00:00
ClobberXD
e43448482b Add support for transferring player stats 2018-10-17 22:25:40 +01:00
ClobberXD
c1fe05b78f Improve and fix some end-of-match formspec issues
* Fix clipped labels in end-of-match formspec
* Improve format for match duration
* Clean up code
2018-08-03 18:51:25 +01:00
ClobberXD
65275185ba Deprecate /rankings me, always show player in rankings
- Deprecate `/rankings me`, `/rankings` is used to check own stats too.
- On `/rankings`, the league table is displayed with caller's stats highlighted in yellow.
  - If in top 50, stats are highlighted as-is.
  - If not in top 50, stats are appended to the bottom of the list.
2018-08-03 12:38:34 +01:00
rubenwardy
55b9ecf4a8
Fix crash caused by summary recall 2018-07-10 20:44:26 +01:00
Anand S
2ffaed27af Add /summary command to show last match's stats
* Add /summary command

* Fix invalid method names
2018-07-02 09:18:25 +01:00
rubenwardy
8c67155cdb
Add background to rankings GUI 2018-04-18 23:02:59 +01:00
rubenwardy
12d7228ff0
Add bounty kills to stats 2018-04-18 23:00:58 +01:00
Gaël C
cf81d194f9 Add more info to end of match score board
* Added name of winner team
* Number of kills, attempts, and score - total and per team
* Match duration
2018-04-18 21:49:47 +01:00
rubenwardy
7bd82dca86 Fix a load of issues, add luacheck and travis 2018-04-06 14:04:56 +01:00
Anand S
ea51cf4152 Make bounties dynamic, plus small ctf_stats change
Top 50 (instead of 41) players in the league table
2018-04-06 11:21:44 +01:00
rubenwardy
4f7a88facf Add rounding to score given by /rankings 2018-01-27 22:17:15 +00:00
rubenwardy
d5f6296c11 Add reset_rankings command 2018-01-27 00:01:17 +00:00
rubenwardy
8db15f5173 Fix /rankings <name> not returning as chat command result 2018-01-26 23:51:36 +00:00
rubenwardy
68cea916ce Add ability to list a certain user's score 2018-01-03 00:23:38 +00:00
rubenwardy
2234a59c61 Rewrite scoring algorithm 2017-10-13 00:09:25 +01:00
rubenwardy
82529b56e3 Add pro-only area in chest 2017-10-12 01:19:23 +01:00
rubenwardy
84b81ad810 Fix crash in chatplus, and bug in ctf_stats 2015-12-31 21:47:46 +00:00
rubenwardy
8fdefa5e93 Further adjustments 2015-12-30 13:14:14 +00:00
rubenwardy
076fe976ce Adjust scoring algorithm 2015-12-30 13:05:15 +00:00
rubenwardy
15d4e21c61 Add /rankings me 2015-12-18 02:14:33 +00:00
rubenwardy
6c5a82869a Refine score algorithm 2015-12-08 01:02:25 +00:00
rubenwardy
f93c6e416d Add ctf_stats.get_html() and ctf_stats.html_to_file() 2015-12-07 23:49:58 +00:00
rubenwardy
4f5bef96df Round score entry in ctf_stats 2015-12-05 19:12:34 +00:00
rubenwardy
d3ff7a61b1 Change score algorithm again 2 2015-12-04 11:25:41 +00:00
rubenwardy
380e754422 Change score algorithm again 2015-12-04 11:24:39 +00:00
rubenwardy
60796eb66c Wider again 2015-12-04 11:21:25 +00:00
rubenwardy
2b01052558 Make rankings formspec wider 2015-12-04 11:20:06 +00:00
rubenwardy
1e89db7ae2 Correct typo 2015-12-04 11:16:33 +00:00
rubenwardy
24b9ed89aa Hopefully fix bug 2015-12-04 11:14:22 +00:00
rubenwardy
4713d23d3e Correct formspec name 2015-12-04 00:16:16 +00:00
rubenwardy
f952112be0 Add league tables 2015-12-03 23:57:28 +00:00
rubenwardy
220d5e2a3c Add end of match score board 2015-12-03 23:46:52 +00:00