Commit Graph

18823 Commits

Author SHA1 Message Date
hiker
b17b45d8c5 Fix non-networked races. 2018-04-17 18:48:32 +10:00
hiker
a9a73e643b Save an initial state at t=0 on the client, to make sure they
can always rewind (e.g. in case that an event from another client
arrives before a state from the server).
2018-04-17 18:42:16 +10:00
hiker
70e7625282 Don't split a game state upon receiving into separate chunks (one
for each rewinder), instead save only one state with all rewind
buffers.
2018-04-17 09:17:02 +10:00
hiker
3167180d7f Refactored state saving into a separate function to later allow
saving of an initial local state.
2018-04-16 17:25:50 +10:00
hiker
896b631f97 Removed unused skidding code. 2018-04-15 00:40:41 +10:00
hiker
b4107bfc25 Added a new constructor taking a string and port number (including
test cases) - mostly useful for debugging.
2018-04-15 00:32:30 +10:00
hiker
6490551533 Uodate physics max speed after a rewind to make sure
the physics have the right max and min speed defined.
2018-04-13 01:07:08 +10:00
hiker
0328d05631 Updated and disabled debug output. 2018-04-13 00:53:59 +10:00
hiker
7bbaebe594 Fixed skidding rewind by adding all necessary variable to skidding
state and adding timed impulse to physics state of kart.
2018-04-13 00:44:53 +10:00
hiker
bfc832d5de Removed debug output. 2018-04-10 00:45:40 +10:00
hiker
9eb59522c6 Added remaining jump time to skidding state (since the jump time
is used to determine if a kart can skid again or not).
2018-04-10 00:36:29 +10:00
hiker
cca7563bec Avoid issue that when rewinding the latest state is skipped (so
it rewinds from an even earlier state).
2018-04-10 00:32:12 +10:00
hiker
9eadd2e64d Fixed handling of events that happen at the same time when
m_current points to one of the events.
2018-04-09 08:27:48 +10:00
hiker
1e388c434f Update comment. 2018-04-08 22:12:28 +10:00
hiker
364733882f Code simplification. 2018-04-08 22:12:04 +10:00
hiker
1b72d88593 Merge remote-tracking branch 'origin/kobato' into game_protocol 2018-03-31 01:12:22 +11:00
hiker
6474fbf73e Modified file to automatically trigger cmake on compilation. 2018-03-31 00:39:49 +11:00
hiker
b1013f6030 Merge remote-tracking branch 'origin/network_improvements' into game_protocol 2018-03-31 00:38:57 +11:00
hiker
7e3fc660f1 Moved wrong-way timer from kart into linear world. 2018-03-31 00:16:47 +11:00
hiker
a3f68f621f Renamed member variable and method to better describe them. 2018-03-30 23:22:00 +11:00
hiker
17200d7809 Merge remote-tracking branch 'origin/master' into game_protocol 2018-03-30 22:47:30 +11:00
hiker
10a2ae0e2a Properly fix #3159 (Wrong direction text is displayed twice).
When this is merged with master, the current work around
in #3159 can be reverted.
2018-03-30 22:46:32 +11:00
hiker
2192d1383f Removed the storing of DT (which is not necessary when using ticks
now). Removed TimeStep information class etc.
2018-03-30 18:32:48 +11:00
auria.mg
a384866e6a Attempt for #3164 2018-03-29 19:23:51 -04:00
auria.mg
e2645c1060 Fix leak 2018-03-28 19:45:24 -04:00
Deve
0093a8eaab Fixed mingw compilation 2018-03-27 23:03:47 +02:00
Deve
756ec632ae Fixed windows compilation 2018-03-27 23:02:39 +02:00
Deve
eb28126f56 Avoid some code duplication 2018-03-27 23:02:09 +02:00
Deve
3666d1a2ec Allow to use scripting on arm64 2018-03-27 23:01:46 +02:00
Benau
01c1287900 Always remove kart selection screen to avoid setRootID -1 assertion 2018-03-27 16:19:30 +08:00
Benau
c6fa384d94 Fix uninitialized values and broken local kart selection if reenter 2018-03-27 15:44:19 +08:00
Benau
b75428e4e5 Use distance with km 2018-03-27 11:56:36 +08:00
auria.mg
b778b91b5e More UI scaling improvements, see #3146 2018-03-26 21:24:48 -04:00
Benau
ce8a15d90c Add online id with player name for easier banning 2018-03-27 01:23:54 +08:00
Benau
5eb436384f Remove commented out code 2018-03-27 01:15:12 +08:00
Benau
70def13ca2 Use a more sophiscated server-client token validation 2018-03-27 01:02:31 +08:00
Benau
c8dadf76f1 Remove LatencyProtocol now we have server distance and ping in lobby 2018-03-26 14:19:33 +08:00
Benau
a685d5c212 Adjust direct and formal connection timeout 2018-03-26 14:15:05 +08:00
Benau
b5ff84bd46 Further clean up create server screen 2018-03-26 12:37:06 +08:00
Benau
8db959a755 Fix server selection column proportion 2018-03-26 12:27:40 +08:00
auria.mg
ee57bbd6b4 As suggested by deveee, make the server creation screen more scalable. Also cleanup/simplify a bit 2018-03-25 18:10:44 -04:00
Benau
0e2112d7f0 Add server distance calculation 2018-03-26 02:11:04 +08:00
Benau
42e1873458 Fix possible null pointer dereference 2018-03-26 00:32:26 +08:00
Benau
946a902f98 Adjust server creation screen for 1280x720
And add some more game modes
2018-03-24 15:44:15 +08:00
Benau
85895074aa Merge branch 'origin/master' 2018-03-24 09:31:06 +08:00
auria.mg
75c1739ff2 GUI tweaks 2018-03-23 20:38:16 -04:00
Benau
c3ea7f1088 Ignore the first 15 seconds for ping result 2018-03-24 08:20:27 +08:00
Benau
076fb3273f Add 1500ms timeout for direct connection to wan server
This way player can instantly connect to firewall-less server
without waiting for polling in stk addons server
2018-03-24 00:53:42 +08:00
Benau
025ca63df0 Display ping to server in lobby 2018-03-23 22:19:44 +08:00
Benau
1e2cb2dc4a Fix clang screen.hpp warning 2018-03-23 20:20:09 +08:00