Commit Graph

194 Commits

Author SHA1 Message Date
Deve
c360209676 Avoid memory leaks when window is closed during the race 2018-09-26 22:34:23 +02:00
Deve
0dca414e02 Fixed some memory leaks when a server is closed 2018-09-22 22:06:27 +02:00
Benau
0f39add432 Convert time-related code in network to 64bit to avoid overflow 2018-08-27 13:49:11 +08:00
Benau
e5925a53b7 Use the network timer synchronizer to start game 2018-08-27 09:16:35 +08:00
Benau
1992177205 Add network timer in main loop 2018-08-23 14:40:17 +08:00
Benau
db36ee6df6 Handle controller the last to avoid slow PC sending actions too late 2018-08-18 12:49:31 +08:00
Benau
14475762b8 Flush all command before delete world 2018-08-03 18:36:35 +08:00
hiker
8ea8562ee6 Fixed profile mode. 2018-08-01 09:54:43 +10:00
hiker
b4a4de74bb Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-07-19 18:39:55 +10:00
Benau
f5230e30aa Use the original way to save controller event
And save more locally for network state
2018-07-18 13:10:44 +08:00
Benau
49d7a2fbbc Use count up ticks on rewinding for time limit in soccer game 2018-07-13 23:34:50 +08:00
Benau
a8959f604c Fix crash when in-game menu opened when going to result screen in network game 2018-07-11 15:37:55 +08:00
Benau
8931d90813 Merge remote-tracking branch 'origin/master' into curved 2018-07-06 23:49:04 +08:00
Benau
211b107955 Make sure we don't send controller event if updateRace is too slow 2018-07-02 11:20:46 +08:00
Deve
0518d422c6 Fixed compilation 2018-07-01 22:57:48 +02:00
Benau
d3f7cb7999 Move ticks adjustment to main_loop 2018-07-01 14:31:42 +08:00
Benau
bd5381dad7 Buffer all inputs until last frame ticks 2018-06-25 11:57:18 +08:00
hiker
991dc00049 Moved hsitory replay handling into physics loop to make sure we
get identical replay independent of frame rate (otherwise input
might get delayed by a few frames).
2018-06-21 19:33:20 +10:00
hiker
526482bab4 Removed unused variable. 2018-06-21 19:32:09 +10:00
Benau
62ea07ecc8 Try to synchronize timer independent of music 2018-04-24 01:01:47 +08:00
Benau
ba681a7cf8 Initial GP in network 2018-04-21 16:00:14 +08:00
Benau
e5c991e3d2 Merge remote-tracking branch 'origin/master' into kobato 2018-04-20 13:03:34 +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
660ccd1f43 Don't crash if user opened a dialog when server shutting down 2018-04-20 12:19:58 +08:00
hiker
da7780a9e1 Removed the storing of DT (which is not necessary when using ticks
now). Removed TimeStep information class etc.
2018-04-20 12:19:57 +08:00
hiker
ac3c99a3ca Removed support for position-based history files, now only
physics history files are supported.
2018-04-20 12:19:57 +08:00
hiker
98555a8f35 Merge remote-tracking branch 'origin/master' into game_protocol 2018-04-19 10:57:37 +10:00
auria.mg
61469a6806 Mitigate AI-related edge cases of original fx 2018-04-08 20:47:24 -04:00
Benau
7f17d7ab25 Rebuild the network screen stacks up to wan / lan screen 2018-03-31 15:23:20 +08:00
hiker
1b72d88593 Merge remote-tracking branch 'origin/kobato' into game_protocol 2018-03-31 01:12:22 +11:00
hiker
b1013f6030 Merge remote-tracking branch 'origin/network_improvements' into game_protocol 2018-03-31 00:38:57 +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
hiker
17b3a79997 Removed support for position-based history files, now only
physics history files are supported.
2018-03-20 23:52:02 +11:00
Benau
e58d86d4d5 Merge branch 'origin/game_protocol' 2018-03-20 08:32:45 +08:00
hiker
e1a2f68073 Fixed warning. 2018-03-20 10:25:06 +11:00
hiker
4fd205773e Moved graphical weather update into separate update function that
is only called once per rendered frame.
2018-03-20 09:58:34 +11:00
hiker
78b120a04f Moved wiimote handling into input manager. 2018-03-20 09:42:26 +11:00
hiker
c456edd9f2 Convert more time handling to handling ticks. 2018-03-20 09:25:39 +11:00
Benau
6a963ffcc9 Add POSIX equivalent for detecting parent termination 2018-03-17 12:26:37 +08:00
hiker
d3a60356c9 Merge remote-tracking branch 'origin/fix-timestep' into game_protocol.
Started to use ticks instead of time floating point values in networking.
2018-03-13 18:37:12 +11:00
Benau
93c910f18b Use a uniform translated timed out string 2018-03-12 11:38:37 +08:00
Benau
80a9cc5c48 Auto shutdown the child STK server in windows 2018-03-02 13:25:14 +08:00
Benau
b26b784b6a Various improvements to WAN and LAN connection 2018-02-24 15:48:30 +08:00
hiker
95f0bf9e3b Used functions in stk_config to convert between ticks and times. 2018-02-23 23:22:49 +11:00
Benau
7d14954012 Simpify network console 2018-02-23 14:57:59 +08:00
Benau
1458f3ef8e Fix wan connection, move get public address from stun to stk host 2018-02-22 15:11:07 +08:00
Benau
c5b986e874 Allow going back to online menu if server connection is lost 2018-02-18 14:06:17 +08:00
Benau
bcf8e4e5fe Allow shutdown STKHost from dialog 2018-02-17 16:25:53 +08:00
Benau
05f7c014dd Create a prototype for thread-safe protocol manager
Using weak and shared_ptr, if !lock(), than it was atomtically
destroyed
2018-02-15 16:47:04 +08:00
hiker
c0333fe0f7 Bugfix: TimeInfo objects were missing for substeps, resulting in
very stuttering game play.
2018-02-15 10:06:13 +11:00