Commit Graph

3348 Commits

Author SHA1 Message Date
Alayan-stk-2
1bce7af4a1
Merge branch 'master' into Characteristics 2018-08-08 01:41:24 +02:00
Alayan-stk-2
c62828d8a7
Make parachute duration longer after feedback 2018-08-05 15:20:11 +02:00
Benau
a892988b00 Clarify password in create server screen 2018-08-04 00:32:40 +08:00
hiker
fc151bb262 Added Alayans scaled weight factors (sums now 1000 instead of 200),
which makes it easier to visualise the values.
2018-08-02 18:06:45 +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
Benau
2bb52df3c8 Split random ports (default off for server) configuration 2018-07-31 10:46:41 +08:00
hiker
84c21c4af2 Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-07-26 17:47:25 +10: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
b4a4de74bb Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-07-19 18:39:55 +10:00
hiker
53d2bc3b8e Made restitution configurable (depending on speed of kart). 2018-07-19 09:55:24 +10:00
Benau
0cee131b9f Add positional smoothing for physical objects in network 2018-07-13 20:27:37 +08:00
Benau
8e449750c8 Correct help for networking 2018-07-07 00:02:32 +08:00
Deve
34c335b05e Handle wrong line endings in localized_name file.
Fixes #2795
2018-06-26 21:26:43 +02:00
Alayan-stk-2
6ea2250a41
Acceleration tweaks 2018-06-23 16:25:31 +02:00
Alayan-stk-2
42e1e4eade
Small balance tweaks 2018-06-23 03:45:26 +02:00
Alayan-stk-2
9340caf951
Revised kart characteristics 2018-06-23 02:17:33 +02:00
Deve
5549229310 Add a graphics restriction for nouveau.
Fixes #3058
2018-06-22 23:59:44 +02:00
Deve
9ad3ba1fe2 Allow to use skinning without tbo 2018-06-22 23:48:00 +02:00
hiker
01adee6fb4 Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-06-22 21:56:47 +10:00
Alayan-stk-2
ebc7940985 New options menu (#3323)
* Updated options UI file, new icon for language tab

Also updates the license file.

* Update the options screens to support the new layout

And add a language change screen.

* Don't overwrite the updates which happened in master.

* Add missing (new) password reset button

* Focus the list of actions binding rather than the tabbar in device options
2018-06-21 19:50:16 -04:00
hiker
a40da718b8 Try different physics setting to improve collision handling. 2018-06-21 12:38:13 +10:00
Alayan-stk-2
1025bfe298 New help menu (#3322)
* Add vertical tabs to ribbon widget types

* Update GUI engine for vertical tabs

* New icons for the help menu

The slipstream icon is not great, it's here to have something now. It should be replaced by something better looking and more in STK's visual style.

* Updated help GUI

The git changelog is a bit misleading here, because the order of the items in the help menu has been revised too.

1)General (same)
2)Game modes (before : 3)
3)Powerups (before : 2)
4)Bananas (before : 5)
5)Story Mode
6)Kart classes
7)Multiplayer

* Update help screen code to handle the additional tabs

The hugely repetitive structure of one cpp/hpp per tab is kept here.

* Optimized version of new icons

Except for the slipstreaming one, as it should be replaced by a better one anyway.
2018-06-20 20:57:40 -04:00
hiker
bca11b98fb Decode the solver-mode only once instead of at every race start. 2018-06-21 10:20:22 +10:00
Alayan-stk-2
e6a0f821a9 Reduce dark background artifacts (#3324)
* Improve quality following Benau's observation

* Improve darker background quality
2018-06-20 22:16:28 +02:00
hiker
ec6b611a94 Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-06-21 00:33:29 +10:00
hiker
2c0d47e511 Made some solver parameters configurable in stk-config. 2018-06-21 00:31:51 +10:00
QwertyChouskie
5d34488adc Donate and reset password buttons (#3252)
* First version of donation link and password reset buttons
The register screen still needs to be tweaked, though the GUI engine seems to be limted here.
Maybe dynamicly delete/re-create the widget?

* Fix mingw compilation

* Remove dead code

* minor cleanup

* Error handling, tweaks

* Fix ifdef for macOS

* Disable donate button on Android

* Use stk-config

* Implement LinkHelper::isSupported, fixes
2018-06-19 19:59:54 -04:00
Alayan-stk-2
4cb6ea4871 Optimize image size in the GUI folder (#3315)
* Optimize image size in GUI, save 1.2 MB

* Optimize android GUI images

* Optimize networking menu images
2018-06-19 19:19:24 +02:00
hiker
e6417bcf03 Merge remote-tracking branch 'origin/master' into STK-helper-ItemWeights 2018-06-19 18:30:19 +10:00
hiker
60c9994e29 Fixed documentation and typo, thanks to Alayan. 2018-06-19 18:27:33 +10:00
Alayan-stk-2
3450984c3e Multi directional GUI navigation (#3307)
* Allow full up/down/left/right navigation

* Update list and ribbon widgets to work well with the new navigation

* Fix windows compilation

* Improve navigation algorithm to fix the observed limitations

* Make windows compilator happy

* Fix keyboard navigation issues in networking lobby

And make some parts more proportional to screen size
2018-06-18 19:08:34 -04:00
Alayan-stk-2
bd16045525 New dark skin (coal) (#3293)
* License for new coal skin

* Coal skin elements

* New coal skin

* Better contrast for coal skin select

* Lighter white text.

* Improved contrasts for actionable UI elements

* Make the theme back to a darker background while improving contrast again

* Ranking formula refinements (#3288)

* Reduce the maximum scaling time from 600s to 500s

8m20s is already much longer than nearly all ranked races will be, so it matters most for eliminated players. It would be too punishing if kept to 600 with the new time scaling method.

* New helper function for ranking computations

* Make short races less important for ranking points

And long races more important

* Use double for calculation

* Fix as alayan suggested

* Fix possible empty race event manager instance

* Show remote player in the past

* Allow to set commandline arguments on android

* Fix #3242

* More on #3242

* FIx #2912

* Better checkboxes (#3291)

* Better checkboxes for forest skin

* Better checkboxes for ocean skin

* Better checkboxes for peach skin

* Better checkboxes for ruby skin

* Try to create external/internal directory if it's not available.

Typically it always exists on new phones, but I didn't find any information if it's guaranteed to exist and it's missing on my old phone.

* Always set blend func in GLES 2.0.

It's often changed in STK engine and the value stored in irrlicht variable may be invalid.

Fixes #3296

* Avoid a crash when user name is empty

* Unlock cutscene improvements (#3298)

* Don't display unlocked features out of screen when there are 4 to 6-7

And more regular spacing between them

* Remove outdated workaround

* Store the previous number of story mode point

* Allow to get the previous points from player profile

* Fix points estimation for finding unlocked tracks

- Updated to reflect that the player's points are now updated before this function
- Use the real previous number of points rather than trying to estimate the point change (otherwise, the points computation method would have to be duplicated here to not have a bug with GPs who give more points than single race challenges).

* Fix #3100 (#3299)

* Fix #3100

* Fix server only compilation

* Fix stupidly long line full of whitespace (#3303)

* Don't use pkg-config on macOS

Fixes #3305

* Fix #3309

* Great improvements to skin data (#3312)

* Add vertical tab support and get common files from a common folder

* License file for the common folder

* UI images shared by all 4 colored themes

* Delete redundant pictures

* Delete background.jpg

* Delete dialog.png

* Delete glassbutton_deactivated.png

* Delete glasscheckbox_checked_deactivated.png

* Delete glasscheckbox_deactivated.png

* Delete glass_rsection.png

* Delete glass_section.png

* Delete glassspinner.png

* Delete glassspinner_deactivated.png

* Delete glass_square_focused_bw.png

* Delete left_arrow.png

* Delete list_sort_down.png

* Delete list_sort_up.png

* Delete rating_star.png

* Delete right_arrow.png

* Delete scrollbar_bg.png

* Delete scrollbar_btn.png

* Delete table_header.png

* Delete tooltip.png

* Optimize image size and add vertical tabs

* Optimize image size and add vertical tabs for ocean skin

* The multiplayer colored squares are also shared

* Use the multiplayer colored squares from common

* Remove more redundant skin images

* Delete glass_square1.png

* Delete glass_square2.png

* Delete glass_square3.png

* Delete glass_square4.png

* Delete glass_square_focused.png

* Delete glass_square_focused2.png

* Delete glass_square_focused3.png

* Delete glass_square_focused4.png

* Optimize image size and add vertical tabs for peach skin

* Optimize image size and add vertical tabs for forest skin

* Special focus halo for ruby skin

Currently, the halo used in single player is shared with the one used for the first player in local multiplayer, despite the color of the top spinner widget not matching in this situation.

Better having this mismatch that a not-so-great halo in single-player.

I put it in common as it may be reused for multiplayer focus by other skins.

* Use pink selection halo

* Put the bottom bar among skinnable UI images

* Make the bottom bar part of the skins

* Coding style fix

* Delete bar.png

* Load bottom bar texture from skin rather than gui folder

Also rename bg_image to m_bg_image

* Move black focus halo to the common folder

* Remove duplicate image, use common folder

* Delete glass_square1.png

* Delete glass_square2.png

* Delete glass_square3.png

* Delete glass_square4.png

* Delete glass_square_focused.png

* Delete glass_square_focused2.png

* Delete glass_square_focused3.png

* Delete glass_square_focused4.png

* Delete glass_square_focused_bw.png

* Delete left_arrow.png

* Delete rating_star.png

* Delete right_arrow.png

* Delete list_sort_down.png

* Delete list_sort_up.png

* Delete glassbutton_deactivated.png

* Delete glasscheckbox_deactivated.png

* Delete glassspinner.png

* Delete glassspinner_deactivated.png

* Delete scrollbar_bg.png

* Delete scrollbar_btn.png

* Delete tooltip.png

* Delete glasscheckbox_checked_deactivated.png

* Use common folder, support vertical tabs, and small tweaks

* Optimize image size, add vertical tabs, add custom bottom bar
2018-06-18 19:02:35 -04:00
hiker
296bd89129 Replaced tabs with white-spaces 2018-06-18 15:13:36 +10:00
Alayan-stk-2
2fbcd73c93 Great improvements to skin data (#3312)
* Add vertical tab support and get common files from a common folder

* License file for the common folder

* UI images shared by all 4 colored themes

* Delete redundant pictures

* Delete background.jpg

* Delete dialog.png

* Delete glassbutton_deactivated.png

* Delete glasscheckbox_checked_deactivated.png

* Delete glasscheckbox_deactivated.png

* Delete glass_rsection.png

* Delete glass_section.png

* Delete glassspinner.png

* Delete glassspinner_deactivated.png

* Delete glass_square_focused_bw.png

* Delete left_arrow.png

* Delete list_sort_down.png

* Delete list_sort_up.png

* Delete rating_star.png

* Delete right_arrow.png

* Delete scrollbar_bg.png

* Delete scrollbar_btn.png

* Delete table_header.png

* Delete tooltip.png

* Optimize image size and add vertical tabs

* Optimize image size and add vertical tabs for ocean skin

* The multiplayer colored squares are also shared

* Use the multiplayer colored squares from common

* Remove more redundant skin images

* Delete glass_square1.png

* Delete glass_square2.png

* Delete glass_square3.png

* Delete glass_square4.png

* Delete glass_square_focused.png

* Delete glass_square_focused2.png

* Delete glass_square_focused3.png

* Delete glass_square_focused4.png

* Optimize image size and add vertical tabs for peach skin

* Optimize image size and add vertical tabs for forest skin

* Special focus halo for ruby skin

Currently, the halo used in single player is shared with the one used for the first player in local multiplayer, despite the color of the top spinner widget not matching in this situation.

Better having this mismatch that a not-so-great halo in single-player.

I put it in common as it may be reused for multiplayer focus by other skins.

* Use pink selection halo

* Put the bottom bar among skinnable UI images

* Make the bottom bar part of the skins

* Coding style fix

* Delete bar.png

* Load bottom bar texture from skin rather than gui folder

Also rename bg_image to m_bg_image
2018-06-17 21:40:01 -04:00
hiker
8d12c5aa07 Updated changelog and credits. 2018-06-18 08:54:11 +10:00
hiker
48aca2f70f Started to address comments from the reviewer. 2018-06-17 23:48:47 +10:00
hiker
6bcd1b4c58 Merge remote-tracking branch 'origin/master' into STK-helper-ItemWeights 2018-06-17 01:05:07 +10:00
hiker
5207e9a38b Improved implementation of powerup collection weight. 2018-06-17 01:03:37 +10:00
Alayan-stk-2
be5b389d94 Better checkboxes (#3291)
* Better checkboxes for forest skin

* Better checkboxes for ocean skin

* Better checkboxes for peach skin

* Better checkboxes for ruby skin
2018-06-11 22:02:46 +02:00
hiker
ea229b4e5e Merge branch 'ItemWeights' of git://github.com/STK-helper/stk-code into STK-helper-ItemWeights
A very rough merge to solve conflicts, not expected to even work.
2018-06-08 15:03:27 +10:00
auria.mg
729d7c9b3e Fix pot, another attempt 2018-06-07 19:19:04 -04:00
auria.mg
3cfe0e41c6 Update pot 2018-06-07 18:59:20 -04:00
auria.mg
53156a3a07 Update pot 2018-06-06 20:49:16 -04:00
Benau
5a5bdbe851 Remove duplicated id 2018-06-07 08:43:26 +08:00
Benau
5da5a1972f Add auto start with timeout and player threshold for owner less server 2018-06-06 01:06:44 +08:00
Alayan-stk-2
30c1e0ca6d Make rubber-banding distances different between AI karts (#3256)
* Don't generate IRC alerts

* Differentiated rubber-banding

* Fix #3222

* Small simplification

* Use master's version

* Fix typo

* Use std::sort

* Remove useless function call

test_ai is only used for profiling without human players
2018-05-26 19:09:18 -04:00
Deve
765d4019b7 Allow to use texture compression with GLES when extension is available 2018-05-22 22:31:38 +02:00
Alistair Findlay
fab05a54e8 Minor Update to GP Titles (#3265)
* Update 2_offthebeatentrack.grandprix

* GP Titles
2018-05-22 14:17:41 +02:00
Deve
5d840f6bf7 Move android stkgui files to its own directory 2018-05-21 21:30:24 +02:00
Benau
fdc299e073 Add player rankings in achievements 2018-05-20 01:15:39 +08:00
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
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
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
Alayan-stk-2
086cc024e4
Add AI and player icon sizes as configurable 2018-05-05 22:12:05 +02:00
Alayan-stk-2
bdf4c62abc
Add config option for minimap size 2018-05-05 21:25:31 +02: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
b0c061290f Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-05-02 18:09:13 -07: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
Benau
eb9f5b3fb3 Add speed and acceleration handicap to make it more visible 2018-05-01 01:13:09 +08: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
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
Alayan-stk-2
c2ae2bfce6
Improve comments 2018-04-26 05:52:41 +02:00
Alayan-stk-2
7f5565cbc4
New item weight lists 2018-04-23 02:29:40 +02:00
Benau
3772045f99 Fix GLES 2018-04-20 17:01:59 +08:00
Benau
e5c991e3d2 Merge remote-tracking branch 'origin/master' into kobato 2018-04-20 13:03:34 +08:00
Benau
12e4ba0f18 Check server version again in connection request (for connect-now) 2018-04-20 12:19:58 +08:00
Benau
2c6883842e Add connect-now equivalent to online screen
Specify port to allow to connect to one of multiple servers in same machine
2018-04-20 12:19:58 +08:00
auria.mg
6d306e64a7 More UI scaling improvements, see #3146 2018-04-20 12:19:57 +08:00
Benau
f8323b9ad1 Remove unneeded skinned mesh shader for road blending shader 2018-04-19 11:49:38 +08:00
hiker
98555a8f35 Merge remote-tracking branch 'origin/master' into game_protocol 2018-04-19 10:57:37 +10:00
Qwerty Chouskie
ffe9dad241 Update again 2018-04-18 16:26:58 -07:00
Alayan-stk-2
be8ae4dca6 Various slipstreaming refinements (#3202)
* New getRecentPreviousXYZ function

* New getRecentPreviousXYZ function

* New getRecentPreviousXYZ function

* General slipstreaming refinements

* Increase the minimum time to get the slipstream bonus

The obsolete parameter is not yet removed as several other files would have to be changed to not trigger an error.

* Slipstreaming characteristics update

* Changed slipstreaming characteristics

* Update slipstreaming characteristics

* Update slipstreaming characteristics

* Update slipstreaming characteristics

* Update slipstreaming characteristics

* Update slipstreaming characteristics

* Remove slipstreaming power engine bonus per kart type

Power engine bonus is already balanced by the different weights : a heavier kart needs more engine power to achieve/maintain the same speed.

* Remove an unused function

* Various slipstreaming refinements

* Pull the XYZ history size from config

* Pull the XYZ history size from config

* Remove unnecessary logs

* Fix a frenchism with fix
2018-04-17 21:09:49 -04:00
hiker
acdba401a9
Merge pull request #3090 from qwertychouskie/simplify-version-number-change
Reduce number of places version number needs to be changed on release
2018-04-18 09:44:13 +10:00
Alayan-stk-2
131011d01e Better GP points distribution (#3178) 2018-04-16 18:32:25 -04:00
auria.mg
54d3476c13 Merge branch 'FixGaugeI' 2018-04-16 18:29:00 -04:00
hiker
0637dd0fa1 Merge branch 'SStreaming' of https://github.com/STK-helper/stk-code into STK-helper-SStreaming 2018-04-16 22:37:49 +10:00
Alayan-stk-2
63127f553f
Better gauge goal 2018-04-16 14:08:28 +02:00
auria.mg
40372319f6 At general request, remove follow-the-lreader from story mode 2018-04-15 18:31:13 -04:00
auria.mg
264fac392e Ajust forgotten texture 2018-04-15 18:08:08 -04:00
auria.mg
655faa81a0 Reduce speedometer images to a more reasonable size 2018-04-15 18:03:02 -04:00
samuncle
50e433afca Add shader specialized for roads, still some stuff to be tuned 2018-04-15 09:37:55 +02:00
Deve
45aa9c2e3a Minor tweak for init android dialog 2018-04-14 22:39:51 +02:00
Alayan-stk-2
0c4c5fbe80
Slipstreaming characteristics completely reworked 2018-04-13 08:50:10 +02:00
Benau
ef2f12f568 Remove unneeded skinned mesh version for tilling and vertical mapping shader 2018-04-12 16:35:25 +08:00
Benau
3742adf5ee Use 2 digits for shader order 2018-04-12 16:31:01 +08:00
Benau
295c793f91 Use 4 32bit floats for quaternion for sam's wall 2018-04-12 16:27:48 +08:00
Alayan-stk-2
8f4744b061 Improved speedometer and nitrometer (#3177)
* New speedometer and nitrometer gui

* Update Speedometer and Nitrometer

* Improve nitro background

* Improve nitro bar drawing

* Improved meters

* Improve meter and rank drawing

* Agressive smoothing and higher visibility

* Helper function for meter drawing

* Helper function for meter drawing

* Improved meters

* New nitro bar, slight 3D effects and hopefully fix compilation

* Update license
2018-04-10 21:14:50 -04:00
Deve
1ee5f3aa8a Keep acceleration sensitivity for up/down button when accelerometer is enabled 2018-04-10 21:09:05 +02:00
auria.mg
a4159a9b1a Update translations 2018-04-09 20:33:36 -04:00
Deve
3f69fd37ed Some improvements for touch device 2018-04-10 00:22:09 +02:00
samuncle
434f74b4ac Add vertical / horizontal mapping for snow, sand, moss, etc (everything going on top of something) 2018-04-07 22:16:43 +02:00
samuncle
daf4721fa9 Add a mitigation for tilling textures. Very usefull for terrains, etc 2018-04-07 04:11:11 +02:00
samuncle
32016f0118 Add tilling mitigation shader 2018-04-06 16:25:39 +02:00
Alayan-stk-2
8fae521a94 AI item handling improvements (#3143)
* Prepares for advanced item and nitro usage strategy

Replace the bool determining if usage is random or not by an int allowing several levels of AI item usage.

Add NITRO_ADVANCED mode for nitro usage.

* Adapt for more item and nitro levels

The XML files have to be changed. The logic for the item_skill still has to be done.

* Preparation for the preferred kart in GP

* Preparation for the preferred kart in GP

* Preparation for the preferred kart in GP

* Prepares for advanced item and nitro usage strategy

*  Prepares for advanced item usage strategy

* Preparation for the preferred kart in GP

* Parametrized AI_skill level

* Fix typo

* Fix typo

* Fix typo

* Fire items with a shield on in unrestricted mode

* New function allowing AI to know what flyable is incoming

* New function allowing AI to know what flyable is incoming

* Fix typo

* Update bubble gum AI to new system

In addition of making some functionality depends on AI levels, there are a few overall improvements for the better AIs :
1)Remove the "drop the gum in the last lap" logic. Bad strategy since ever the shield has been added to the gum
2)The protection against flyable is not used if the user holds a swatter and the flyable is a plunger 
3)Holding a swatter no longer blocks the AI from using the shield against a flyable nor from using the gum behind
4)The shield is used to remove bad attachments (bomb, parachute, anvil)
5)Reduce the distance with the kart behind when dropping the gum to reduce misses

* Update swatter AI to new system

The swatter could benefit from several kind of usage improvement. This patch introduce only one, but probably the more important : the better AIs now use it to remove bad attachments

* Fixing #3139

* Fix compile error

* Fix

* Fix compilation

* Fix compilation

* Fix compilation

* Update variable

* Update variable

* Fix non-breaking space issue

* Fix typos

* Revert for compilation

* Revert for compilation

* Update cake AI to new system

* Redefine HandleItems to be position aware

* Redefine HandleItems to be position aware

Also changes bowling ball for the new system.

* Activate shield before hitting box or bad item

Meant for higher AIs.

* Increase lookup distance

Some distance will be needed for the switch

* Temporary fix to avoid a nitro regression

* Fix typo

* Fix typo

* Bubble gum improvements ; explicitely calculate distances to items

* Update Switch to the new system ; use item-distance awareness

Also fix a missing parenthesis

* Change nitro-usage to a numerical parameter

* Change nitro-usage to a numerical parameter

Also update comments to explain the new item-skill

* Change nitro-usage to a numerical parameter

* Change nitro-usage to a numerical parameter

* Change nitro-usage to a numerical parameter

* Update handleNitroAndZipper to the new system

Also fix a naming error, remove the 95% speed limitation on nitro usage

* Adds a small engine boost to nitro

Currently, nitro is very counter-intuitive as it only affects max_speed. This change corrects it. The effect remains small to not upset balance. It is mostly felt when below max_speed, so the can of nitro potential power doesn't change much.

* Improve AI nitro handling

Summary :
1)Makes the AI use nitro by bursts, greatly improving its efficiency
2)Makes the AI use nitro when close to max speed (to unlock the max speed increase)
3)Remove the overtaking logic as the AI will now use its nitro anyway
4)The AI tries to keep a reserve of nitro for use towards the end of the race.

* Allows estimated finish time to be checked at any lap, fix a crash

* Makes the AI use its nitro reserves

* Better tuning for nitro reserve usage to reduce the probability of unused nitro

* Remember last used powerup for AI

* Remember last used powerup for AI

* Remember last used powerup for AI

* Remember last used powerup for AI

* Remember last used powerup for AI

* Remember last used powerup for AI

* Fix compilation

* AI don't wait between usage of items of different types

* Use floats for Parachute duration

* Revert

* Nitro use when trying to pass a bomb improved

* Fix broken time check

* Take into account the kart-specific fadeout to calculate time between bursts

* Improvements to bursts and to use of the reserve at the end

* Improve comments explaining item_usage_skill and nitro_usage

* Make LastUsedPowerup a PowerupType

* Make LastUsedPowerup a PowerupType

* Make LastUsedPowerup a PowerupType

* Make LastUsedPowerup a PowerupType

* Make last_used_powerup a PowerupType

* Make last_used_powerup a PowerupType

* Fix compilation

* Fix compilation

* Revert

* Revert

* Finally fix compilation

* Finally fix compilation

* Change shield radius per difficulty

A reduced non-null shield radius reduces false positives as long as it is big enough to get a few frames during which the object is inside the radius.

* Improve Projectile closeness management

* Improve projectileCloseType

* Improve projectileCloseType

* Fixes indentation

* Fix lastUsedPowerup initialization

* Fix the last used powerup type

* Rename projectileCloseType

* Rename projectilCloseType

* Clarify comment and update projectileCloseType to new name

* Reuse a member RandomGenerator

* Fixes getLastUsedPowerup type

* Fixes comparison

* Fixes type
2018-03-31 21:09:57 -04:00
hiker
1b72d88593 Merge remote-tracking branch 'origin/kobato' into game_protocol 2018-03-31 01:12:22 +11:00
hiker
b1013f6030 Merge remote-tracking branch 'origin/network_improvements' into game_protocol 2018-03-31 00:38:57 +11:00
hiker
17200d7809 Merge remote-tracking branch 'origin/master' into game_protocol 2018-03-30 22:47:30 +11:00
auria.mg
b778b91b5e More UI scaling improvements, see #3146 2018-03-26 21:24:48 -04:00
auria.mg
ee57bbd6b4 As suggested by deveee, make the server creation screen more scalable. Also cleanup/simplify a bit 2018-03-25 18:10:44 -04:00
Benau
946a902f98 Adjust server creation screen for 1280x720
And add some more game modes
2018-03-24 15:44:15 +08:00
Benau
85895074aa Merge branch 'origin/master' 2018-03-24 09:31:06 +08:00
auria.mg
75c1739ff2 GUI tweaks 2018-03-23 20:38:16 -04:00
Benau
025ca63df0 Display ping to server in lobby 2018-03-23 22:19:44 +08:00
Benau
61b6389764 Use crown icon for server owner 2018-03-23 10:08:48 +08:00
Benau
c026261e0f Improve splitscreen dialog for easier adding 2018-03-22 12:52:37 +08:00
Benau
1b4caa36af Use a better wording 2018-03-22 11:43:09 +08:00
Benau
152dfe7c55 Add toggling of network splitscreen in online menu 2018-03-22 01:38:29 +08:00
Benau
6fca802c8e Add network split screen kart selection 2018-03-21 15:41:44 +08:00
Deve
db3399500f Better scaling initial android dialog 2018-03-20 21:38:06 +01:00
Benau
4379244f3e Adjust based on auria's feedback 2018-03-20 14:56:17 +08:00
Benau
d436446de2 Add no-kart-selection network splitscreen 2018-03-20 02:54:10 +08:00
Benau
cfd1de43bb Display all votes in the RHS of tracks screen 2018-03-19 15:08:38 +08:00
Deve
203d045485 More improvements for gui on android 2018-03-17 22:28:45 +01:00
Benau
e66c4eed35 Properly hide the rectangle box in ghost track screen 2018-03-17 11:12:21 +08:00
Deve
26419e5ee0 Better gui scaling on android 2018-03-16 23:00:58 +01:00
Benau
758581d13c Merge branch 'origin/game_protocol' 2018-03-16 17:11:40 +08:00
Benau
cf898c2795 Remove waiting for other screen now that you can instantly know votes 2018-03-16 11:35:16 +08:00
Benau
f78276a930 Show player vote in message queue for immediate effect 2018-03-16 00:54:02 +08:00
Benau
ea8ba470d6 Use (s) for server 2018-03-14 10:07:54 +08:00
Benau
5699a86586 Allow toggling the display of only private server 2018-03-14 00:50:19 +08:00
Benau
901c5eabec Allow specifying server password in dialog 2018-03-13 16:04:59 +08:00
Benau
8330919a3a Add missing stkgui for lobby chat 2018-03-13 00:51:08 +08:00
Benau
d527c0eee2 Use icon to identify server owner, online and offline players
Also hide the friend request button for offline players
2018-03-12 11:28:13 +08:00
hiker
8cf885652f Merge remote-tracking branch 'origin/master' into game_protocol 2018-03-08 09:51:00 +11:00
hiker
fa624c90e1 Merge remote-tracking branch 'origin/master' into fix-timestep 2018-03-08 09:50:14 +11:00
Benau
1dc7f3aa4e Move port configuration to user and stk config 2018-03-06 15:38:51 +08:00
Deve
8f78d4e891 Add a popup on first run on android, so that user can choose if accelerometer should be enabled 2018-03-04 00:08:24 +01:00
Benau
43cf29af86 Merge remote-tracking branch 'origin/network_improvements' 2018-03-02 17:39:16 +08:00
Deve
a00c1cadc8 Simplify accelerometer selection in settings 2018-02-28 22:01:30 +01:00
samuncle
7db4ef8056 Add a shader to use the day/night cycle for lamps, etc 2018-02-27 23:38:28 +01:00
Benau
d8007c4518 Update server for new xml code
And initial work for starting a complete stk server
2018-02-26 14:23:34 +08:00
Benau
571a524f59 Update lobby for new gui engine code 2018-02-25 13:31:45 +08:00
Benau
34caab24fe Update networking lobbdy for better display info 2018-02-25 02:09:07 +08:00
hiker
208c5eb6d8 Merge remote-tracking branch 'origin/master' into fix-timestep 2018-02-21 08:35:58 +11:00
Benau
3223d05c6c Merge remote-tracking branch 'origin/master' into network_improvements 2018-02-20 00:14:29 +08:00
auria.mg
e26239e364 Improve the input sensing text to be a bit clearer 2018-02-13 20:35:07 -05:00
auria.mg
196b5a2bbe Minor ajustments to kart color screen, make kart slightly bigger, make XML cleaner 2018-02-12 20:22:35 -05:00
auria.mg
2830dabfc1 Improve kart color selection screen, fixes #3122 2018-02-12 20:08:51 -05:00
Qwerty Chouskie
8a51cae73d Final(?) tweak 2018-02-11 19:16:23 -08:00
Qwerty Chouskie
835d4ccc63 Update skidding effect
Also fix nitro when skiddding
2018-02-11 19:01:42 -08:00
hiker
4d03fbd1fb Made the physics time step size configurable in the config file. 2018-02-12 08:23:06 +11:00
hiker
37d81be033 Made the physics time step size configurable in the config file. 2018-02-10 17:55:45 +11:00
Benau
9a5ce54c4f Merge remote-tracking branch 'origin/master' into game_protocol 2018-02-09 00:53:02 +08:00
Benau
0e5b7b532c Further boost stk by writing 1 less framebuffer attachment
Now we can get determine the background color by depth, so
the alpha tricks in diffuse color fbo is not necessary

And using rgba8 to pack normal doesn't seem to cause visual glitches.
2018-02-07 12:49:45 +08:00
samuncle
704fe3e32a Fix a bug in the emissive contribution. Now there is a bigger range of value for bloom 2018-02-06 23:15:21 +01:00
Ben Krajancic
0f3518e71b Unlimited Split-Screen (#3104)
* Initial SplitScreen

All are upside down and player 1, 5 player does 6 even...

* Working version of splitscreen

* black screen fix

* te fix

* Update race_gui.cpp

* Change item

* wrong way fix and refactorings

* Fix icon scale, cleaning code for lap count

* Remove tabs

* Add settings option

* Fix FOV

Right now the FOV gradually  decreases when going from 1,2,3,4 players. Then after 4 players it wont drop any lower. This behaviour can easily be replaced in the future

* Prevent overflow

* Unlimited splitscreen

* Space out duplicate skins across additional players

* Update stk_config.cpp

* Update irr_driver.cpp

* Update options_screen_ui.cpp

* Update irr_driver.cpp

* Update options_screen_ui.cpp

* Update race_gui.cpp

* Update irr_driver.cpp

* Fix for empty pixels at edges

* Fix referring to template not int

* Fix compile errors

* Progress towards fixing selection screen

* Begin process for selections

* Fix selection screen for >4 people

Important GUI changes included

* Disable changing rows/cols ingame

* fix sp related crash

* Styling fixes
2018-02-05 20:01:32 -05:00
Benau
ac8294abdb Clean up debug visualization
Allow toggle (triangle) normal / (bi)tangent / wireframe separately
2018-02-03 13:14:15 +08:00
Benau
a2052b77b9 Remove unneeded flat out
We can share the same uniform name, esp flat out is not working
for my adreno 306 in android 5.0
2018-02-03 00:21:59 +08:00
Benau
e3483fccbe Unroll the skinned mesh shader for loop
This give some fps improvement for adreno 306 in android 5.0
2018-02-02 21:59:13 +08:00
Benau
e4c827176a Remove flat for hue_change
It causes bad rendering in adreno 306 in android 5.0
2018-02-02 21:17:24 +08:00
Benau
e06fabde96 Clean up alpha test and unlit shader
Remove 1 wrong line in alpha test shader
2018-02-01 11:26:58 +08:00
Benau
154ad8d0db Fix skybox blending with light scatter 2018-01-31 01:31:12 +08:00
Benau
9e57bfb73f Split point light scatter so it can be combined together 2018-01-30 13:42:50 +08:00
Magne Djupvik
748a65c013 Made Old Mine Expert challenge a bit more challenging. 2018-01-29 18:51:43 +01:00
Magne Djupvik
b5d2ce4850 Added back 5 seconds to challenges after feedback. 2018-01-29 16:52:18 +01:00
Qwerty Chouskie
89a8219ec9 Tweak particle emission rate
The boost-specific rate was never really noticeable anyways.
2018-01-28 13:36:45 -08:00
Magne Djupvik
ad2665c641 Made Northern Resort and Blackhill Mansion Expert challenges more difficult. 2018-01-28 15:17:27 +01:00
Benau
11f9b74e13 Don't use out variable in vertex shader 2018-01-28 15:28:20 +08:00
Qwerty Chouskie
d4aa7b69ad New skidding particle effect (and a small fix for the SFX)
The textures are here:

https://jacobspctuneup.tk/STK/skid-particle1.png
https://jacobspctuneup.tk/STK/skid-particle2.png
2018-01-26 14:41:41 -08:00
Sam
c4b42c1852 Add layer of abstraction to output pbrData 2018-01-26 20:16:16 +01:00
Sam
e75f1cb799 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-01-26 10:52:23 +01:00
Benau
97fd634ed8 Allow auto-add usable uniforms to shader 2018-01-26 16:02:31 +08:00
Benau
ff38cb6423 Clean up advanced pipeline off code
Don't use RTT at all in game when it's off
2018-01-25 15:36:34 +08:00
Sam
37a6f464b9 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-01-24 21:51:11 +01:00
Benau
6bcee60a1c Merge remote-tracking branch 'origin/master' into game_protocol 2018-01-24 10:20:06 +08:00
Deve
94c3efa8d3 Force legacy device for sandy bridge generation celeron graphics cards 2018-01-23 22:40:42 +01:00
Benau
e5cdf3a086 Remove all unneed gamma correction when advanced pipeline off
Except for the colorization stuff
2018-01-23 01:16:45 +08:00
Benau
86393ba0a9 Use alphatest as a fallback shader for unlit
Adjust graph shader when advanced pipeline off, and no srgb prefilled
texture when advanced pipeline off
2018-01-22 13:27:21 +08:00
Benau
45957af6f8 Remove !sRGB in shader which is always true now
Also don't use tonemap in RTT
2018-01-22 12:54:39 +08:00
Benau
4025883243 Use sampleTextureLayer in shader files 2018-01-22 10:43:22 +08:00
Benau
390554eca1 Add xml shader and the loader 2018-01-21 13:19:00 +08:00
Deve
2516de8231 Disable npot textures on android emulator 2018-01-16 23:06:27 +01:00
Sam
6abd79dde6 Add the world position in default information avaliable to shaders 2018-01-14 10:39:16 +01:00
Benau
59045cd064 Merge remote-tracking branch 'origin/master' 2018-01-13 15:44:57 +08:00
Benau
24308ced03 Remove features in SP that give no performance boost at all
gl_Layer in vertex shader, bindless and array textures
2018-01-13 14:49:33 +08:00
Benau
503455d02f Simplify instruction 2018-01-13 13:48:51 +08:00
Benau
c4f589fee7 Use the low quality for libsquish again 2018-01-13 11:55:57 +08:00
Benau
bb0cf72635 Add required code and color selector for rainbow karts 2018-01-13 00:38:46 +08:00
Benau
68e8da2353 Remove all unused shaders 2018-01-12 19:10:55 +08:00
Benau
b1f1afb9c5 Use SSE2 in windows build for faster libsquish 2018-01-12 17:47:18 +08:00
Benau
9ccb34c2a1 Adjust graphics presets for SP 2018-01-12 12:03:31 +08:00
Qwerty Chouskie
6aefa2542b Reduce number of places version number needs to be changed on release 2018-01-11 08:56:23 -08:00
Benau
54c7914cb5 Update graphical restrictions
Mesa 17.4 will use the correct normalization forumla

Disable GLSL on intel HD2000 / HD3000 due to broken opengl 3.3 support
2018-01-08 15:55:28 +08:00
Benau
76788d7dd8 Fix GLES 2018-01-07 15:44:57 +08:00
Benau
5293a0dbef Add b3d loader for SP 2018-01-06 12:07:22 +08:00
Benau
e1c7efd68c Add sam's formula for pbr 2018-01-05 16:45:33 +08:00
hiker
28bc8c8e8f Merge branch 'master' of github.com:supertuxkart/stk-code 2018-01-01 00:36:24 +11:00
Benau
cce8abe6f3 Port billboard text 2017-12-30 15:28:04 +08:00
Benau
d71ea71e35 Remove some ifdef 2017-12-29 18:10:51 +08:00
Benau
711fb8211a Add samuncle way to sample texture slot 2017-12-29 15:39:22 +08:00
Benau
f040be710e Fix normal visualizer 2017-12-29 00:52:29 +08:00
Benau
62e0effed6 Rename input variables 2017-12-27 12:31:21 +08:00
Benau
dbc3cd5ff5 Normalize in shader for broken drivers 2017-12-27 11:33:30 +08:00
Benau
891b053358 Add more functions to normal visualizer 2017-12-27 01:33:21 +08:00
Benau
ce45605c18 Use half float for texture matrix 2017-12-26 15:28:01 +08:00
Benau
daf1294e6f Add minimap and adjust unlit shader for it 2017-12-26 14:34:34 +08:00
Benau
7797115867 Add SP for correct normal and easier shader system 2017-12-25 14:00:10 +08:00
hiker
4d02e736f7 Started to add smoothing of errors - atm only for position, not angle. 2017-12-18 23:13:59 +11:00
hiker
825deed8dd Merge remote-tracking branch 'origin/master' into game_protocol
Fixed various conflicts.
2017-12-09 00:56:30 +11:00