Commit graph

56 commits

Author SHA1 Message Date
ClobberXD
5bb2cff6c5 Fix and improve /reset_rankings 2018-12-03 16:29:12 +00:00
ClobberXD
a3989a6807 Fix points being for suicide and disable gun damage during buildtime 2018-11-29 15:52:43 +00:00
ClobberXD
5b3efd8909 Fix EOM shown before winner_player is initialized 2018-11-20 13:21:42 +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
rubenwardy
b28f5b94bb Revert "Display kill score as a HUD element (#182)" 2018-11-12 22:35:20 +00:00
rubenwardy
190d7b7e55 Fix crash due to running :get_player_name() on a string
Fixes #239. @ClobberXD
2018-11-12 22:26:36 +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
77cdecc15e
Display kill score as a HUD element (#182) 2018-11-12 11:45:51 +05:30
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
ca51ec9838
Fix crash due to lack of stats migration 2018-04-19 01:01:19 +01:00
rubenwardy
dde410ee8d
Fix crash on /rankings 2018-04-19 00:57:28 +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
Andrew Mac
4ae687086a Fix syntax error in good weapons list 2018-02-18 08:30:50 +00:00
Anand S
87454dd0e3 Improve ctf_stats
* Modified ctf_stats/init.lua

* Modified ctf_stats/init.lua

- Max. points for a kill has been increased from 150 to 200
- good_weapons list has been modified to include *all* mese and diamond implements
- Minor corrections in comments

* Delete init.lua

Was created by accident in the root directory of repo
2018-02-15 08:04:34 +00:00
AKryukov92
f179b4f52d Update good weapons list in ctf_stats 2018-02-11 15:44:10 +00: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
92e1029b96 Defer ctf_stats.txt removal to reduce chance of loss of data 2018-01-09 02:41:46 +00:00
rubenwardy
d46e705329 Fix crash in ctf_stats on new worlds 2018-01-09 02:40:28 +00:00
rubenwardy
68cea916ce Add ability to list a certain user's score 2018-01-03 00:23:38 +00:00
rubenwardy
d66cabe446 Add userlimit skip if sufficient score 2018-01-02 23:58:47 +00:00
rubenwardy
c835a117a7 Fix ctf_stats migration crash on new servers 2017-11-07 00:32:20 +00:00
rubenwardy
31ae819d0b Increase score given by kill 2017-10-13 02:05:21 +01:00
rubenwardy
13bd6fb832 Fix some bugs in created in ctf_stats rewrite 2017-10-13 00:57:09 +01: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