Commit Graph

16828 Commits

Author SHA1 Message Date
Benau
3e0a651e01 Fix possible infinite when broken navmesh with separated nodes 2021-02-26 11:55:16 +08:00
Benau
b05452a9c9 Fix possible crash for mbedtls 2021-02-25 12:15:26 +08:00
Benau
fe6d38b9e2 Fix untranslated non-ready fps string 2021-02-25 11:07:54 +08:00
Benau
035a761b30 Fix text overlapped with long translation 2021-02-22 10:14:06 +08:00
Benau
d753393f4d Use MbedTLS instead of Nettle 2021-02-21 01:06:22 +08:00
Benau
39c42c3f0c Fix 1st time infinite start after server creation failure 2021-02-19 10:25:46 +08:00
QwertyChouskie
559a72aab5
Fix english
Minor fix.
2021-02-15 15:38:48 -08:00
Benau
262c8f2f07 Fix #4488 2021-02-13 10:33:26 +08:00
samuncle
5cb36e38cf
Feature/enable lod autocompute (#3970)
* Enable LoD autocompute

* bring back the autocompute lod function

* Add the area as main function to compute the lod level

* Bring back the area based auto lod computation

Co-authored-by: samuncle <samuncle06@gmail.com>
2021-02-12 11:16:38 +08:00
Richard Qian
f136c6fe36
In-game high scores management (#4483)
* Add in-game high score selection screens, based on the ghost replay screens

Its functionality is basic for now, mainly to let players have a central place to view
their high scores

Other things to improve:
* Allow sorting the high score entries by criteria
* Allow deleting high score nodes and possibly entries
* Use better icons

* The string for the high scores title in the track info screen can now be translated

* Refine in-game high score selection screens

Includes:
* High score info dialog now shows track and setup information
* A race can be started with the displayed setup, using the current player and kart
* Icon to access the screen now placed between the tutorial and achievements buttons
* It is possible to delete a specific high score group or all of the high score groups
* Change the order of some columns to make them easier to hide for non-linear modes
* The list will now filter out enpty high score groups

* Replace bomb icon (as used in the help menu) with the full object version from STK 0.8

It has been edited to remove most of the transparency in the object itself

* Implement column clicking in the high score selection screen, and minor GUI fixes

Note that high score entry sorting is not yet working properly

Includes:
* Top right buttons replaced by button bar containing them; fixes unreliable clicking
* High score manager has some one-line functions moved into its header file
* High scores can be sorted by some criteria
* Sorting is done before every time high scores are saved

* Fix header define names for the high score info dialog

* Fix high score sorting, reorganize its associated code

* More refinements to the high score selection screen

Includes:
* Clearing high scores no longer causes memory leaks
* The manual refresh button has been removed, as it has been deemed useless

* Remove unused header files for the high scores information dialog header

* The high scores box in the track information screen no longer has '='

* Fix pressing escape key in the high score information dialog crashing the game

Also remove unused widget variables and unnecessary function overrides

* Do not write high scores for races that have 0 laps and/or have no real karts

* Allow passing a parameter to prevent high scores from temporarily being written

This setting lasts only as long as the game runs; it is useful during track and
kart animation testing, where unwanted high score entries should not be written

* Force update sources.cmake, as new source files are being added for high scores screens

* Fix memory leak and strings

Co-authored-by: Benau <Benau@users.noreply.github.com>
2021-02-12 11:12:43 +08:00
Richard Qian
ee91cf31e2 Fix missing space in fatal error for non-parent armature bone detection 2021-02-11 12:11:25 -06:00
Richard Qian
9fdec3067e Fix a minor issue for the comment with difficulty not showing SuperTux mode 2021-02-11 12:06:33 -06:00
Richard Qian
a3b34e6823
Several UI fixes (#4484)
* Open the confirm dialog if exiting the grand prix editor with changes by escape key

* When launching the tutorial, use the last used device instead of the first keyboard

* When launching story mode, use the last used device instead of the first keyboard

* Make the kart color selection dialog more consistent with other dialogs

Includes:
* Add an icon button bar with containing actions to apply changes or to cancel them
* The kart only shows its straight frame, without animation; it is slightly smaller
* Adjust the vertical space between widgets, to try keeping the kart size larger

* Use a button bar for the video settings and custom camera settings dialog
2021-02-12 02:01:11 +08:00
samuncle
b43b5c6201
Merge pull request #4478 from supertuxkart/feature/remove-old-code
A lot of old options for materials.xml format where flagged as deprecated. They are now removed. Addons will not break but might have a few visual artifacts. They should be upgraded by artists to the new structure.

The blender exporter was also cleaned.
2021-02-08 23:30:30 +01:00
Benau
4aecc8988d Fix iOS build 2021-02-09 01:41:03 +08:00
Benau
85cea43077 Allow starting offline CTF from command line 2021-02-08 10:32:10 +08:00
Benau
41bbe3df20 Fix #4477 2021-02-08 08:54:28 +08:00
Benau
d2b98456a7 Fix #4475 2021-02-08 08:25:48 +08:00
jean
89acc4e6a0 Removing sky dome (not used anywhere + deprecated even in irrlicht) 2021-02-07 21:56:58 +01:00
jean
cee3cb79a5 Removed clouds feature. Should be done with custom shaders now. Could be in the future part of weather 2021-02-07 21:31:22 +01:00
jean
ab2e35579f Remove old unused properties 2021-02-07 20:33:29 +01:00
jean
6e64ce70df Remove compositing from supported features (it is replaced by shaders now and was deprecated anyway) 2021-02-07 19:29:30 +01:00
jean
91980a2fdd compositing=coverage was not used and blend was replaced by shader 2021-02-07 19:20:19 +01:00
jean
279cfe2754 This removes transparency=yes a xml property not used with the newest exporter 2021-02-07 19:07:33 +01:00
Benau
6e3744157d Add /mute, /unmute and /listmute to mute certain player chat message 2021-02-07 01:33:37 +08:00
Benau
5d5f01b4b5 Add backward distance in camera setting gui 2021-02-06 09:13:36 +08:00
Benau
d9d665f45f Fix the icon size in vertical split screen 2021-02-06 08:59:08 +08:00
Benau
a97e65d068 Add smooth transition for soccer goal animation 2021-02-05 20:49:44 +08:00
Benau
5ccbb97046 Fix #4353 2021-02-05 14:58:19 +08:00
Benau
fa4318b6ad Implement smooth frame transition for animated mesh 2021-02-05 14:41:39 +08:00
Benau
01de29670a Fix overworld trophy points not being displayed in mobile STK 2021-02-03 09:46:28 +08:00
Benau
06500e18ca Make init android dialog header more visible 2021-02-03 01:24:58 +08:00
Benau
64b58e5790 Fix #4473 2021-01-30 11:01:46 +08:00
Benau
feb0b0a68c Add warning when low battery level for joysticks 2021-01-28 12:23:21 +08:00
Benau
e05c0b095d Update translation 2021-01-28 11:32:16 +08:00
Benau
d1c2688510 Fix outdated new addon arrow if stk is killed in background 2021-01-26 16:33:19 +08:00
Benau
65f23987f1 Fix inconsistent kart size with server 2021-01-26 14:52:22 +08:00
David CARLIER
eb5bb253f3 debugging current thread id on apple too 2021-01-22 20:44:57 +00:00
Deve
b064c38f09 Disable light scattering on android by default 2021-01-21 23:04:36 +01:00
Deve
3b02643db3 Try to enable advanced lighting on newer android phones.
We can see what is the feedback if it's fast enough for users. It still looks much better than without advanced lighting even when resolution is lower.
2021-01-20 00:12:12 +01:00
Deve
a7a1c8abca Some work with scale rtts.
IMO auto scale doesn't have much sense on desktop computers, because advanced lighting was enabled by default for a long time and graphics level 3 should be fast enough as it is. And still now rtts scale it's easily configurable in options.

I fixed deactivated "render resolution" spinner when you enter graphics options when advanced lighting is disabled.

I also added a function that reads dpi on android and it sets rtts scale based on this value. SDL is not initialized yet in this place, so getDisplayDPI() is not possible.
2021-01-19 23:58:51 +01:00
QwertyChouskie
6d3ee0ce31 Add Render resolution (scale_rtts) slider with auto-mode
Auto mode adjusts based on your display's DPI in order to hit a target DPI.  Currently it will default to Always Full for render resolution, but High Quality or even Quality might make a good default, community testing is needed.
2021-01-19 00:12:20 +01:00
Julian Schönbächler
c799fedf45 Fixing minor ambient lighting bug
Spherical harmonics: if no ambient map assigned, use specified color (but correctly)
2021-01-03 02:07:43 +01:00
riso
3a2632dd62
Small fix of icon size on race result ui and space size on race gui (#4455)
* fix team icon size on race result UI (scale based on text size)

* solve issue of too large space between score and score limit for monospace font
2020-12-27 10:23:43 +08:00
riso
ad5ffc4900
small fix of kart color slider and kart icon in result screen (#4454)
* use default kart color instead of 100 in kart color slider

* scale kart icon in race results

* prevent using font->getDimension
2020-12-26 15:45:28 +08:00
riso
5f6eb5e440
Few improvements of spinner and option UI (#4453)
* few improvements of option UI

* small fix

* show the correct spinner text when not activated

* camera name for translation

* clean the code (loop camera spinner)
2020-12-26 03:29:56 +08:00
David Carlier
edcf9cb624 OpenBSD utility build update. 2020-12-24 16:17:51 +00:00
riso
0d10f11a7f reset camera settings 2020-12-23 23:23:27 -06:00
riso
ce13648721 camera settings 2020-12-23 21:39:30 -06:00
Richard Qian
0db8d50359
More configurable music (loop end support, different race result music) (#4445)
* Allow setting [again] track reverse mode via command line

* Make composer field in music information files optional

* Add support for loop end of music

* Remove print statements used for checking current music play time

* Support playing different music on race results screen

Also make them configurable in stk_config.xml

* Allow configuring grand prix win/lose and feature unlocked music in stk_config.xml

* Fix coding indentation style

* Fix warning when scrolling track screenshots in grand prix results

* Display the rank a player kart finishes in if not in 1st place
2020-12-21 02:14:52 +01:00
Benau
922296f5eb Use correct calling method for jni functions 2020-12-08 09:03:47 +08:00
Benau
0e1732c45d Implement auto acceleration for steering wheel from mobile control 2020-12-08 08:51:30 +08:00
Benau
7f9f4dc182 Fix compilation with latest sdl2 2020-12-05 14:22:59 +08:00
Nathan Mills
ff2d4a950e
Fix access out of bounds warning with Cppcheck 2.2 (#4438) 2020-12-05 14:15:44 +08:00
Benau
3f0eb215f7 Replace glew with glad with vulkan support 2020-12-04 09:39:06 +08:00
Benau
85984d143a Only count approved addons for indicator 2020-12-01 16:17:47 +08:00
Benau
61833c9c26 Fix compilation with latest SDL 2020-11-29 12:42:11 +08:00
Benau
273c157b93 Add badge to indicate new addons for downloading 2020-11-28 00:57:40 +08:00
Benau
8eb318675d Allow saving custom camera settings 2020-11-19 12:17:01 +08:00
Benau
0a273d8882 Display race gui in 1 more spectating mode 2020-11-17 01:19:19 +08:00
dulsi
e2d4936056
Add gamerzilla support to achievements. (#4386)
* Add gamerzilla support to achievements.

* Move all gamerzilla code into one file. Should we want to support another achievement system like Steam, it can be isolated to the WebAchievementsStatus class.

* Add WebAchievementsStatus files.

* Add version number to achievements file. Update graphics. Generate achievement list from internal system.
2020-10-31 11:32:40 +08:00
David Carlier
a27737ef85 xdg-open NetBSD supports it too. 2020-10-24 23:01:10 +01:00
MrIceblock
af4cb91f47
Fix some more typos (#4414)
* Some more grammar fixes.

* Fix a typo.
2020-10-25 01:04:54 +08:00
Benau
9dbb8e2c8f Fix #4406 2020-10-24 10:11:44 +08:00
Benau
ccd3f8144c Update first time internet dialog string for removed hardware stats 2020-10-24 09:25:24 +08:00
RedstonekPL
e7557128dd
Fixed a typo in camera.cpp
There was a minor typo on line 71.
2020-10-23 20:05:30 +02:00
David Carlier
eace0982a2 DragonFlyBSD support, mainly FreeBSD codepath. 2020-10-10 14:14:49 +01:00
Benau
23e4960fef Don't show kart team completely when spectate 1 in lobby 2020-10-06 07:00:57 +08:00
riso
0274cd7bd8
Support theming for kart icons (#4395) 2020-10-01 19:11:11 +02:00
QwertyChouskie
4b47cf3f24 Remove separate menu FPS throttling
We should let VSync/m_max_fps (which defaults to 120) do their job.  If a monitor has a refresh rate even slightly higher than 60FPS (e.g. 60.0007FPS), throttling will introduce stutters, even more so at modern high refresh rates (75, 90, 120, etc.)

This also cleans up the code, e.g. the var name `m_throttle_fps` was also being used in the main loop for a different function, despite having the same var name.
2020-09-27 17:10:17 -07:00
Benau
2fc992ded9 Fix possible crash 2020-09-21 00:49:23 +08:00
Benau
94f4a6f644 Fix typo 2020-09-14 10:30:49 +08:00
Ben Hoff
2474b7496a
fix spelling error 2020-09-12 14:31:32 -04:00
Benau
ac832caaeb Fix #4380 2020-09-11 10:14:38 +08:00
Benau
7eb896fe7f Fix #4379 2020-09-11 01:09:32 +08:00
Benau
736209abbe Make chat message mixed with RTL name and LTR text look better 2020-09-10 16:32:04 +08:00
Benau
fd4be023d5 Make tinygettext use stk logging 2020-09-09 14:46:29 +08:00
Benau
1a8b5cd2e1 Fix windows build of tinygettext 2020-09-09 13:36:21 +08:00
Benau
767ba27598 Add get_all_used_chars to tinygettext 2020-09-09 13:31:37 +08:00
Benau
842278ffd9 Update bundled tinygettext
Remove unneeded files like gitignore and test and keep a simplified CMakeLists.txt
2020-09-09 13:27:10 +08:00
Alayan
073e5a4314 Improve the GP editor's track picker layout and behavior
This improves things for #4378 but is not a comprehensive solution. It also includes unrelated improvements to this screen.

- Switch from 2 track rows to 3 track rows. This allows to show more tracks at once. Nonetheless amount of white space between track pictures is still significant. Showing the track name below each track is part of the issue, as it needs space on the bottom and margins on the side to avoid track names overflowing onto each other. Word-wrap for track title would incur a small vertical cost while gaining a lot of horizontal space. Alternatively, the track names could be hidden and only shown on hover (like the game's main track selection screeen).
- Select the standard set of tracks by default instead of all.
- Reduce the amount of vertical spacing for the buttons below the track picker.
- Group laps/reverse and ok/cancel vertically instead of horizontally. This creates clear visual blocks, as the reduced vertical spacing didn't work out well otherwise.
- Add a new selected track picture. The selected track's name is always shown as title, but some users may miss it or not know track names well enough. Now, which track is going to be added to the GP when clicking ok is obvious.
- When selecting a different track, change the lap number to the track's default.
2020-09-03 21:14:11 +02:00
Benau
e072122939 Correct the timeout value 2020-09-03 13:35:46 +08:00
Benau
618eb87df0 Use TCP stun for more reliable IP type detection 2020-09-03 13:24:49 +08:00
Andreas Hellquist
6e17d51802 Fixed bug where thunder sounds would continue playing after pausing the game 2020-09-01 20:21:53 +02:00
Benau
13fa56d951 Fix #4368 2020-08-31 08:46:02 +08:00
Benau
09319c6c73 Fix #4367 2020-08-31 08:20:50 +08:00
Benau
698b6561ba Add default-ip-type info to server_config.xml 2020-08-29 11:47:37 +08:00
Érico Rolim
fe82f77786 network_config: use ns_name_uncompress 2020-08-28 19:30:38 -03:00
Alayan-stk-2
fc29cf5fda Switch public ratings to a compound of raw score and RD
The raw score remain used in the core of the formula for expected scores computations.

Also improve the handling of disconnects on rating, with new RD floors
(and so public rating penalty) for recurring disconnects (>= 3 in the last 64 races).
The raw score is less penalized than before, as it's not needed and
make expected score computations more reliable.
2020-08-27 21:43:16 +02:00
Benau
4a4da3c96c Add splash screen to hide black screen in android during launching 2020-08-27 12:52:58 +08:00
Benau
7f8ca9d4ac Proper fix for rubber band effect during resume in mobile STK 2020-08-27 01:04:09 +08:00
Benau
875c2b8eb8 Prevent undefined behaviour if too many players joined battle or soccer 2020-08-27 00:58:09 +08:00
Alayan
f99e13cb78 Fix #4219 2020-08-26 18:26:01 +02:00
Benau
4b9a84eeba Show error message from stk addons server if failing to join server
Translation is thread-safe now so it no longer needs constructor setup
2020-08-26 00:38:19 +08:00
Benau
5348876205 Fix #4327 2020-08-25 23:11:29 +08:00
Benau
067feb70f5 Bring back maximum scores obtained stats for compatibility 2020-08-25 16:40:40 +08:00
Alayan-stk-2
5a7099da02 Add an improved player ranking system 2020-08-24 18:44:28 +02:00
Benau
138dbc7dc4 Update countries translation using tsv file 2020-08-24 22:44:28 +08:00
Benau
60797aa828 Convert deprecated language code (found in Android) 2020-08-24 10:22:44 +08:00
Benau
369c346857 Use SheenBidi instead of FriBidi and libraqm 2020-08-24 00:55:10 +08:00
Benau
bdbf961e76 Allow showing online addon kart as tux when live join is on 2020-08-23 16:38:59 +08:00
Alayan-stk-2
63703f96f3
Add a minimap indicator for basket-balls
Fix #3246
2020-08-21 19:43:17 +02:00
Benau
c091574c64 Update default stun list 2020-08-16 14:16:26 +08:00
Maosen the Jellyfish
f7bc0dfd90
Add two new title font presets
Fix #3577
2020-08-13 17:09:15 +02:00
Benau
34b5b40d4e Don't exit if failed to init sensors
wine supertuxkart.exe at the moment doesn't support sensors
2020-08-11 13:32:32 +08:00
risostk
eeb2d36204 fix a small bug 2020-08-05 22:39:35 -05:00
Benau
2e12eeaa83 Add install addon button in lobby for missing current track 2020-07-29 01:30:47 +08:00
Benau
8fc6d6ea49 Fix #4335 2020-07-28 10:52:40 +08:00
Benau
f3640d4896 Remove goal message during live join which can't be dismissed 2020-07-26 12:39:09 +08:00
Benau
78b13eeedf Fix possible empty icon in result screen for addon kart online 2020-07-26 12:36:42 +08:00
Benau
fc0b818430 Allow saving current RTT to png file 2020-07-26 12:33:31 +08:00
Benau
b8ab802f2d Don't focus name textbox first in register screen
Because it will open screen keybord in mobile stk
2020-07-26 01:07:36 +08:00
Benau
5b427d76c6 Remember language selection position after changed 2020-07-26 01:05:38 +08:00
David Carlier
d4a9f1c5b5 online helper enabled on haiku 2020-07-25 13:52:59 +00:00
Benau
833781cf52 Update mobile STK full assets download size 2020-07-22 09:51:05 +08:00
Benau
9599117c28 Add high dpi support to supported platforms 2020-07-22 09:41:15 +08:00
Benau
4c9617139f Allow real addon kart hitbox if live-spectate disabled 2020-07-21 00:58:14 +08:00
Benau
6aab8857cc Add ChromeOS identity in android 2020-07-18 10:34:15 +08:00
Benau
ab2bd2aa02 Hide possible non-official kart from distro in online 2020-07-18 10:17:52 +08:00
Benau
32cc160630 Allow any addon karts in online with tux hitbox in physics
Live join and spectate are now possible too
2020-07-18 10:04:07 +08:00
Benau
846b77541f Show actual powerup number instead of + in mobile stk 2020-07-17 21:10:37 +08:00
Benau
ca42d0826e Add more spectator camera to mobile stk 2020-07-17 20:57:27 +08:00
Benau
12167aeafb Fix missing general text field dialog enter callback in android 2020-07-17 19:12:00 +08:00
Benau
f2b774d63a Fix possible undismissed screen keyboard in iOS 2020-07-17 19:10:53 +08:00
Benau
31c1003912 Fix iOS screen keyboard misplaced in the beginning 2020-07-17 08:58:18 +08:00
Benau
da589263b8 Fix gamepad only navigation 2020-07-17 07:46:49 +08:00
Benau
df25707873 Focus on close button to prevent enter game state if enter pressed 2020-07-17 01:33:04 +08:00
Benau
73735a079a Use outline font for goal message 2020-07-16 01:26:07 +08:00
Benau
3a62d5179e Fix in game chat dialog crash 2020-07-15 15:56:53 +08:00
Benau
fa943c70e3 Fix missing joystick if device is reinitialized 2020-07-15 14:16:19 +08:00
Benau
2cf5e29272 Remove android tv DPad handling because tv remote exists 2020-07-15 01:02:41 +08:00
Benau
fe8a6fb6a9 Update default value of screen keyboard status after SDL2 is used 2020-07-15 00:21:38 +08:00
Benau
1cc47fae5c Dismiss text input if out focus in non touchscreen android 2020-07-14 16:31:53 +08:00
Benau
33fb8d3f5b Update code for android tv 2020-07-14 15:22:25 +08:00
Benau
ffbf5149cd Determine android STK platform specifically for lobby icon 2020-07-14 09:10:51 +08:00
Benau
da64f5eeab Fix goal message crash and display bug 2020-07-13 16:03:32 +08:00
Benau
097359fcf4 Use native android progress bar for extraction 2020-07-13 11:04:36 +08:00
Benau
d8beb5bdb6 Allow main menu auto resize if missed a resize event 2020-07-12 12:14:46 +08:00
Benau
cef6eb0558 Remove EGL linking dependency 2020-07-12 11:00:53 +08:00
Benau
f202bcd48c Remove unused code 2020-07-12 10:26:37 +08:00
Benau
90a6dc6023 Allow using emoji keyboard with android screen keyboard together 2020-07-12 08:46:38 +08:00
Benau
4d7fd73543 Fix screen keyboard always open first in create server screen 2020-07-12 08:42:53 +08:00
Benau
f4233977e5 Port moved height to android STK 2020-07-12 08:34:59 +08:00
Benau
8cc4dd3383 Initial work to make android STK use SDL2 completely 2020-07-12 08:25:06 +08:00
David Carlier
8025571338 util/debug thread naming for haiku. 2020-07-11 10:29:00 +00:00
Benau
296b38ea51 Allow track screen searching with name 2020-07-10 22:12:45 +08:00
Benau
04cd0208e2 Fix delayed handleTextUpdated 2020-07-10 22:08:13 +08:00
Benau
bd897e390c Fix #4244 2020-07-10 19:28:39 +08:00
Benau
e54bb44e44 Fix #4300 2020-07-10 18:34:57 +08:00
Deve
6b033c840e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2020-07-10 06:10:06 +02:00