Commit Graph

19094 Commits

Author SHA1 Message Date
Alayan-stk-2
7f84dd39a6 Numerous improvements related to ghost replays (#3244)
* Update GUI files for replay improvements

* Updated replay capabilities

* Improve timer formatting possibilities

Mainly, the ability to choose to display or not minutes, and to choose how many digits are shown after seconds (from 0 : second as smallest timestep - to 3 : ms as smallest timestep)

Also displays "mm:ss.ms" rather than "mm:ss:ms".

* Some new list widget possibilities

Like the ability to update the header while the list is displayed (useful to add or remove columns)

* Update ghost kart for the new replay data

* Also update the ghost controller

* Live differences with ghost replays in linear worlds

* Replay-related UI changes

Big changes to the replay selection screen, and small change to the race UI (add the live timer in ghost races) and the race result UI (add the option to directly race against a newly saved ghost).

* Improves the replay action modal dialog

* Fix time-to-ticks regression

* Several requested improvements

* Improved ghost icon

Also updates the license

* GUI changes and improvements to accomodate multi-mode support

* Additional recorded data

* More functions to get the current race state

* Update replay variables to match what is used

* Updated replay-related config values

* Add ghost kart support to easter egg hunt mode

* Transparent attachments for ghost karts

* Use new stored data (color, item type)

Also :
- Interpolate speed for smoother display in watch-only mode
- Coding style improvements

* Fix coding style issues and add UI support for modes

* Fix coding style issues & support for easter egg mode

* Remove leftover prints

* Use getDifficultyName to remove hardcoded values

* Fix attach_ticks and coding style fixes

* Make the position of the timers fully relative

Otherwise, they would tend to touch each other in some resolutions

Also add a comment about the 59.9995f

* Make the list filling code clearer

Also use getDifficultyName

Most of the line changes shown by git correspond to moving around some bits or adjusting indentation.

* Remove a TODO as requested

* Fix dialog being dismissed too soon

* Remove a fixme

* Small clean up

* Fix logging

* Partial #3249 fix
2018-05-13 20:51:52 -04:00
Deve
0b79d9c1d1 Remove a line that is not needed anymore.
Now spinner widget is drawn correctly and min value >= 1 restriction exists in xml file anyway. In this way it shows correct value when particles effects are manually set to 0 in config.xml.
2018-05-13 22:03:15 +02:00
Deve
14cb6a89fd Fix for current angelscript version.
Now AS_MAX_PORTABILITY behaves the same as native calling convention.
2018-05-13 22:03:15 +02:00
Alistair Findlay
290eb354c7 Update custom_video_settings.stkgui (#3224)
* Update custom_video_settings.stkgui

Change label titles to conform to title case typographical convention.

* Update custom_video_settings.stkgui

Sentence case for everything.
2018-05-12 19:00:07 -04:00
Benau
5fb0113362 Don't enable texture matrix if no vbo or ibo 2018-05-11 19:27:41 +08:00
Benau
34f416506e Remove infinitive loop if image failed to load 2018-05-11 19:27:25 +08:00
Benau
02ecb9f914 Shuffle player list for the 1st track in grand prix 2018-05-11 13:44:46 +08:00
Benau
52e2a64893 Add ring for local player controller in minimap 2018-05-11 13:26:30 +08:00
Benau
4a4c99baf2 Send to all broadcast addresses for connecting to wan server in lan 2018-05-11 11:13:42 +08:00
Benau
7926ad9ba0 Progressively adjust time with slow down functionality 2018-05-11 10:43:22 +08:00
Benau
e28fbdd019 Increase vote timeout to 20 second, and offer a way to end vote early
After half voting time and all entries in voting table has > 50%
agreement out of current connected peers, go on
2018-05-11 10:37:31 +08:00
Deve
15f79b0f95 Add key binding for azerty layout 2018-05-09 21:11:24 +02:00
hiker
85eb59c6af
Merge pull request #3232 from STK-helper/MiniMap
Increase minimap size and reduce its aliasing
2018-05-09 15:39:19 +10:00
Deve
fe42da5b04 Avoid conflicts with key codes when fallback keycode is used 2018-05-08 21:59:11 +02:00
Deve
78d9f2065c Add some key names for azerty layout 2018-05-08 21:22:46 +02:00
Alayan-stk-2
473732b952
Add comment to clarify a if/else 2018-05-07 02:34:52 +02:00
Deve
20507424ee Don't draw spinner widget gauge for negative values 2018-05-06 23:06:27 +02:00
Alayan-stk-2
20d36b6f1b Fix #3175 (#3243) 2018-05-06 22:26:21 +02:00
Alayan-stk-2
267dfde46f Fix #3197 (#3238)
* Add parameters for negative sound in nitro challenge

* Fix #3197
2018-05-05 20:33:12 -04:00
Alayan-stk-2
7ee3d6576e
Use the new config options for display 2018-05-05 22:18:02 +02:00
Alayan-stk-2
086cc024e4
Add AI and player icon sizes as configurable 2018-05-05 22:12:05 +02:00
Alayan-stk-2
6ec7799a1d
Read minimap parameters 2018-05-05 22:06:21 +02:00
Alayan-stk-2
206bd0170a
New minimap stk_config parameters 2018-05-05 22:05:29 +02:00
Alayan-stk-2
bdf4c62abc
Add config option for minimap size 2018-05-05 21:25:31 +02:00
Alayan-stk-2
bc569b9e04
Display the minimap during the start countdown
So the players (especially those not familiar with the tracks) can take a look at it before starting to race.
2018-05-05 21:09:33 +02:00
auria.mg
f44fbbfdfb Fix code style 2018-05-04 18:50:47 -04:00
Qwerty Chouskie
b5067a935e Final? 2018-05-02 22:35:36 -07:00
Qwerty Chouskie
173702cca1 "skid0" effect 2018-05-02 22:23:16 -07:00
Qwerty Chouskie
ded672ea0d Remove no-longer-needed code
It doesn't compile with this anymore, and the issue it fixed seems gone anyways.
2018-05-02 18:39:47 -07:00
Qwerty Chouskie
b0c061290f Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-05-02 18:09:13 -07:00
hiker
7e9e258b17 Merge remote-tracking branch 'origin/move-handleMaterialSFX' 2018-05-03 10:23:51 +10:00
auria.mg
c6c005ded4 Revert "jgh"
This reverts commit e1a1196a9f.
2018-05-02 19:35:41 -04:00
auria.mg
e1a1196a9f jgh 2018-05-02 19:35:04 -04:00
Alayan-stk-2
74a77ed5ef
Cast width and height as floats before checking the ratio 2018-05-02 20:33:08 +02:00
Alayan-stk-2
d6c2cccccd
Reduce minimap size in splitscreen multiplayer
It won't work very well with 8 players, but still slightly better than when it was always 100.
2018-05-02 20:07:10 +02:00
Alayan-stk-2
bed03b2a43
Make minimap size 1.8 higher
This factor has been chosen because :
1) It allows the toplist to be able to still display 10 karts (maximum number reached in story mode or in networking (currently 12 but will be 8-10 for release according to Benau))
2) This size should fit nicely in the android GUI.

Otherwise, there is still some margin before it hinders view in 4:3 resolutions.
2018-05-02 19:40:00 +02:00
Alayan-stk-2
3d17e68c4e
Get a larger minimap texture to significantly reduce aliasing 2018-05-02 19:13:09 +02:00
Benau
a5b234ceef Reset player action in pause menu for network, fix #3230 2018-05-02 15:37:47 +08:00
Benau
f5035a00ea Allow showing paused dialog in network now it doesn't pause timer 2018-05-02 13:17:23 +08:00
Alayan-stk-2
022dd3e302 Fix handicap values (#3231)
* Fix handicap values for slipstreaming

* Change bugged handicap value and double-effect values

* Add skidding to handicap, remove explosions
2018-05-01 21:14:53 -04:00
Alayan-stk-2
179e825e60
Merge pull request #10 from supertuxkart/master
Update fork
2018-05-01 23:56:10 +02:00
Benau
ac54ee8888 Remove max 80 words limit now we use uint16_t for wide char 2018-05-01 12:42:59 +08:00
Benau
eb9f5b3fb3 Add speed and acceleration handicap to make it more visible 2018-05-01 01:13:09 +08:00
Benau
d17fddcac8 Fix handicap in splitscreen and network 2018-05-01 01:10:12 +08:00
hiker
28eb0112e0 Moved handleMaterialSFX to updateGraphics(), which removes the need
for a isLastSubstep() function in main(). Fix potential bug when
a new material sfx is triggered when a previous sfx still exists.
2018-04-30 08:49:57 +10:00
Alayan-stk-2
6a25384ed9 SuperTux in Story Mode (and other improvements) (#3207)
* Add SuperTux difficulty & update number of karts

Also make the expert challenge slightly easier to match more the difficulty of other challenges.

* Add SuperTux difficulty & update number of karts & points required

Also give some more time margin in easier difficulties, as it is a hard challenge compared to most.

* Add SuperTux difficulty & update number of karts & points required

Also change the lap count to 4 as it is a very short track (sub 30s)

* Add SuperTux difficulty

Also tweak the expert challenge to have a more appropriate difficulty

* Add SuperTux difficulty & update number of karts

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

Also correct the requirement position, since this is not a FTL race anymore.

* Add SuperTux difficulty & update number of karts & points required

Also slight balancing improvements for the usual difficulties.

* Add SuperTux difficulty & update number of karts & points required

Also adds a position requirement in expert

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

Also change the number of laps to 5, as this is a very short track. The time requirements for easier difficulties have been kept proportionally similar to before.

* Add SuperTux difficulty & update number of karts & points required

Also change the number of laps to 4.

* Add SuperTux difficulty & update number of karts & points required

Also add a position requirement to expert and intermediate.

* Add SuperTux difficulty & update number of karts & points required

Also change the number of laps to 4, as a lap often is 30s or less in expert/supertux

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Rename islandtrack.challenge to gran_paradiso.challenge

* Rename challenge file

* Add SuperTux difficulty & update number of karts & points required

Also makes the time limit in expert less easy and tweak position requirement.

* Add SuperTux difficulty & update number of karts

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required 

Doesn't unlock the SuperTux difficulty anymore - it's managed elsewhere.

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Add new unlock challenges, for difficulty and karts

* Add a lap to oliver's math class

* Replace Northern Resort by Volcano Island

* Replace Volcano Island by Candela City

Candela City was in no (official) GP before this.

Also sets Green Valley to 3 laps.

* Add Northern Resort and remove Fort Magma

In 0.9.3, this GP has only 4 races in Story Mode (5 for the other GPs) because Fort Magma is locked.

Of all the tracks outside this GP before, Northern Resort is one of the hardest, the AI being rather good there.

* Temporary cup for SuperTux challenges

Recolored version of the gold cup

* Update challenge selection UI for the SuperTux challenges

* GUI used before SuperTux difficulty unlocking

This is the old select_challenge.stkgui

* Swap the two sara

* Replace Kiki by another kart to unlock on Benau's demand

* Update for improved Story Mode

* Update for improved Story Mode

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Update for SuperTux ; also adds the ability to unlock a challenge by points

* Update for unlocking by points

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Minor changes to function calls

* Update for SuperTux challenges

* Add support for SuperTux challenges

* Update for Story Mode GP changes

* Allows to display the correct number of points for GP challenges

* Set the unlock of the 1st bonus kart to correct non-test value

* Add support for SuperTux challenges

Including a bigger challenge selection diaolg

* Add default value

* Icon to indicate that there is an unlockable

The number of points needed to unlock it are displayed next to it.

* Changed format : the point requirements is now specified in the file

* Changed format : the point requirements is now specified in the file

* Changed format : the point requirements is now specified in the file

* Function for unlock by points UI

* Add default for unlock list node and use requirements node for all

* Make unlockByPoints simpler and more flexible

Now the code will iterate in StoryModeStatus and send the unlock_list challenges for treatment here. The question of getting the right challenge statuses beings solved, it allows for a great simplification and much more flexibility

* Update unlockByPoints declaration

* Adds support for next unlockable UI

* Improve call of unlockByPoints

Also calculations for displaying in the UI how many point the next unlockable by points requires.

* Add icon for next unlockable

* Displays icon/number to make the player aware of the next unlockable

Also displays the number below the icon rather than on the side, for more clarity.

* Changes to display karts in the unlock scene

* Update unlock functions declarations

* New function to clarify code and more logical recently unlocked list management

In the previous version, everything was added to the recently unlocked list at some point, necessitating a clearing at the end of computeActive, which also removed from the list the non-race challenges. Checking if the feature is newly unlocked to add it to the list remove the need of that clearing.

* Declaration for unlockFeatureByList

* Display newly unlocked karts

* Display newly unlocked karts

* Clear the list of recently unlocked features at the end

* Update testing code

* Update unlocks finding function call

* Improve UI scaling

* Fixes indentation

* Update the number of points before checking for unlock by points

* Add const to declarations

* Remove const_cast

* Remove a const_cast

There are other const_cast in the menu debug items (but they are unrelated to this PR)

* Fix menu being bolder
2018-04-29 18:27:03 -04:00
deve
a2659f479c Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-04-27 06:52:58 +02:00
deve
b90a9fbf0d Don't allow totally disable particles in GUI.
Now we don't use tfb shader to compute particles, so it seems to not have a sense anymore.
And it's still possible to set particles_effects=0 in config.xml if someone will need it.
2018-04-27 06:50:39 +02:00
deve
bf1392cadc Keep important particles enabled on lowest settings 2018-04-27 06:44:56 +02:00
Deve
bc9660a81c Use known working java version for building apk if possible.
It fails to build with newer versions, so that on different systems you may need to set JAVA_HOME manually.
2018-04-26 21:48:59 +02:00