Commit Graph

15730 Commits

Author SHA1 Message Date
Benau
37f622ac0e Fix #3650 2019-02-06 01:04:09 +08:00
Benau
0bc4201bf9 Fix message queue progress bar for floating point changed 2019-02-05 16:01:51 +08:00
Deve
f86b2657c1 Don't use margins for screen keyboard, because it's easy to misclick space 2019-02-04 23:42:48 +01:00
Deve
388594270f Use common function for changing spectator target 2019-02-04 23:01:20 +01:00
Benau
5bc8002caa Close debug menu whenever screen is changed 2019-02-04 16:13:14 +08:00
QwertyChouskie
538911b25f Fix versioning for master branch (#3738) 2019-02-03 12:02:55 +01:00
Benau
7b186c2b04 Allow left right switch for CTF which has position rank 2019-02-03 16:10:57 +08:00
Benau
2eed6254f4 Don't show chosen team color for spectator 2019-02-03 15:39:48 +08:00
Benau
f048e19bb1 Make spectator helper message to show when server is ready 2019-02-03 15:27:01 +08:00
Benau
9757209da6 Hide lap messages when live-joining happening 2019-02-03 15:19:02 +08:00
Benau
2bd2dc19ca Remove spectate helper message if finishing the race last 2019-02-03 13:45:51 +08:00
Benau
11dafe470c Update possible invalid camera again 2019-02-03 11:21:33 +08:00
Benau
18c9ef6adc Use kart position for left right switching 2019-02-03 01:46:27 +08:00
Benau
52cddf6208 Hightlight current spectating kart in race gui 2019-02-02 16:06:41 +08:00
Benau
0cb12ea124 Allow changing spectate target with analog input 2019-02-02 01:20:52 +08:00
Benau
75bc25d2ff Fix spectator if network splitscreen is enabled 2019-02-01 22:12:53 +08:00
Benau
df2731bc2c Fix possible crash 2019-02-01 19:02:50 +08:00
Benau
6ac98c0324 Only synchronize one kart each time for check line
This remove the duplicated new lap message
2019-02-01 17:50:09 +08:00
Benau
52ad702d13 Add fast forward in rewind to avoid android hangs 2019-02-01 17:22:41 +08:00
Deve
ae92d63492 Add 2px margin to screen keyboard buttons to fix navigation with gamepad 2019-01-31 22:16:06 +01:00
Deve
575f44a043 Fixed a crash after closing screen keyboard when dialog window is active.
Also fixed using screen keyboard with gamepad when it's used in dialog window.
2019-01-31 22:00:39 +01:00
Benau
a05889fa6a Show spectator icon for player list 2019-01-31 11:05:44 +08:00
Benau
1669368176 Fix 00:00:00 finished time in network caused by disconnection 2019-01-29 14:08:57 +08:00
Benau
552179180e Show disconnected message when result screen is showing 2019-01-29 13:06:17 +08:00
Deve
16fb7cefb4 Document some environment variables 2019-01-28 22:46:35 +01:00
Alayan
0a40861be7 Improve spectating info message 2019-01-27 19:11:41 +01:00
Benau
efb6b9e2cf Allow changing camera target after finishing network race 2019-01-28 01:17:26 +08:00
Benau
a0c6bc41a2 Add spectate helper message 2019-01-27 15:28:02 +08:00
Benau
8545d47d1e Move change spectate target to client lobby 2019-01-27 14:42:48 +08:00
Benau
b491ab0e82 Reset smooth network body when moving kart 2019-01-27 13:13:02 +08:00
Benau
e869fbfd9e Merge remote-tracking branch 'origin/for_alayan' 2019-01-26 16:18:47 +08:00
Benau
4e830d7df7 Reset server manager when entering the selection screen
So any previous servers (lan / wan) are fully cleared
2019-01-26 16:16:11 +08:00
Benau
2e08fe3b15 Add current date and time to log for server 2019-01-26 14:56:08 +08:00
Benau
4f25b709a7 Kick high ping peer when it's not in game 2019-01-26 14:16:12 +08:00
Deve
b68f6c1382 Better line wrap for non-breakable characters 2019-01-25 22:20:41 +01:00
Benau
66fa81c6c9 Synchronize check lines and lap status from server 2019-01-26 02:05:03 +08:00
Benau
664129e448 Handle copying ItemState to Item properly (esp in live join) 2019-01-24 14:01:04 +08:00
Benau
6ecd606e3f Don't focus if clicking on an empty part of the list 2019-01-22 01:56:36 +08:00
Benau
bf05035904 Add 1st user name to kick log 2019-01-22 00:22:56 +08:00
hiker
040725ae87 Merge branch 'master' of github.com:supertuxkart/stk-code 2019-01-21 22:40:48 +11:00
Daniel Butum
edd1280dbc Update config to use the new online servers & remove hardcoded certificate (#3703)
* Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on

* Fix new server SSL curl certificate by shipping CA bundle from https://curl.haxx.se/docs/caextract.html

* Remove debug log for curl host

* Move server config to stk_config.xml and Update news.xml redirects
2019-01-19 17:49:11 -05:00
hiker
7d688b241c Merge branch 'fix-wiiuse-uninstallation' 2019-01-20 01:45:31 +11:00
Deve
2d219f29cc Improve screen keyboard layout 2019-01-17 00:15:12 +01:00
Benau
9078438b23 Save players and live join info in ClientLobby 2019-01-16 16:45:27 +08:00
Benau
4e2b843f71 Allow going back to lobby in selecting karts or tracks phase
It allows player to be spectator later
2019-01-16 13:43:26 +08:00
Deve
0355922116 Make more visible difference between skid1 and skid2.
Adjust particle size, because textures had large unused transparent space before.
2019-01-15 22:34:13 +01:00
Benau
f9cd0256ad Fix hit limit game progress 2019-01-16 02:10:48 +08:00
Benau
b0d1bf6cce Use fixed value of battle hit, capture and time limit 2019-01-16 01:54:25 +08:00
Benau
8951ef0cbf Make live-players default on if not written in default server_config.xml 2019-01-16 00:59:50 +08:00
Deve
d1fc7732c3 Don't open debug menu if there is dialog window.
The modal dialog eats gui close event, which is quite annoying.
Also return event block as long as debug menu is opened.
2019-01-14 23:27:36 +01:00
Deve
7bb8cc2706 Close screen keyboard when clicked outside of it 2019-01-14 22:00:43 +01:00
Benau
fd32b530df Focus on chat default if not android 2019-01-15 02:10:27 +08:00
Benau
639071f959 Update last activity so that the peer is not kicked for chat 2019-01-15 01:53:32 +08:00
Benau
6f823f9c9b Dismiss screen keyboard if opened 2019-01-15 01:31:48 +08:00
Benau
16d7f7e398 Fix possible getifaddrs crash 2019-01-14 02:26:30 +08:00
Benau
60da1fa6c7 Allow using AI with ffa 2019-01-14 00:49:10 +08:00
Benau
2bfa0f54dc Add network ingame dialog with chat function 2019-01-13 16:59:26 +08:00
Deve
9d42b70dda Show powerups and nitro in spectator mode on android 2019-01-12 21:51:02 +01:00
Deve
43885eacf2 Center icon in cell only if there is no text 2019-01-11 22:51:24 +01:00
Benau
e1e0b43f88 Remove previous entries to avoid reserved kart in network being displayed 2019-01-12 00:45:56 +08:00
hiker
5cf79f66fe Revert "Fix #3697", since this was not included in any
of the binaries built. It is already on master.

This reverts commit eecfc5d797.
2019-01-10 23:11:25 +11:00
Benau
58e0dce2d0 Fix #3697 2019-01-10 10:11:35 +08:00
Benau
eecfc5d797 Fix #3697 2019-01-10 10:08:58 +08:00
Deve
737e4b3d99 Merge branch 'wayland_multitouch' 2019-01-10 00:01:47 +01:00
Deve
a40b6e3758 Turn off multitouch race gui on non-android devices 2019-01-09 22:29:37 +01:00
Deve
15ffc98369 Detect if there is touch device available 2019-01-09 22:04:50 +01:00
Alayan
47cc127902 Fix error message 2019-01-09 04:09:06 +01:00
Alayan
4e340ebe92 Update version and profile folder for the beta 2019-01-09 04:01:41 +01:00
hiker
7fec380398 Fixed unit test (accessing world which does not exist during
unit tests, when delaying cakes at start of race).
2019-01-09 12:55:06 +11:00
hiker
20882b9e29 Addresses issues raised by Auria's review - thanks! Mostly
renaming of variables, though I also simplified code a bit.
2019-01-09 12:52:38 +11:00
Deve
b611b0dd80 Make touch device always enabled for testing 2019-01-08 22:44:17 +01:00
Deve
8257d9eeee Handle touch events on wayland device 2019-01-08 22:31:37 +01:00
hiker
55cf0b66c6 Support more version numbers: -alphaX, -betaX, and -rcX
now all work, and result in properly sorted integer
version numbers. Added tests.
2019-01-09 00:28:26 +11:00
auria.mg
e4168e7a28 Revert "Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on (#3690)"
This reverts commit b2c11c120b.
2019-01-07 20:01:00 -05:00
Daniel Butum
b2c11c120b Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on (#3690) 2019-01-07 19:42:30 -05:00
Kevin Zheng
f40ac02242 Implement getCurrentExecutableLocation() on FreeBSD (#3688) 2019-01-07 19:31:15 -05:00
Alayan
bec1c319f6 Add light scattering to the graphical options and disable it on graphics 3 2019-01-08 01:18:46 +01:00
Deve
d95a1ab27e Use the same size for back arrow in pause dialog as for other icons 2019-01-07 23:42:40 +01:00
Deve
df0377b0fc Use higher sensitivity only on tablets 2019-01-07 22:37:02 +01:00
Deve
8d92fa2394 Use look back instead of top view in spectator mode on android 2019-01-07 21:32:26 +01:00
Benau
dbe5c22622 Try to restore CheckStructure status for spectating 2019-01-08 04:12:10 +08:00
Benau
10dbac9149 Handle m_last_confirmed_item_ticks live in a thread safe way 2019-01-08 02:17:35 +08:00
Benau
f6fefba343 Allow look back in spectating 2019-01-07 15:25:35 +08:00
Benau
307194e482 Update network documentation 2019-01-07 14:46:34 +08:00
Benau
9d612455b3 Add kart name to disconnected linear race player 2019-01-07 14:07:08 +08:00
Benau
918d762893 Fix ranked server going back to lobby 2019-01-07 14:04:44 +08:00
Benau
4ce5678fd6 Allow team choosing in ownerless server if live players is true 2019-01-07 12:41:00 +08:00
Benau
07c973f35a Fix initial on road saving 2019-01-07 11:44:22 +08:00
Alayan
b67c70bad7 Add hypen to breakable characters 2019-01-06 18:46:57 +01:00
Alayan
7715c1c505 Take handicap into account for rankings 2019-01-06 18:15:20 +01:00
Benau
b555851f57 Don't use getActiveCamera which is not initialized yet 2019-01-07 00:37:45 +08:00
Mrxx99
e57f9ad6dd Fix #3685 (#3686)
* Fix #3685

* use is_soccer from race_manager
2019-01-06 17:32:12 +01:00
Benau
b46bd60a53 Use setXYZ so front xyz of kart is updated too 2019-01-07 00:19:22 +08:00
Mrxx99
6a361db994 fix comparison (#3684) 2019-01-06 16:25:20 +01:00
Mrxx99
9fb90d0c31 Show the name of who made the fastest lap (#3683)
* implemented showing the name who made the fastest lap in race result screen (only for offline play yet)

* also support online races, using english and added translation note

* added comment

* Fix typo
2019-01-06 15:17:48 +01:00
Benau
cbb26b73d9 Always reset server with back to lobby function added 2019-01-06 14:18:21 +08:00
Benau
d049ffa1d5 Adjust addWaitingPlayersToGame for live joining or spectate 2019-01-06 13:58:04 +08:00
Benau
961c3957e2 Allow spectating linear race 2019-01-06 13:43:19 +08:00
Alayan
aeeb4afd63 Several improvements to the ranking formula 2019-01-06 02:35:01 +01:00
Benau
bb31d6b226 Allow player going back to lobby without disconnecting the server 2019-01-06 00:21:51 +08:00
Benau
641b16e1c7 Add a thread safe way to clear game protocols when deleting world 2019-01-05 14:20:30 +08:00
Benau
37e5ea6806 Don't count spectator as players in game for testing reset 2019-01-05 14:10:56 +08:00
Benau
9747f59e00 Update lobby button with pre-translated string 2019-01-05 11:40:27 +08:00
Deve
7f3d895f70 Allow to switch karts in spectator mode on android 2019-01-05 00:53:17 +01:00
Benau
a59898c4ba Fix compiler warning 2019-01-05 03:21:06 +08:00
Benau
c7449d0a7f Use better english by alayan 2019-01-05 02:39:51 +08:00
Alayan
94a0988a71 Simplify code 2019-01-04 19:20:33 +01:00
Alayan
4d6be5934e Skip eliminated karts when switching camera target in spectating mode 2019-01-04 19:19:26 +01:00
Benau
f4a932271f Remove addons karts in server if live players is on 2019-01-05 01:31:04 +08:00
Benau
6a7ec37462 Merge remote-tracking branch 'origin/master' into live_join 2019-01-05 01:24:06 +08:00
Benau
6a1a1740c0 Make live join or spectate a server option 2019-01-05 01:20:25 +08:00
Benau
214272468d Add left or right player action to change spectating target 2019-01-05 00:42:00 +08:00
Benau
66794781fe Handle reserved player ranking correctly in ffa 2019-01-05 00:10:02 +08:00
Benau
ca34b64ba4 Only hover the kart during active race phase or complete live join world 2019-01-05 00:02:20 +08:00
Benau
2950238d2b Add live join and spectate button to lobby 2019-01-04 23:56:50 +08:00
Benau
582ec771c0 Fix splitscreen kart id checking 2019-01-04 22:10:21 +08:00
Benau
c16727302a Add arena ai to test live join 2019-01-04 22:07:15 +08:00
Benau
7c34818c04 Send go back to lobby message to all peers in server 2019-01-04 21:16:10 +08:00
Benau
e3a006c151 Move startListening to main thread to avoid race condition for accessing lobby 2019-01-04 21:01:53 +08:00
Benau
72db382c76 Add current track info to server screen 2019-01-04 18:53:45 +08:00
Benau
4b22465836 Add current playing info to lobby 2019-01-04 17:40:25 +08:00
Benau
38043de27c Don't start engine sound for reserved karts 2019-01-04 15:25:32 +08:00
Benau
7a112ee6ef Draw music description properly in network 2019-01-04 14:54:00 +08:00
Benau
62ce61d980 Add save and restore complete state for soccer world 2019-01-04 14:01:31 +08:00
Deve
d46f0aeddb Some tweaks in soccer setup screen 2019-01-03 21:44:15 +01:00
Mrxx99
fbb44a7a34 fix in setCollapsed (#3676) 2019-01-03 20:41:09 +01:00
Benau
78b4799b82 Fix #3675 which tracks screen is used in ghost race 2019-01-04 01:24:23 +08:00
Benau
17ecbe69af Don't show disconnected players in result screen for ffa and ctf 2019-01-03 16:35:16 +08:00
Benau
ab353dd632 Save and restore complete world status for ffa and ctf 2019-01-03 16:27:16 +08:00
Benau
b2ac7489d9 Change the definition of reserved network profile
So player name doesn't go away if disconnection happens
2019-01-03 16:00:11 +08:00
hiker
c37aebff94 Fixed compiler warnings. 2019-01-03 17:30:00 +11:00
Benau
c680181c9c Fix compiler warning 2019-01-03 14:20:22 +08:00
Benau
40e3ec1e56 Show server days since starting 2019-01-03 14:19:15 +08:00
Benau
27f08661b2 Don't update cursor if no graphics
It hangs when reseting screen in windows with server creation in gui
2019-01-03 13:08:47 +08:00
Mrxx99
c959836e34 Move soccer options to track info screen (#3638)
* moved soccer race options to track info screen

* using one spinner for both target mode values

* merged pointamount-spinner with lap-spinner and renamed it to target-value-spinner

* fixed identation

* small fix in track_info screen

* storing target value when value was changed

* making sure tartet spinners are invisible when not needed; small adjustments

* some test with solving space issues on small resolutions

* Revert "some test with solving space issues on small resolutions"

This reverts commit f6b6526681.

* test with collapsing widgets

* removed deleting childs of widgets in track_info_screen

* readded deleted spacer

* collapsing target type widgets is now working

* made target type spinner wider to have enough space for text in it on small resolutions

* re-added setting target value to invisible/visible

* using new collapsing widget function in track info screen for target type widgets
2019-01-02 20:29:53 -05:00
hiker
696a0c778c Merge branch 'master' of git://github.com/Partmedia/stk-code into Partmedia-master 2019-01-03 09:17:10 +11:00
Benau
1483b2b703 Use unicode check mark and ballot x for Y/N 2019-01-03 01:37:57 +08:00
Benau
aa49f4ae8c Reset all smooth network body of rewinders during firstly live join 2019-01-02 16:16:59 +08:00
Benau
eb342b2707 Always update current physical object if there was live join 2019-01-02 15:30:56 +08:00
Benau
314c37ce0b Don't check for successful animation creation for eliminated karts 2019-01-02 14:57:39 +08:00
Benau
8332e0471e Save and restore NetworkItemManager completely for live join 2019-01-02 14:02:51 +08:00
Benau
0e4424b3ea Show message for back to lobby if needed 2019-01-02 12:44:18 +08:00
Benau
55430a31a2 Add invulnerability depends on kart for live join 2019-01-02 11:37:28 +08:00
Benau
52a4bbeac7 Add player name and team arrows for live join kart 2019-01-02 10:34:23 +08:00
Benau
a849229f27 Hide live joining karts util finish live join 2019-01-02 01:50:47 +08:00
Benau
ec123df108 Remove player list when leaving the lobby screen to avoid crash 2019-01-02 01:19:35 +08:00
Mrxx99
f64a1e19b2 Using a default music if specified music of track was not found (#3667)
* added default music to stk_config and using it for not found music files

* only using default music if no music was found for a track
2019-01-01 09:54:15 -05:00
Benau
81776cb4df Let other players know the newly joined player 2019-01-01 16:32:37 +08:00
Benau
2f8da236e3 Add initial live join handling for the one who does it 2019-01-01 15:46:45 +08:00
Benau
0431344886 Add copyFrom for RemoteKartInfo 2019-01-01 13:12:28 +08:00
Benau
564ed41ed3 Add live join world and kart handling 2019-01-01 01:01:49 +08:00
Mrxx99
8cba880ef9 small improvements regarding widget collapsing (#3666)
* small improvements regarding widget collapsing

* moved variables initialization to widget.cpp constructor
2018-12-31 12:12:08 +01:00
Benau
220a628f47 Add atomic for team and handicap in NetworkPlayerProfile 2018-12-31 14:56:28 +08:00
Benau
5410a34f9e Make kart selection screen usable with live join 2018-12-31 14:40:00 +08:00
Benau
2ceeabf882 Split kart assignment for live join 2018-12-31 14:05:21 +08:00
Benau
a4a60ae6f6 Separate load world message creation 2018-12-31 13:15:08 +08:00
Benau
7a60c4a35a Add shouldSaveSate with ticks for checking 2018-12-31 10:41:44 +08:00
Deve
17b83ac321 Don't crash when calling popMenu() with empty stack.
Maybe quit button in main menu gets two click events while it's waiting for app destroy event.
2018-12-31 00:06:42 +01:00
Benau
5458fcea4e Simplify waiting players joining 2018-12-31 01:21:17 +08:00
Benau
d9f1d18d9b Use placeholder tux for reserved players 2018-12-30 16:37:13 +08:00
Benau
414380e85a Fix memory leak of server only build network console exit 2018-12-30 13:03:57 +08:00
Benau
bd6264b3b0 Remove old method in GameSetup 2018-12-30 11:53:28 +08:00
Benau
50aa334912 Use new method to start game 2018-12-30 11:13:18 +08:00
Benau
b7da5b243d Fix compilation error 2018-12-30 10:56:08 +08:00
Mrxx99
2546c1280a Collapsing widget function (#3664)
* added function to collapse a widget more easily

* improved setCollapsed and added overload to specify the uncollapsed height

* used new collapse functions in online track_screen
2018-12-29 18:24:58 -05:00
Benau
9a4013843e Kick idling peers in server with new method 2018-12-29 16:10:41 +08:00
Benau
346f763cef Save grand prix scores in server with new method 2018-12-29 15:53:12 +08:00
Benau
c6b3fba304 Use player name from RemoteKartInfo 2018-12-29 14:05:28 +08:00
Benau
9068483d56 Implement live change kart model of kart 2018-12-29 13:14:07 +08:00
Benau
43761e4d9e Use ServerConfig::m_max_ping for delaying server if supports live join
So any players having ping below that value can play the game smooth
2018-12-26 16:22:15 +08:00
Deve
4a546f6802 Tweak touch device sensitivity after recent smooth turning 2018-12-26 01:20:10 +01:00
Deve
a78602a2b5 Restore selected track when changing tracks group in voting screen 2018-12-26 00:48:10 +01:00
Deve
92cf59f63d Keep information about item badge when scrolling ribbon widget 2018-12-26 00:29:39 +01:00
Benau
7306d9e650 Fix max speed increase duration handling 2018-12-26 01:34:40 +08:00
Benau
e7ef80720a Don't draw more laps than max laps in network race 2018-12-25 13:31:08 +08:00
Benau
b08dd1c410 Use 16bit signed integer for ticks in MaxSpeed 2018-12-25 13:13:37 +08:00
Benau
be089ae9bd Save only the minimum for basketball rewind 2018-12-25 12:08:28 +08:00
Benau
ddeab51917 Send new scores as a whole and optimize 2018-12-25 11:31:20 +08:00
Benau
bff2a5f9f2 Use Y/N for voting screen 2018-12-25 10:50:44 +08:00
Benau
c98c20e6a5 Disable smoothing body for network when animation is playing 2018-12-25 10:02:19 +08:00
Deve
dba4d05852 Use shorter name for unnamed player 2018-12-25 01:18:17 +01:00
Benau
b69216f242 Add document for uid of rewinder 2018-12-25 01:24:14 +08:00
Benau
f8f571e40e Remove the unneeded disconnected elimination event
It can be implictly told by server state if Kx rewinder is missing
2018-12-25 00:51:31 +08:00
Benau
d6946198c5 Make flag a rewinder
It remove the capturing delay and allow ctf in local splitscreen
2018-12-24 16:01:21 +08:00
Kevin Zheng
9cec9c5cea Add option to disable light scattering (#3662)
* Fix typo

* Match name in irr_driver

* Add option to disable light scattering
2018-12-23 21:26:22 +01:00
Kevin Zheng
85fc39c356 Use floating trigonometric functions 2018-12-22 22:43:06 -06:00
Benau
2bc01f5f98 Fix no plunger replay with local state 2018-12-23 12:04:31 +08:00
Benau
c42c5b7d82 Fix android compilation 2018-12-22 11:28:32 +08:00
Benau
44ce4f1f37 Update translation source 2018-12-22 11:20:26 +08:00
Benau
12a67d6e6b Merge remote-tracking branch 'origin/network' into voting_gui 2018-12-22 10:48:12 +08:00
Benau
86198881f4 Merge remote-tracking branch 'origin/master' into voting_gui 2018-12-22 10:35:09 +08:00
Benau
31e14b14c6 Make explosive items timeout configurable in stk_config 2018-12-22 10:33:01 +08:00
Benau
3292c8f0c3 Merge remote-tracking branch 'fouks/prevent-early-explosive-items' into voting_gui 2018-12-22 10:06:47 +08:00
Benau
64acb295a8 Change default voting timeout 2018-12-22 09:56:59 +08:00
Benau
f3bb19125c Add network debugging info with speed stats 2018-12-22 09:12:24 +08:00
Benau
e38edaae2c Move state frequency to ServerConfig which clients can adapt 2018-12-22 01:03:15 +08:00
Benau
c46a5eafdb Use a fixed 10 packets per second for ping packet 2018-12-21 22:53:28 +08:00
Benau
86957c9d5e Rewrite the remaining documentation in STKHost 2018-12-21 22:11:18 +08:00
Benau
a85dbcc0f7 Add the possibility to correct invalid reverse at server side 2018-12-21 21:55:55 +08:00
Benau
2eba8c179f Disable highlight until render gui during loading is bug free 2018-12-21 19:52:27 +08:00