Commit Graph

267 Commits

Author SHA1 Message Date
Benau
8fead715da Add onDemandLoadTrackScreenshots for all tracks 2022-08-14 15:21:37 +08:00
Benau
f777e01a21 Make kart textures loading ondemand if needed 2022-08-13 11:44:06 +08:00
Benau
601511e7f4 Split device polling out of renderLoading 2022-04-01 09:59:46 +08:00
Kuba
0d8b01b08b
Lap Trial improvements (#4664) 2021-11-03 09:39:22 +08:00
Kuba
3623fa8f5f
Add Lap Trial mode (#4663) 2021-11-02 03:02:16 +08:00
Benau
39f7e6441a Fix random player position in FTL 2021-10-05 11:34:51 +08:00
iwoithe
95de01a8fb
Add a user config option to randomize the player position at the start (#4627) 2021-09-29 11:40:14 +08:00
Benau
dab4486465 Implement proper fix for #2776
Doing computeGPRanks in race result screen will make sorting
animation disappear
2021-09-21 16:32:53 +08:00
mrkubax10
26db54c90f Don't save highscore when player skipped track 2021-09-18 11:21:04 +02:00
courbe
39006f9889
Rank by greatest time if points equality in Follow the leader for GP (#4562) 2021-07-22 01:58:14 +08:00
Benau
6a24b5cb0e Correct the order of begin / end scene
It fixes DirectX 9 driver warnings
2021-04-23 15:36:16 +08:00
Benau
dd5fcfce47 Remove assertion for discord rich presence 2021-03-18 11:03:16 +08:00
Mary
0dd3c62a43
Discord rich presence (#4500)
* WIP RPC support

* Might have windows support now, don't peek

* Windows support

* RichPresence: __SWITCH__ => DISABLE_RPC (for MOBILE_STK support)

* RichPresence: Handle JSON strings according to spec, support for addons icon

* RichPresence: use translated difficulty name

* RichPresence: disable when client_id=-1

* RichPresence: thread connection, show server name on RPC

* RichPresence: destroy on close

* RichPresence: don't compile methods at all if DISABLE_RPC

* RichPresence: fix windows compile (untested)

* RichPresence: fix for mac

* RichPresence: Linux needs MSG_NOSIGNAL still

* RichPresence: fix memory leaks, don't spam update while not connected

* RichPresence: free thread on terminate

* RichPresence: handle initial registration

* RichPresence: fix compiler warning
2021-03-10 10:47:33 +08:00
Mary Strodl
b93a24a184
Clock up CPU while loading 2021-03-04 09:57:02 -05:00
Benau
6b08a873a2 Allow world to have 2 process instances
Also add specific process type handling to world
2020-02-28 09:43:25 +08:00
Benau
63bad92765 Turn race event manager into a singleton get for 2 processes 2020-02-28 09:43:00 +08:00
Benau
6a3e606c2d Turn race manager into a singleton get for 2 processes 2020-02-28 09:42:44 +08:00
Benau
88bbdbdc92 Move no graphics setting to guiengine which is a better place 2020-02-15 14:00:48 +08:00
CodedOre
13fca9a0eb Adapting MessageQueue for Tutorial (#4204)
* Make Script-Message more adaptable

* Highly WIP-TriggerMessage

This is commited for discussion, so it is far away from complete or good or anything else.

* One Place for the static Message!

* Fixing that clear() dont clear the static message.

* Discard Static Messages when Race is closed.

In Order to not leave StaticMessages if an Race is quit, now closing the race discard StaticMessages.

* Allow for co-existence of static and normal message

* Fix indentation and Enum Order

* Clean up used StaticMessages.

* Clean StaticMessages up Round 2
2020-01-11 00:12:56 +08:00
Benau
13bfb902db Improve showing of tips
1. Disable in track loading as for most tracks it too short to be seen

2. Show race tips only when human loses
2019-12-19 00:33:22 +08:00
Alayan
50988c6c60 Fix #3687 2019-10-26 02:28:42 +02:00
Benau
400c1e5347 Fix #3597 2019-07-08 01:45:36 +08:00
Benau
8fa3c79be7 Clear only data from network to fix #3980 2019-06-30 10:05:56 +08:00
Benau
12f08c410d Fix non-networked race with AIs country flag handling 2019-06-27 10:21:03 +08:00
Benau
8d1923acfd Remove unneeded translation.hpp in header files 2019-06-15 14:28:35 +08:00
Benau
a56343b7e3 Clean up headers
Remove special RTL handling as it will be done when texting shaping
2019-06-15 13:52:28 +08:00
Reiner Herrmann
07b6a16000 Fix several spelling/grammar errors (#3951)
found by lintian
2019-06-04 19:04:18 -04:00
Benau
9cbd2abe5d Make flag deactivated time configurable 2019-03-13 15:42:59 +08:00
Benau
961c3957e2 Allow spectating linear race 2019-01-06 13:43:19 +08:00
Benau
d9f1d18d9b Use placeholder tux for reserved players 2018-12-30 16:37:13 +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
Benau
2eba8c179f Disable highlight until render gui during loading is bug free 2018-12-21 19:52:27 +08:00
Benau
e4e03e6209 Highlight selected vote by player
Animation is disabled atm because not working very well
2018-12-21 19:40:52 +08:00
hiker
4269ac6294 Merge remote-tracking branch 'origin/master' into voting_gui 2018-12-16 02:06:50 +11:00
hiker
8ae6942442 Work around: all GUIs are being removed when the race starts, but
the TracksScreen should stay (to show the random vote result animation
later). For now the screen is re-added, long term should have a better
solution.
2018-12-16 01:37:42 +11:00
hiker
f6e758a9d6 Added a phase and optional iteration index/max-iteration to
renderGUI to allow for smooth display of progress bar.
2018-12-06 09:58:29 +11:00
hiker
edad214001 Allow the gui to be updates while loading a track, and use this
to show a simple (and still stuttering) animation while loading
a track,
2018-12-05 09:51:41 +11:00
Benau
689376dd0f Make FFA and CTF minor mode 2018-11-24 01:41:36 +08:00
hiker
724a5d94ba Merge branch 'master' of github.com:supertuxkart/stk-code 2018-10-31 23:20:53 +11:00
Alayan
f32b6059e6 Display different message when the player win a grand prix 2018-10-13 20:59:14 +02:00
hiker
17ab076858 Fixed various compiler warnings for 64-bit windows compilation. 2018-10-11 23:27:08 +11:00
Alayan
5144984fd5 Remove leftover include 2018-10-06 18:26:57 -04:00
Alayan
3427d21939 Fix #3483 2018-10-06 18:26:57 -04:00
Alayan
46c2c88461 Give a boosted AI to some AI karts in races and GP 2018-09-22 22:02:11 +02:00
Alayan
f60dc3ce4c Fix #3399 2018-09-22 19:15:33 +02:00
Alayan-stk-2
fb43b173d6 Don't count ghost karts for highscores (#3416)
* Add function to get the number of non-ghost karts

* remove print

* Update function call to not count ghosts

* Don't count ghost karts for highscores
2018-08-29 19:50:38 -04:00
Benau
03728708cd Rename soccer team to kart team for CTF 2018-08-15 15:13:55 +08:00
Benau
64595a7b18 Initial work on FFA in network 2018-08-13 00:59:20 +08:00
Benau
6bdec3d01a Add initial framework for FFA and CTF in network 2018-08-12 10:57:37 +08:00
Benau
62ea07ecc8 Try to synchronize timer independent of music 2018-04-24 01:01:47 +08:00