Commit Graph

18505 Commits

Author SHA1 Message Date
Alayan-stk-2
27ab829f59
Update tool for new sstreaming characteristics 2018-04-12 21:14:41 +02:00
Alayan-stk-2
ee0b64eb69
Merge pull request #2 from supertuxkart/master
Update fork
2018-04-11 02:06:19 +02: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
auria.mg
ca771f6218 Cleanup input.xml file (remove unused properties in some cases), add a little inline doc to make it a little easier to customize 2018-04-09 19:28:22 -04:00
Deve
4ef196d086 Fixed minor bug in touch settings dialog 2018-04-10 00:25:38 +02:00
Deve
3f69fd37ed Some improvements for touch device 2018-04-10 00:22:09 +02:00
hiker
8841200a1c Fixed compilation in debug mode. 2018-04-09 21:57:10 +10:00
auria.mg
7543240db0 Merge branch 'Fix_3167_attempt' 2018-04-08 20:51:54 -04:00
auria.mg
61469a6806 Mitigate AI-related edge cases of original fx 2018-04-08 20:47:24 -04: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
Deve
4b5c3a37fd Increase target sdk version 2018-04-05 22:18:11 +02:00
Deve
4b972b73c7 Ignore paths that are not writable in assets manager 2018-04-05 22:18:11 +02:00
Arthur-D
9fb88b3eb7
Update README.md
Changed link to point to https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/ instead of a specific version (which already was outdated and pointed to 0.9.2).
2018-04-03 14:40:46 +02:00
auria.mg
c488c63d38 Rollback part of the recently merged PR that did not belong with AI changes 2018-03-31 21:16:25 -04: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
auria.mg
9250e66ff2 Improve 3167 patch 2018-03-31 21:03:56 -04:00
auria.mg
9fe4e2c30e Improve 3167 patch 2018-03-31 20:49:45 -04:00
auria.mg
19338482a8 Improve 3167 patch 2018-03-31 20:38:09 -04:00
auria.mg
04b6f67573 FIx #3167 attempt 2018-03-31 19:42:08 -04:00
auria.mg
a384866e6a Attempt for #3164 2018-03-29 19:23:51 -04:00
auria.mg
e2645c1060 Fix leak 2018-03-28 19:45:24 -04:00
Deve
0093a8eaab Fixed mingw compilation 2018-03-27 23:03:47 +02:00
Deve
756ec632ae Fixed windows compilation 2018-03-27 23:02:39 +02:00
Deve
eb28126f56 Avoid some code duplication 2018-03-27 23:02:09 +02:00
Deve
3666d1a2ec Allow to use scripting on arm64 2018-03-27 23:01:46 +02:00
auria.mg
b778b91b5e More UI scaling improvements, see #3146 2018-03-26 21:24:48 -04:00
Deve
be037781b8 Tweak screen keyboard layout 2018-03-21 23:06:15 +01:00
auria.mg
41cd33ce55 Fix Wrong Way message, fixes #3159 2018-03-20 20:05:34 -04:00
Alayan-stk-2
a27dd674a0 Change camera view in debug to the previous/next kart (#3158)
* Change camera view from one kart to the previous/next with F5-6 keys or with menu buttons

* Simplify code

The kart_num/real_num distinction was part of the base code Benau did ; but it is completely redundant after the changes I did to the way kart_num is calculated (it was previously a static int, it's now an unsigned int).
2018-03-20 19:39:18 -04:00
Deve
db3399500f Better scaling initial android dialog 2018-03-20 21:38:06 +01:00
Deve
0471202c9c Fixed stupid isAccelerometerActive condition 2018-03-20 20:55:26 +01:00
Alayan-stk-2
1dedd915ad Update the track list and reorder it to alphabetic order (#3154) 2018-03-19 20:50:31 -04:00
Deve
193ba6909f Represet special keys on screen keyboard by symbols 2018-03-20 00:10:13 +01:00
Deve
f559627951 Allow to repeat backspace key on screen keyboard 2018-03-19 23:06:20 +01:00
Deve
900beae4b2 Allow to create x86_64 android package.
64-bit packages will be required by google.
2018-03-18 21:56:36 +01:00
Deve
203d045485 More improvements for gui on android 2018-03-17 22:28:45 +01:00
Deve
26419e5ee0 Better gui scaling on android 2018-03-16 23:00:58 +01:00
Deve
98a7b5a03e Send text message when pressing enter on android keyboard 2018-03-15 21:35:29 +01:00
Deve
38a4e06a6c Avoid window size to be larger than available space.
When window size is equal to screen resolution and user selected windowed mode, we can assume that he wants maximized window.
2018-03-14 22:47:31 +01:00
Deve
9c3998be0e Fixed server_only compilation 2018-03-14 21:43:28 +01:00
Deve
4f51c9c915 One more valgrind fix 2018-03-14 21:02:25 +01:00
Deve
a3c0254f81 Better fix for login screen 2018-03-14 20:49:05 +01:00
Deve
6621196266 Don't close STK after login screen 2018-03-13 21:22:21 +01:00
Deve
952b973b89 Valgrind complains about changing variable after closeScreen 2018-03-12 23:03:15 +01:00
Deve
fd14c7fa91 Update android tv banner.
Thanks to Mr.XX99 for his work.
2018-03-12 21:49:09 +01:00
Benau
ffd6e84759 Stop threads of texture loading before destroying shader manager 2018-03-12 09:21:30 +08:00
auria.mg
48f2aa3da4 Fix bubblegum flashing, fixes #3133 2018-03-11 19:35:59 -04:00