Benau
f329314bf6
Fix possible empty race event manager instance
2018-06-09 19:04:15 +08:00
Benau
6433e1eae0
Fix as alayan suggested
2018-06-09 18:57:26 +08:00
Benau
9133275677
Use double for calculation
2018-06-09 18:53:44 +08:00
Alayan-stk-2
7c14fd28ba
Ranking formula refinements ( #3288 )
...
* Reduce the maximum scaling time from 600s to 500s
8m20s is already much longer than nearly all ranked races will be, so it matters most for eliminated players. It would be too punishing if kept to 600 with the new time scaling method.
* New helper function for ranking computations
* Make short races less important for ranking points
And long races more important
2018-06-09 08:43:19 +00:00
Benau
d9ede4f213
Add state to avoid deadlock when finishing the race
2018-06-08 22:59:07 +08:00
Benau
e674f2d091
Make sure no weak ptr expires when calculating ranking
2018-06-08 11:04:58 +08:00
Benau
304787f106
Remove unneeded translation in server lobby
2018-06-07 16:09:48 +08:00
Benau
785aaf7647
Add auto end network game (implicitly on for ranked server)
2018-06-07 14:28:06 +08:00
Benau
5e3a482588
Let player connecting in the middle of count down know
2018-06-07 01:34:25 +08:00
Benau
d87cf6fba6
Don't allow starting a ranked race with only 1 player left
2018-06-06 15:04:27 +08:00
Benau
5da5a1972f
Add auto start with timeout and player threshold for owner less server
2018-06-06 01:06:44 +08:00
Benau
148677598b
Terminate connect to peer after kart selection start
2018-06-05 11:21:21 +08:00
Benau
47455a71f3
Use KeyData instead of tuple
2018-06-05 10:23:14 +08:00
Benau
5baaf83401
Adjust for stk-addons
2018-06-04 16:35:45 +08:00
Benau
a08e46f279
Remove the keys too after selection
2018-06-04 13:47:37 +08:00
Benau
4ef0c4e03c
Add option for official server to disable stun at all
2018-06-04 13:36:24 +08:00
Benau
d89c65b0c9
Remove token in network string
2018-06-04 13:25:10 +08:00
Benau
2fbf0ab49f
Avoid unnecessary slow down and mutex locking in server lobby
2018-06-04 09:28:38 +08:00
Benau
4653089d95
Add ranked server for validated player
2018-06-04 01:19:27 +08:00
Benau
a9696792c2
Merge remote-tracking branch 'STK-helper/RankingFormula' into aes
2018-06-03 15:39:01 +08:00
Benau
b43a5e4d18
Add AES encryption and validation for wan player
2018-06-02 12:28:29 +08:00
Benau
1a975f9ef4
Offer a way to know accurate ping to server within 3 seconds
2018-05-22 01:31:08 +08:00
Alayan-stk-2
bac516aa40
Update comment
2018-05-17 17:45:49 +02:00
Alayan-stk-2
6d6520ab89
Make the formula different between normal and time-trial modes
2018-05-17 17:37:16 +02:00
Alayan-stk-2
9902e7c767
Use double for max_ranking too, remove first half base-points distribution (done elsewhere)
2018-05-17 03:16:12 +02:00
Alayan-stk-2
b026b24e4a
Fix/update ranking computation
2018-05-15 18:47:59 +02:00
Alayan-stk-2
9f18c0e2c1
(Broken) ranking computation
2018-05-15 04:22:23 +02:00
Benau
7926ad9ba0
Progressively adjust time with slow down functionality
2018-05-11 10:43:22 +08:00
Benau
e28fbdd019
Increase vote timeout to 20 second, and offer a way to end vote early
...
After half voting time and all entries in voting table has > 50%
agreement out of current connected peers, go on
2018-05-11 10:37:31 +08:00
Benau
ac54ee8888
Remove max 80 words limit now we use uint16_t for wide char
2018-05-01 12:42:59 +08:00
Benau
d17fddcac8
Fix handicap in splitscreen and network
2018-05-01 01:10:12 +08:00
hiker
6f38a56dfa
Merge branch 'lan-broadcast'
2018-04-24 17:28:19 +10:00
Benau
62ea07ecc8
Try to synchronize timer independent of music
2018-04-24 01:01:47 +08:00
hiker
59b796a7f5
Since broadcasting to 255.255.255.255 does not work in all cases,
...
add code to create a set of potential broadcast addresses and
use them all. Duplicated will be filtered out (since likely a server
will replace more than all).
2018-04-23 23:30:48 +10:00
Benau
a4198536a0
Reset server if no player in lobby between a grand prix
2018-04-22 01:03:25 +08:00
Benau
e1797f0572
Don't use NetworkConfig which got deleted already
2018-04-21 16:41:25 +08:00
Benau
448ad5abcf
Clean up network local player handling
2018-04-21 16:32:43 +08:00
Benau
ba681a7cf8
Initial GP in network
2018-04-21 16:00:14 +08:00
Benau
d55d5d0f3f
Get local player id from server for GP sorting later
2018-04-20 19:10:40 +08:00
Benau
e5c991e3d2
Merge remote-tracking branch 'origin/master' into kobato
2018-04-20 13:03:34 +08:00
Benau
2dada03bae
Save available karts and tracks from clients in STKPeer
...
So if this peer disconnects later in lobby it won't affect current players
2018-04-20 12:19:58 +08:00
Benau
bd13f40584
Reset server to accepting client state if no more connected players
2018-04-20 12:19:58 +08:00
Benau
99a25bb837
Implement a proper end and restart race in network
2018-04-20 12:19:58 +08:00
Benau
12e4ba0f18
Check server version again in connection request (for connect-now)
2018-04-20 12:19:58 +08:00
Benau
8c72ce66e3
Copy server address to avoid using STKHost in shutdown
2018-04-20 12:19:58 +08:00
Benau
2a3d57706a
Reset timer after finished loading world
...
It avoid some clients with slower loading time than anybody else hanging
when rewinding
2018-04-20 12:19:58 +08:00
Benau
2dd9174b3a
Remove unused code in game events protocol
2018-04-20 12:19:58 +08:00
Benau
1a6c219d3f
Fix voting timeout in case of time zone difference
...
Also allow voting when pressing the spinner or reverse checkbox
2018-03-31 14:35:55 +08:00
Benau
47a86cc36f
Add initial support for GP and soccer info in lobby
2018-03-31 01:19:23 +08:00
Benau
ce8a15d90c
Add online id with player name for easier banning
2018-03-27 01:23:54 +08:00