Commit Graph

14729 Commits

Author SHA1 Message Date
Benau
73c264df94 Add support for CTF map 2018-08-16 02:09:44 +08:00
Benau
03728708cd Rename soccer team to kart team for CTF 2018-08-15 15:13:55 +08:00
Deve
19038b4600 Make SeparateProcess working on Android 2018-08-14 00:14:34 +02:00
Benau
2efe3afa9f Don't undo swatter destruction which is not necessary with local event 2018-08-13 13:05:29 +08:00
hiker
da11c0266d Round the kart sizes to work around a bug that client and
server get (slightly) different kart sizes (which then affects
the physics).
2018-08-13 12:22:58 +10:00
hiker
514a169f5b Round the kart sizes to work around a bug that client and
server get (slightly) different kart sizes (which then affects
the physics).
2018-08-13 12:19:19 +10:00
Benau
8aab1c0a69 Use Free-For-All for name instead 2018-08-13 09:00:37 +08:00
Alayan-stk-2
41a3a1056e Improved spinner (#3374)
* Add spinner arrow focus with keyboard

* Improve keyboard navigation for spinners

* Only display active arrow if spinner is focused
2018-08-12 18:00:42 -04:00
Benau
64595a7b18 Initial work on FFA in network 2018-08-13 00:59:20 +08:00
Benau
c8c0e599db Try to remember server creation option 2018-08-12 12:46:45 +08:00
Benau
6bdec3d01a Add initial framework for FFA and CTF in network 2018-08-12 10:57:37 +08:00
Benau
b755d4d00b Replay slipstream speed increase event locally in network 2018-08-10 18:26:13 +08:00
Benau
3e95feeb0b Translate network message in main thread 2018-08-10 16:38:38 +08:00
Benau
95f3dfc01a End network game early if there is no red or blue team player 2018-08-10 15:08:19 +08:00
Benau
b4d16799e8 Fix bubblegum torque rewind in network 2018-08-08 13:20:37 +08:00
Benau
e9945a5d16 Improve undo destruction for flyable 2018-08-08 11:50:45 +08:00
Alayan-stk-2
83ff426c53
Fix default sorting 2018-08-08 03:15:47 +02:00
Deve
3211403276 Don't use progress bar for server-only on android 2018-08-07 23:36:05 +02:00
Benau
7d17601f8a Fix 32bit random number overflow 2018-08-07 10:56:23 +08:00
Alayan-stk-2
61b56e7352 Improvements to kart selection stats bars (#3371)
* Compute acceleration efficiency instead of raw engine power

* Improve kart stats display

* Fix conflict resolution error

* Fix conflict resolution error
2018-08-06 20:50:07 -04:00
auria.mg
f1bd14c5b5 Add tooltip support on IconButtonWidget 2018-08-06 20:03:22 -04:00
Benau
eef888d2b7 Fix falling effect of rescue animation in network 2018-08-07 02:36:38 +08:00
Benau
8ab2368e2d Add confirmation of kart animation for network 2018-08-07 02:26:34 +08:00
Benau
b4783d82f6 Redo the same physicial properties in server 2018-08-06 15:49:01 +08:00
Benau
93aeeda12b Fix rewind issue of rubber ball 2018-08-06 14:37:55 +08:00
Alayan-stk-2
f5a308f94b Fix list sorting (#3368)
* Manage if the sort should be default, ascending or descending from the base widget

* Update all list sorting to be in sync with the list widget sort buttons
2018-08-05 18:03:37 -04:00
Benau
c58ac1b111 Use hardcoded values for m_max_frames
Some compiler fails to load default values of UserConfigParams
during static initialization
2018-08-05 13:14:22 +08:00
Alayan-stk-2
e711f20edb Fix #3234 (#3367) 2018-08-04 21:17:38 -04:00
Alayan-stk-2
3b3990a196 Use a stable sort for replay list sorting (#3364)
* Use a stable sort for replay list sorting

* Add default multi-criteria sorting for ghost replays list
2018-08-04 20:37:29 -04:00
Benau
37f1dea312 Invert the order of saving to keep state small 2018-08-05 01:29:43 +08:00
Benau
79d1178626 Improve kart animation handling in network 2018-08-04 16:29:49 +08:00
Benau
9e6ebe6097 Try to fix speedy end controller in network race 2018-08-04 00:02:52 +08:00
Benau
ce58014cab Fix compiler warning 2018-08-03 20:26:16 +08:00
Benau
4d2e79da4c Implement auto-kick high ping player (default off) 2018-08-03 19:50:49 +08:00
Benau
14475762b8 Flush all command before delete world 2018-08-03 18:36:35 +08:00
Benau
9d78173ec6 Use 32bit for server version 2018-08-03 14:01:36 +08:00
auria.mg
90073bc954 Fix karts spawning over the start line, esp. in reverse 2018-08-02 21:02:52 -04:00
Benau
8b07ec755a Disable switch and bubblegum for now in network 2018-08-03 01:28:20 +08:00
Benau
0a95900283 Clean all pending rewind event functions when exit 2018-08-03 01:26:42 +08:00
Benau
9a8d5fc667 Improve swatter in network by locally add a swat event 2018-08-02 16:37:56 +08:00
hiker
b164a35d91 Fixed item distribution (signed numbers made the random number
negative, causing incorrect distribution of items).
2018-08-02 18:03:42 +10:00
hiker
0fa25db181 Removed runbber ball's time-between-ticks setting, which is not
necessary anymore after alayan's changes to item distribution.
2018-08-02 09:34:03 +10:00
hiker
46706fb109 Applied a simpler version of Alayan's change to selecting the
a random item: the computed 'random' number is now sent through
a PRNG once to avoid long sequences of picking the same item.
2018-08-01 09:55:08 +10:00
hiker
9b7f63b4ca Applied alayan's bugfix - thanks! 2018-08-01 09:55:00 +10:00
hiker
8ea8562ee6 Fixed profile mode. 2018-08-01 09:54:43 +10:00
Benau
2bb52df3c8 Split random ports (default off for server) configuration 2018-07-31 10:46:41 +08:00
Alayan-stk-2
8acd13542e Fix #3351 (#3354) 2018-07-30 20:29:31 -04:00
Benau
d203239aa2 Improve kart kart collision in network 2018-07-31 01:14:02 +08:00
Benau
4ec8a33f8c Use a correct queue to save network state 2018-07-30 19:38:10 +08:00
Benau
f49a092603 Optimize network state saving 2018-07-30 16:26:28 +08:00
Benau
a8434624a1 Optimize saving of max speed state in network 2018-07-30 15:36:16 +08:00
Benau
782e966fa5 Optimize saving of skidding state in network 2018-07-30 15:35:59 +08:00
Benau
59ebc48fe1 Don't recreate locally destroyed projectile 2018-07-30 01:56:14 +08:00
Benau
982220daf8 Fix rubber ball in network 2018-07-29 15:59:34 +08:00
Benau
3f27a04bd1 Fix plunger in network 2018-07-28 16:02:46 +08:00
Deve
fa4c640dae Merge branch 'hide-navbar' 2018-07-27 20:56:36 +02:00
Benau
5f90a61c3d Improve item firing sound in network 2018-07-28 01:00:41 +08:00
Benau
b0f20ca5a5 Add the remaining unreliable fragment flags 2018-07-27 22:40:28 +08:00
Benau
5d3304b1c0 Fix compiler warnings 2018-07-27 22:40:03 +08:00
Benau
d9cebc3991 Try unreliable state in network 2018-07-27 21:47:07 +08:00
hiker
4e35fe8fb8 Merge branch 'physics-tweaks' 2018-07-27 21:24:28 +10:00
Benau
f0b46d08b2 Fix swatter in network 2018-07-27 13:32:19 +08:00
Deve
ef27fdaba8 Fixed a crash on exit 2018-07-27 00:05:39 +02:00
hiker
f8acc1ad49 Added the cushioning time to the network state (to be decided later
if local state might be good enough).
2018-07-26 21:47:05 +10:00
hiker
b12205332c Changed default value of m_network_steering_reduction to -1 to make
sure we test if this value is specified in stk_config.xml.
2018-07-26 17:52:29 +10:00
hiker
84c21c4af2 Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-07-26 17:47:25 +10:00
Benau
05f5663888 Save the uncompressed physics values to objects in server 2018-07-26 13:32:41 +08:00
Benau
7538f36bed Remove compiler warnings 2018-07-26 08:54:38 +08:00
hiker
007f611c10 Bugfix - NetworkPlayerController are also created on the server. 2018-07-26 10:48:06 +10:00
hiker
7ff7e049ea Merge branch 'master' of github.com:supertuxkart/stk-code 2018-07-26 10:18:30 +10:00
Benau
c69bf2b96f Split squashed timer and squashed status 2018-07-26 01:47:49 +08:00
Benau
f88ad497e9 Fix ticks time mixed up 2018-07-26 01:02:41 +08:00
Benau
c261735c2b Try to fix osx build 2018-07-25 21:42:36 +08:00
Benau
d4ca53b34e Detect incompatible binary during restore state 2018-07-25 16:15:26 +08:00
hiker
7cca534273 Added option to reduce steering of remote karts automatically each frame.
This can help in case of high latency connections and quick steering changes:
because of the high latency the steering is applied too long locally,
reducing in the other kart driving left/right way too much.
It's disabled for now (i.e. steering is multiplied by 1.0), but can be
enabled in stk_config.
2018-07-25 18:09:05 +10:00
hiker
deb6d76504 Fixed compiler warning. 2018-07-25 17:52:38 +10:00
Benau
1e53349f52 Rewind bowling and cake in network game 2018-07-25 15:33:49 +08:00
Benau
c8a50d2f49 Temporarily fix rewind queue for undo 2018-07-24 15:44:31 +08:00
Benau
4a9a0fba0f Make flyable to work with shared_ptr 2018-07-24 15:43:31 +08:00
Benau
60bfc1840b Port rewinders to use shared_ptr 2018-07-24 14:22:20 +08:00
Benau
bbf5c54f87 Use rewinder with shared_ptr for easier item destroy handling 2018-07-24 14:21:42 +08:00
Benau
6369256022 Reset rewinding manager at each online or offline game 2018-07-24 14:18:43 +08:00
hiker
1a9f0163e0 Try to fix odd behaviour of soccer ball. 2018-07-23 17:52:12 +10:00
Benau
56b71e97ad Remove unused class 2018-07-23 08:41:59 +08:00
Benau
00a22a727a Check minimap invert for all players (required in network) 2018-07-23 08:29:37 +08:00
Deve
ea13d97f6b Allow to specify minimum number of players in command line 2018-07-22 22:48:45 +02:00
Benau
a22fde85ec Correct ghost kart starting position before start 2018-07-20 19:49:06 +08:00
Benau
82b23b6c26 Fix ghost replay crashes 2018-07-20 19:23:18 +08:00
Benau
d4f7d6baaa Don't show the polling log if currently server 2018-07-20 15:46:07 +08:00
Benau
0e1a5ea285 Properly check for soccer team of players 2018-07-20 14:44:53 +08:00
Benau
2b4d062911 Try to fix the remaining ipo issues 2018-07-20 14:09:27 +08:00
auria.mg
a3a5befe63 Keep working on #3345, not there yet 2018-07-19 21:09:33 -04:00
auria.mg
f4dced8172 A few steps forward for issue #3345, more issues remain 2018-07-19 20:56:46 -04:00
Benau
c4ae3dff69 Set the min max values for each mode properly 2018-07-20 01:42:31 +08:00
Benau
1f7f64f3b5 Prevent rescuing in soccer mode to go back to self goal immediately 2018-07-20 01:36:02 +08:00
Benau
487227630f Invert x-z of position for soccer blue team player 2018-07-20 01:06:11 +08:00
hiker
b4a4de74bb Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-07-19 18:39:55 +10:00
Benau
f124bd9df3 Don't allow the game to start if all players joined red or blue team 2018-07-19 15:50:01 +08:00
Benau
639883ca48 Display the number of players required to start a game for owner-less server 2018-07-19 15:26:15 +08:00
Benau
4ccb405cd1 Add exception handling in handlePendingConnection 2018-07-19 14:48:50 +08:00
Benau
7ebd1fabd9 Add exception handling to prevent player hacking network string 2018-07-19 14:23:35 +08:00
Benau
00712c5c6d Fallback to goal target if not specified in command line 2018-07-19 09:24:13 +08:00
hiker
6bf1a59579 Fixed compiler warning. 2018-07-19 09:56:15 +10:00
hiker
53d2bc3b8e Made restitution configurable (depending on speed of kart). 2018-07-19 09:55:24 +10:00
Deve
285b4701d6 Revert "Revert "Fixed multitouch device after some modifications in player controller""
This reverts commit d14916dec2.
2018-07-18 21:32:36 +02:00
Benau
1ba361ae23 Reset track objects during onGo when race start for network 2018-07-19 01:55:05 +08:00
Benau
1d7a9e9465 Prevent negative time in network soccer when finishing 2018-07-19 01:17:52 +08:00
Benau
6423925718 Hide the low-level extra server info from command line 2018-07-19 01:08:26 +08:00
Benau
b7569635a0 Load LOD models required by phyiscal moveable objects for server only 2018-07-19 00:51:04 +08:00
Benau
5e7ec89002 Fix more override warnings 2018-07-19 00:35:56 +08:00
Benau
d14916dec2 Revert "Fixed multitouch device after some modifications in player controller"
This reverts commit b359a3387f.

The original controller handling is brought back
2018-07-19 00:26:29 +08:00
Benau
252505a59f Merge remote-tracking branch 'origin/master' into local_state 2018-07-19 00:25:00 +08:00
Benau
1be9e4fdc4 Remove unsuitable tracks for each game mode during setup 2018-07-19 00:03:09 +08:00
Benau
c5cdfcebfe Finish soccer mode in network 2018-07-18 16:37:09 +08:00
Benau
d5168691e1 Dont't send item event confirmation if empty state 2018-07-18 13:33:37 +08:00
Benau
59f1fdf250 Take controller event into account for connection debug 2018-07-18 13:31:38 +08: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
hiker
fcc1ab3abe Test to change restitution based on speed, to avoid huge push-into-air
after certain high speed collisions.
2018-07-18 09:39:19 +10:00
hiker
c01622a5d7 Avoid cushioning a kart more than once per second. This helps
avoiding the hovering effect (a kart is cushioned, moves forwards
on a downward slope, cushioned again, ...).
2018-07-17 09:31:14 +10:00
Benau
5c6de6d0fa Increase quaternion compressed precision
After dropping the largest value, the rest 3 are guaranteed not
larger than 1 / sqrtf(2), given normalized quaternion
2018-07-16 12:13:31 +08:00
Benau
fc563cc678 Add useLocalEvent in rewind manager 2018-07-16 01:00:13 +08:00
Benau
511d8dd7a8 Port kart animation rewind to RewindInfoEventFunction 2018-07-16 00:35:33 +08:00
Benau
f2d5b32fa6 Add RewindInfoEventFunction for functional rewind 2018-07-16 00:32:58 +08:00
Benau
e0ada8d6d1 Fix soccer ai stats 2018-07-15 15:20:55 +08:00
Benau
30ceb7dd4a Make smoothing variable configurable 2018-07-15 12:49:07 +08:00
Benau
b979d0db71 Fix change team icon path 2018-07-14 15:55:03 +08:00
Benau
06bcb13590 Allow changing soccer team in lan or private servers 2018-07-14 15:16:54 +08:00
Benau
c72db7099d Synchronized random arena item in network game 2018-07-14 08:11:35 +08:00
Deve
b359a3387f Fixed multitouch device after some modifications in player controller 2018-07-13 23:50:40 +02:00
Benau
9fbfe0588f Make network tracks screen usable for all game modes 2018-07-14 00:40:53 +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
724828b031 Don't adjust vertical offset for phyiscial objects 2018-07-13 22:06:13 +08:00
Benau
23e5dace40 Allow starting soccer mode in network with goals limit 2018-07-13 21:29:26 +08:00
Benau
0cee131b9f Add positional smoothing for physical objects in network 2018-07-13 20:27:37 +08:00
Benau
1333fe2d19 Use minimum size for uid of rewinder 2018-07-13 15:05:07 +08:00
Benau
ef65d70f77 Compress physical object state 2018-07-13 13:46:15 +08:00
Benau
5330951842 Improve compress quaternion by only dropping the largest value out of 4 2018-07-13 12:56:55 +08:00
Benau
565dfcef96 Only send state for moving track object 2018-07-13 10:47:30 +08:00
Benau
ab528e2840 Add a unique identity to each rewinder 2018-07-12 12:41:06 +08:00
Benau
99659e8021 Initial work on dynamic physics object rewind 2018-07-12 09:05:26 +08:00
Benau
7e2d25d4a9 Disable in game menu to avoid timer desync if not racing in network game 2018-07-12 07:16:37 +08:00
Benau
11d9090039 Add initial kart local state saving with correct attachment rewind 2018-07-12 07:08:02 +08:00
Deve
ec25a9d368 Enable screen keyboard on android even if there is no touch device.
It may be still useful for gamepad.
2018-07-11 22:41:22 +02:00
Deve
e0d262bfdd Allow to use screen keyboard even if hardware keyboard is available 2018-07-11 21:02:24 +02:00
Benau
8515805d52 Add initial framework for local state saving 2018-07-11 15:40:36 +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
db8a92a2d6 Fix getifaddrs leaking 2018-07-11 13:49:01 +08:00
Benau
908735b1b1 Remove local state saving at t = 0
A proper same frequency local state saving for client will come later
2018-07-11 13:29:30 +08:00
Benau
b537df54fc Move scripting update to updateGraphics 2018-07-11 11:08:53 +08:00
Benau
3b2acf01eb Add m_disable_sending_log to request to hide logging for server polling 2018-07-11 10:56:28 +08:00