Deve
ec25a9d368
Enable screen keyboard on android even if there is no touch device.
...
It may be still useful for gamepad.
2018-07-11 22:41:22 +02:00
Deve
e0d262bfdd
Allow to use screen keyboard even if hardware keyboard is available
2018-07-11 21:02:24 +02:00
Benau
8515805d52
Add initial framework for local state saving
2018-07-11 15:40:36 +08:00
Benau
a8959f604c
Fix crash when in-game menu opened when going to result screen in network game
2018-07-11 15:37:55 +08:00
Benau
db8a92a2d6
Fix getifaddrs leaking
2018-07-11 13:49:01 +08:00
Benau
908735b1b1
Remove local state saving at t = 0
...
A proper same frequency local state saving for client will come later
2018-07-11 13:29:30 +08:00
Benau
b537df54fc
Move scripting update to updateGraphics
2018-07-11 11:08:53 +08:00
Benau
3b2acf01eb
Add m_disable_sending_log to request to hide logging for server polling
2018-07-11 10:56:28 +08:00
Benau
bce888ec26
Always highest geometry level in network game
2018-07-11 09:06:49 +08:00
Deve
ed8b5e9f76
Allow to set different path for log files
2018-07-11 00:31:30 +02:00
Deve
9190847aa3
Close screen keyboard before race is started
2018-07-10 21:22:14 +02:00
Benau
621a718d27
Switch to assign mode in case a player hasn't chosen any karts
2018-07-11 01:41:43 +08:00
Benau
2d6c45f65e
Fix attachment rewind with passing bomb
2018-07-11 01:36:20 +08:00
Deve
68d43734cd
Fixed compilation with older compilers
2018-07-09 21:40:52 +02:00
Deve
8885119974
Don't crash if some textures are missing
2018-07-08 23:00:16 +02:00
Benau
8a25edf2cc
Use has_animation_before to avoid immediately rescue from previous material
2018-07-08 16:23:39 +08:00
Benau
35e2916981
Add the missing calculation for ipo constructor
2018-07-08 15:29:15 +08:00
Benau
3347cac92d
Make track object with ipo animation depend on world up ticks
2018-07-08 14:08:33 +08:00
Benau
e67f0db7c1
Reset all actions in suitable function for local game restart
2018-07-08 13:58:19 +08:00
Benau
17d1bddf0d
Don't re-update scripting engine during rewind
2018-07-08 12:58:57 +08:00
Benau
0fa444fbbf
Add isNetworking scripting function to disable some track object
2018-07-08 11:57:37 +08:00
Benau
f0c376a41d
Always push a screen in server only build to fix getCurrentScreen crash
2018-07-08 09:26:22 +08:00
Benau
b6edc0d93f
Add --disable-polling for hosting multiple servers on 1 machine
...
Only 1 instance of STK server needs keep polling the addon server,
the rest can be run with the above option
2018-07-07 12:50:04 +08:00
Benau
efd20966e4
Fix #3066 by make sure cert location is handled in main thread
2018-07-07 12:33:30 +08:00
Benau
21ccf587c3
Add --init-user for server owner to save player profile without gui
2018-07-07 12:32:06 +08:00
Benau
21842f78d8
Fix leaking dummy sfx buffer
2018-07-07 10:56:11 +08:00
Benau
622f46d95a
Properly use the ENABLE_SOUND flag
2018-07-07 10:43:05 +08:00
Benau
02fea1ee43
Disable sound code in server only build and rename the flag
2018-07-07 09:48:43 +08:00
Benau
a60b2d3761
Remove freetype in server only build
2018-07-07 02:06:49 +08:00
Benau
9c3aae554e
Remove fribidi and tinygettext in server only build
2018-07-07 01:22:26 +08:00
Benau
106d4c3c08
Fix #3340
2018-07-07 00:25:08 +08:00
Benau
d184c82daa
Fix #3341
2018-07-06 23:50:16 +08:00
Benau
8931d90813
Merge remote-tracking branch 'origin/master' into curved
2018-07-06 23:49:04 +08:00
Benau
80178ba695
Fix camera offset
2018-07-06 23:43:30 +08:00
Benau
7a1355d415
Use smoothed transformation in minimap
2018-07-06 22:40:57 +08:00
Benau
1efce9ae29
Fix penalty in networking
2018-07-06 22:24:32 +08:00
Benau
c437fcc513
Split jump time update to graphical for skidding
2018-07-06 21:40:41 +08:00
Benau
3f47c650e8
Allow smoothing for skidmarks
2018-07-06 19:01:13 +08:00
Benau
d6c3c825aa
Add an up offset on skidmarks for uneven terrain
2018-07-06 18:30:22 +08:00
Benau
8071865a07
Use a separate smoothing timer for steering
2018-07-06 17:44:50 +08:00
Benau
a76a6e3508
Use smoothed transform to raycast the skidmark quads
2018-07-05 14:22:37 +08:00
Benau
e50029b707
Use smoothed transform directly for shadow
2018-07-05 11:21:41 +08:00
Benau
0a020210e5
Fix quaternion slerp
2018-07-05 11:16:45 +08:00
Deve
4f2b538399
Fixed pause dialog on touch device when end controller is used
2018-07-04 21:52:08 +02:00
Benau
d6672b64c5
Don't use 0 host id for starting
2018-07-05 01:37:50 +08:00
Benau
7caad2905e
Add smoothing for steering percent
2018-07-04 16:22:09 +08:00
Benau
ad773089a5
Fix the rotation smoothing
2018-07-04 15:14:20 +08:00
Benau
e1dfe2e7e0
Show ping of remote players in lobby
2018-07-04 00:54:40 +08:00
Benau
a44ce60991
Send our own reliable packet for a more accurate ping
2018-07-03 14:20:35 +08:00
Benau
de8730dbfc
Preload some textures to avoid game hangs
2018-07-03 09:23:58 +08:00
Deve
872f214c41
Fixed a crash when using rubber band in legacy pipeline.
...
Fixes #3338
2018-07-02 21:41:48 +02:00
Benau
7174e4070c
Use 8 maximum players in network games
2018-07-03 00:47:31 +08:00
Benau
8c53296290
Disable the unneeded time adjust
2018-07-02 16:38:11 +08:00
Benau
674faad226
Fix #3259
2018-07-02 15:40:27 +08:00
Benau
211b107955
Make sure we don't send controller event if updateRace is too slow
2018-07-02 11:20:46 +08:00
Deve
0518d422c6
Fixed compilation
2018-07-01 22:57:48 +02:00
Benau
172a86192f
Remove debug output
2018-07-01 14:34:02 +08:00
Benau
d3f7cb7999
Move ticks adjustment to main_loop
2018-07-01 14:31:42 +08:00
Benau
75c8864e8f
Fix nitro in network
2018-06-29 12:17:24 +08:00
Benau
16cebffa3a
Move more kart g/sfx handling to updateGraphics
2018-06-27 16:41:15 +08:00
Benau
9752d4849b
Don't update slipstream and jump animation in rewind
2018-06-27 15:30:00 +08:00
Deve
22124ae11f
Don't display English twice on the languages list
2018-06-26 22:50:05 +02:00
Deve
34c335b05e
Handle wrong line endings in localized_name file.
...
Fixes #2795
2018-06-26 21:26:43 +02:00
hiker
cdfdab7db3
Added documentation, and properly #ifdef'ed cushioning debug output.
2018-06-26 17:21:22 +10:00
hiker
12095d6fcd
Try different way of cushioning - documentation is still msissing,
...
only for testing.
2018-06-26 10:36:38 +10:00
Deve
ddd63771be
Avoid empty header in edit gp screen.
...
Fixes #3329
2018-06-25 23:38:30 +02:00
Benau
295568560b
Make m_num_wheels_on_ground update after rewind
2018-06-25 16:34:46 +08:00
Benau
bd5381dad7
Buffer all inputs until last frame ticks
2018-06-25 11:57:18 +08:00
Deve
e7d07f4537
One more check for tbo
2018-06-24 01:31:02 +02:00
Deve
096a5b2420
Fixed server-only compilation
2018-06-23 00:20:31 +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
Benau
d68111af51
Pass timeout to enet other than unconditional sleep
2018-06-22 13:27:37 +08:00
Alayan-stk-2
fee6866c6d
Navigation improvements ( #3325 )
...
* Don't focus empty lists and ribbons
* Don't navigate to deactivated children of a ribbon
* Clarify log message
2018-06-21 20:44:35 -04: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
991dc00049
Moved hsitory replay handling into physics loop to make sure we
...
get identical replay independent of frame rate (otherwise input
might get delayed by a few frames).
2018-06-21 19:33:20 +10:00
hiker
526482bab4
Removed unused variable.
2018-06-21 19:32:09 +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
hiker
2399946301
Fixed line ending style.
2018-06-21 09:18:41 +10:00
Benau
72fdfe1ac3
Merge remote-tracking branch 'origin/master' into curved
2018-06-21 01:14:38 +08:00
Benau
4d680c27f4
Fix kart animation in networking
2018-06-21 01:14:26 +08:00
hiker
326ef82e90
Fixed line ending style.
2018-06-21 00:34:46 +10:00
hiker
ec6b611a94
Merge remote-tracking branch 'origin/master' into physics-tweaks
2018-06-21 00:33:29 +10:00
hiker
4903252931
Merge branch 'master' of github.com:supertuxkart/stk-code
2018-06-21 00:32:28 +10:00
hiker
2c0d47e511
Made some solver parameters configurable in stk-config.
2018-06-21 00:31:51 +10:00
Alayan-stk-2
be98a6c4c3
Add vertical tabs ( #3314 )
...
* Add vertical tabs to ribbon widget types
* Update GUI engine for vertical tabs
* Add the ability to get a ribbon's active children number
* Add full looping for vertical tabs
2018-06-19 21:00:10 -04:00
Alayan-stk-2
750320fbeb
Fix the previous number of points being 0 after relaunching STK ( #3320 )
...
* On launch, also update the number of previous points so it is not 0
* Do the first call after the loading of the challenges status
* Remove prints
2018-06-19 20:20:21 -04: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
hiker
5a74ed92e6
Fixed compiler warnings, and many coding style issues.
2018-06-20 08:22:23 +10:00
Alayan-stk-2
205d4b5626
Fix start/exit buttons not working in networking lobby ( #3318 )
2018-06-19 22:54:16 +02:00
Alayan-stk-2
e7f3f2b969
Fix #3316 ( #3317 )
2018-06-19 21:50:20 +02:00
hiker
8428603150
Removed exec permission (I need to get that #*$*#$* issue fixed).
2018-06-19 18:38:52 +10: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
hiker
714665f444
Improved 'randomness' of item selection while keeping exploitability
...
very low. Added documentation, moved item-distribution logging to
get more detailed information.
2018-06-19 10:19:10 +10:00
hiker
46b62de07e
Fixed compiler warning.
2018-06-19 09:19:32 +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
Deve
2e3ae1c3f8
Allow to set min and max drivers version in graphics restrictions
2018-06-18 22:32:41 +02:00
hiker
2859265545
Applied Alayan's fix for properly handling weight 0, some minor
...
other fixes, added two unit tests.
2018-06-18 22:24:52 +10:00
hiker
7c6d3c9e42
Fixed compiler warnings.
2018-06-18 18:19:29 +10:00
Benau
cfbdc30c6b
Normalize the rotation before slerping
2018-06-18 13:59:35 +08:00
Benau
6eb7bf6bba
Move camera update to update graphics
2018-06-18 13:36:56 +08:00
hiker
41ed9fc332
Removed execute permission.
2018-06-18 13:55:55 +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
34bfb2d868
Simplified loop structure, fixed other minox code issues.
2018-06-18 08:47:31 +10:00
hiker
de44b2aaf9
Made configuration files with missing or too many entries abort STK.
2018-06-18 08:14:30 +10:00
Benau
c58119be87
Smooth shadow and skidmarks for remote players
2018-06-18 00:10:49 +08:00
Benau
3b4353a2c9
Add curved smoothing for moveable in network
2018-06-18 00:06:32 +08:00
hiker
48aca2f70f
Started to address comments from the reviewer.
2018-06-17 23:48:47 +10:00
hiker
8cf52b4c7c
Updated documentation.
2018-06-17 11:43:35 +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
hiker
87da438bf3
Fixed comment.
2018-06-17 01:01:44 +10:00
Benau
e8c4f74a20
Revert "Show remote player in the past"
...
Use a proper smoothing for all players later
2018-06-16 14:08:02 +08:00
Benau
bd6492f5cf
Fix #3309
2018-06-16 13:55:20 +08:00
Alayan-stk-2
96a07be6bc
Fix stupidly long line full of whitespace ( #3303 )
2018-06-13 19:46:20 -04:00
Alayan-stk-2
e4b131fc78
Fix #3100 ( #3299 )
...
* Fix #3100
* Fix server only compilation
2018-06-13 19:43:18 -04:00
Alayan-stk-2
aee9e7ffa1
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).
2018-06-12 20:36:33 -04:00
Deve
7d9adf5b93
Avoid a crash when user name is empty
2018-06-12 23:01:13 +02:00
Deve
19736c2a51
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.
2018-06-11 22:23:48 +02:00
auria.mg
81aedd6582
FIx #2912
2018-06-10 19:09:36 -04:00
auria.mg
e9becd283b
More on #3242
2018-06-10 18:57:25 -04:00
auria.mg
fc89a1c244
Fix #3242
2018-06-10 18:45:37 -04:00
Deve
90f3a2389e
Allow to set commandline arguments on android
2018-06-10 23:25:51 +02:00
Benau
e823babb90
Show remote player in the past
2018-06-09 20:16:56 +08:00
Benau
f329314bf6
Fix possible empty race event manager instance
2018-06-09 19:04:15 +08:00
Benau
6433e1eae0
Fix as alayan suggested
2018-06-09 18:57:26 +08:00
Benau
9133275677
Use double for calculation
2018-06-09 18:53:44 +08:00
Alayan-stk-2
7c14fd28ba
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
2018-06-09 08:43:19 +00:00
Deve
05572b0084
Disable addons manager for server-only build.
...
No need to spam with downloading icons for add-ons.
2018-06-09 00:38:10 +02:00
Benau
d9ede4f213
Add state to avoid deadlock when finishing the race
2018-06-08 22:59:07 +08:00
Benau
9af27d93c4
Remove unneeded header
2018-06-08 14:56:49 +08:00
Benau
01dc948247
Fix #3286
...
In the future move trigger to check structure
2018-06-08 14:31:55 +08:00
Benau
b9bf3fa125
Use map to store peer and ticks in network item manager
2018-06-08 14:24:21 +08:00
hiker
8a534bb795
Fixed missing collisions.
2018-06-08 15:28:44 +10:00
hiker
6496289707
Added missing virtual destructor.
2018-06-08 15:28:38 +10: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
Benau
843ecfcbc0
Add --connection-debug for verbose packet logging
2018-06-08 12:12:59 +08:00
Benau
e674f2d091
Make sure no weak ptr expires when calculating ranking
2018-06-08 11:04:58 +08:00
auria.mg
1dcb8d3db6
Tweak message queue fix
2018-06-07 21:52:42 -04:00
auria.mg
aa64f40f26
Fix text overlapping icon in message queue
2018-06-07 21:48:31 -04:00
hiker
9c6b17aeba
Merge branch 'master' of github.com:supertuxkart/stk-code
2018-06-08 11:00:14 +10:00
hiker
cd80101bdf
Removed execute permission (for unknown reasons VS makes source files
...
executable when it saves them).
2018-06-08 10:59:13 +10:00
hiker
e05990bc1c
Fixed compilation problem.
2018-06-08 10:55:45 +10:00
hiker
b0da0f640a
Merge remote-tracking branch 'origin/master' into network-items,
...
fixed conflicts.
2018-06-08 10:55:14 +10:00
hiker
d966962ca3
Avoid crash (that likely only happens when debugging).
2018-06-08 09:27:02 +10:00
Deve
4db01b3c24
Avoid skipping soccer setup screen when using gamepad
2018-06-07 23:17:47 +02:00
Deve
4efafe5b2f
Set focus when opening addons loading dialog
2018-06-07 22:55:00 +02:00
Deve
d2806161bb
Allow to exit soccer setup screen with cancel button
2018-06-07 22:04:23 +02:00
Alayan-stk-2
0b5d68d1d1
Fix #3280 ( #3284 )
2018-06-07 20:43:09 +02:00
Benau
495b80fb04
Remove newline from translation
2018-06-08 01:29:06 +08:00
Benau
9a32c075eb
Use ngettext as translator suggests
2018-06-08 01:26:56 +08:00
Benau
5b62d03323
Fix wrong formula
...
Alayan said: +25% and +15s
2018-06-08 01:15:28 +08:00
Benau
304787f106
Remove unneeded translation in server lobby
2018-06-07 16:09:48 +08:00
Benau
9f6c87a636
Fix cornfield crossing network play
2018-06-07 15:31:13 +08:00
Benau
785aaf7647
Add auto end network game (implicitly on for ranked server)
2018-06-07 14:28:06 +08:00
Benau
96b27e427c
Use a simpler english
2018-06-07 08:32:47 +08:00
Deve
6effdeced4
Avoid a crash in debug menu
2018-06-06 22:19:14 +02:00
Deve
a39c934d2b
Fade background when general text field dialog is opened.
...
Fixes #3240
2018-06-06 22:11:10 +02:00
Benau
5e3a482588
Let player connecting in the middle of count down know
2018-06-07 01:34:25 +08:00
hiker
78133114ca
Try to fix shaking in network mode when skidding.
2018-06-07 01:12:45 +10:00
Benau
644d1b1521
Allow specify motd with .txt file
2018-06-06 16:14:49 +08:00
Benau
d87cf6fba6
Don't allow starting a ranked race with only 1 player left
2018-06-06 15:04:27 +08:00
Benau
ca039b13ff
Add observeExistence for request until porting request to shared_ptr
2018-06-06 13:23:48 +08:00
hiker
80ab0b6cda
Moved the 'visual' raycasts (for skidmarks) out of the update loop
...
into the updateGraphics call tree.
2018-06-06 08:24:34 +10:00
Deve
5e798ad6d4
Restore max texture size when reloading skin.
...
Fixes #3111
2018-06-05 23:55:31 +02:00
Benau
5da5a1972f
Add auto start with timeout and player threshold for owner less server
2018-06-06 01:06:44 +08:00
Benau
7093cc2196
Don't show error for findAndTerminate if no such protocol
2018-06-06 00:54:04 +08:00
Benau
148677598b
Terminate connect to peer after kart selection start
2018-06-05 11:21:21 +08:00
Benau
47455a71f3
Use KeyData instead of tuple
2018-06-05 10:23:14 +08:00
Benau
402e447ba1
Merge remote-tracking branch 'origin/master' into aes
2018-06-05 10:21:55 +08:00
auria.mg
3f1bd6b25e
Merge branch 'UTF8_Config'
2018-06-04 19:34:07 -04:00
Deve
ffee5d266d
Prefer /sdcard/Android/data/ for extracting assets.
...
Fixes #3266 , #3281
2018-06-04 22:24:26 +02:00
hiker
9ea8dae693
Further improved braking in networking.
2018-06-05 00:46:36 +10:00
hiker
5092f0326c
Removed unnecessary update (it's done in max_speed.cpp as well).
2018-06-05 00:04:49 +10:00
Benau
5baaf83401
Adjust for stk-addons
2018-06-04 16:35:45 +08:00
Benau
2f00196420
Clarify voting phase
2018-06-04 14:23:29 +08:00
Benau
4014e8f0e4
Remove unused protocol
2018-06-04 13:52:31 +08:00
Benau
a08e46f279
Remove the keys too after selection
2018-06-04 13:47:37 +08:00
Benau
4ef0c4e03c
Add option for official server to disable stun at all
2018-06-04 13:36:24 +08:00
Benau
d89c65b0c9
Remove token in network string
2018-06-04 13:25:10 +08:00
Benau
ec51a2dfbb
Fix memory leak
2018-06-04 11:12:11 +08:00
Benau
e326d7bcfd
Fix valgrind uninitialized
2018-06-04 11:12:03 +08:00
auria.mg
c599195eeb
XML fixes
2018-06-03 21:48:34 -04:00
Benau
aa1bb720e3
No joinning of password-proected server if no password is given
2018-06-04 09:41:50 +08:00
Benau
2fbf0ab49f
Avoid unnecessary slow down and mutex locking in server lobby
2018-06-04 09:28:38 +08:00
auria.mg
42d98f8ff1
Start on UTF-8 config conversion
2018-06-03 21:04:46 -04:00
Alayan-stk-2
79e3d298ce
Correct finish time for GPs when skipping a race ( #3276 )
...
* Make human players have a correct finish time when skipping a GP race
* Don't compute the estimated finish time twice
2018-06-03 19:50:24 -04:00
hiker
c751db865f
Always include terrain-based slowdown fraction in a state update
...
(otherwise the client would reset this value to 1.0 in each rewind).
2018-06-04 08:54:49 +10:00
hiker
b15de8c3dc
Update m_hardPointWS after a rewind to make sure the current
...
terrain is computed based on the new (rewound) kart position.
2018-06-04 08:53:21 +10:00
Benau
4653089d95
Add ranked server for validated player
2018-06-04 01:19:27 +08:00
Benau
a9696792c2
Merge remote-tracking branch 'STK-helper/RankingFormula' into aes
2018-06-03 15:39:01 +08:00
Benau
2fe50ba0c4
Make connect to server message stay longer if needed in lobby
2018-06-03 15:24:36 +08:00
Benau
490b865ddd
Allow using %f with translated message
2018-06-03 15:15:25 +08:00
Benau
e122d045cc
Allow showing player ranking in network user dialog
2018-06-03 15:08:52 +08:00
hiker
91f472e1c7
Fixed braking in network games (hopefully).
2018-06-03 01:09:05 +10:00
Benau
b43a5e4d18
Add AES encryption and validation for wan player
2018-06-02 12:28:29 +08:00
QwertyChouskie
7cb0ffe844
Fix segfault in cutscene when pressing CTL+Shift and when using FPV cam ( #3279 )
...
Fixes https://github.com/supertuxkart/stk-code/issues/2876
2018-06-01 21:25:56 -04:00
Deve
a39007d48e
Fixed invisible spare tire kart.
...
Fixes #3277
2018-06-01 22:12:51 +02:00
hiker
5ec22d17f4
Fixed EndController (base functions in AIBasecontroller need to
...
use same state size as PlayerController.
2018-06-02 00:48:48 +10:00
hiker
e0d7717c46
Added previous brake and steer value (necessary for full state).
2018-06-02 00:08:08 +10:00
hiker
c3ec9bf6eb
Fixed comment.
2018-06-01 21:43:40 +10:00
hiker
da14ffc4de
Added brake_tick counter to the state (the longer you brake the
...
stronger you brake).
2018-06-01 21:40:00 +10:00
hiker
eebd5f2534
Removed unnecessary #include.
2018-06-01 09:42:36 +10:00
hiker
a9279a05d0
Made --check-debug to work with --no-graphics; print also the
...
race time at which a check-structure is crossed.
2018-06-01 00:24:27 +10:00
hiker
8cca845dde
Hopefully fixed item collection prediction.
2018-05-31 09:48:33 +10:00
hiker
70039f7d92
Removed unnecessary #include.
2018-05-31 09:29:01 +10:00
hiker
e6d5e194d3
Don't save the terrain slowdown as part of the state, it will get
...
updated on each client automatically.
2018-05-29 19:25:24 +10:00
hiker
50425ef59f
Moved item position into ItemState.
2018-05-29 19:21:34 +10:00
Alayan-stk-2
c4768b72ae
Add support for hours display to timeToString ( #3270 )
...
* Add hours support to timeToString
* Update timeToString declaration
2018-05-28 20:17:52 -04:00
Alayan-stk-2
670a40cb05
Improvements to finish time accuracy ( #3273 )
...
* Add time info for recent positions
* More accurate finish time
* Rebase changes on the version with overrides
2018-05-27 18:04:57 -04:00
Deve
6444405479
Avoid using incorrect action in debug menu
2018-05-27 21:35:44 +02:00
hiker
755cd8095b
Use ItemState instead of Item as paramter for kart's collectedItem.
2018-05-28 00:26:02 +10:00
hiker
d0e95d0d63
Removed debug code (always get bubble gum as powerup).
2018-05-27 23:44:51 +10:00
hiker
ab3a3e1155
Combined event handler and emitter in item into one object (since
...
they are the same anyway).
2018-05-27 23:42:38 +10: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
hiker
079b5abe2a
Started to use ItemState instead of Item in the attachment and
...
powerup callbacks on item collection.
2018-05-27 00:42:21 +10:00
QwertyChouskie
c4cb0201df
Let user know when STK is compiled without libopenglrecorder ( #3267 )
...
* Let user know when STK is compiled without libopenglrecorder
* More work
2018-05-26 05:30:55 +00:00
Deve
056ee641d1
Allow to use openglrecorder with gles
2018-05-24 22:07:33 +02:00
hiker
89ded35c21
Fixed bugs in MaxSpeed state saving and restoring.
2018-05-24 10:19:54 +10:00
Deve
2958435f7c
More work on gles + texture compression.
...
Now it's usable with mesa, nvidia blob and in theory nvidia tegra too.
2018-05-23 21:21:14 +02:00
Deve
b98aede1e1
Fix for old headers
2018-05-22 22:31:38 +02:00
Deve
765d4019b7
Allow to use texture compression with GLES when extension is available
2018-05-22 22:31:38 +02:00
Benau
5482c028ca
Add wee sound when starting kart / track selection
2018-05-22 15:51:37 +08:00
Benau
ff08a2ba16
Don't send events if it trigger a rewind in server
2018-05-22 14:21:05 +08:00
Alayan-stk-2
175b932b13
Correct finish time for egg hunt ghosts ( #3263 )
...
* Use replay data for ghost karts finish time
* Compute correct finish time for egg hunts replays
2018-05-21 18:12:16 -04:00
Deve
04170f5855
Avoid a crash on exit.
...
Still NetworkingLobby::unloaded() probably shouldn't be executed if networking screen is never opened, but initialize variables doesn't hurt anyway
2018-05-21 21:51:04 +02:00
Deve
5d840f6bf7
Move android stkgui files to its own directory
2018-05-21 21:30:24 +02:00
Benau
056e596d5a
Fix debug build and clean up
2018-05-22 02:06:16 +08:00
Benau
1a975f9ef4
Offer a way to know accurate ping to server within 3 seconds
2018-05-22 01:31:08 +08:00
hiker
227572809a
Synch attachments of bananas between client and server, some
...
code cleanup.
2018-05-22 00:00:38 +10:00
Benau
34b8a07d80
Add proper line breaking
2018-05-21 11:19:18 +08:00
hiker
9108934c18
Added handling of predicted item drops.
2018-05-21 10:09:10 +10:00
Alayan-stk-2
4fdd3eee38
Ghost finish times based on replay data ( #3262 )
...
* New ghost kart function to compute finish time
* Don't estimate the finish time for ghosts, use replay data
2018-05-19 19:23:44 -04:00
Alayan-stk-2
b8d2dc9034
Fix #3182 ( #3260 )
...
Checklines validation is for karts only, so having it true for the basket ball made the ball_distance always equal to zero. Setting it to false make the basket ball work again.
2018-05-19 18:23:58 -04:00
Benau
fdc299e073
Add player rankings in achievements
2018-05-20 01:15:39 +08:00
auria.mg
06d0dafcbf
Change default keyboard key for "back" in the UI, backspace can be accidentally triggered when trying to erase texte
2018-05-18 21:23:31 -04:00
auria.mg
6291fada36
Fix more clang warnings
2018-05-18 20:09:13 -04:00
auria.mg
19fab0a4c1
Fix clang warnings
2018-05-18 19:58:51 -04:00
Deve
ad9a314bcf
Fixed android compilation
2018-05-17 23:35:05 +02:00
Alayan-stk-2
bac516aa40
Update comment
2018-05-17 17:45:49 +02:00
Alayan-stk-2
6d6520ab89
Make the formula different between normal and time-trial modes
2018-05-17 17:37:16 +02:00
Benau
fa61059ad2
Add double for xml node
2018-05-17 10:28:46 +08:00
Alayan-stk-2
9902e7c767
Use double for max_ranking too, remove first half base-points distribution (done elsewhere)
2018-05-17 03:16:12 +02:00
Benau
d2bf17e71a
Show owner name as Official if official server hoster account is used
2018-05-16 16:07:08 +08:00
Alayan-stk-2
f5245a679e
Fix #3236 ( #3253 )
...
* Don't generate IRC alerts
* Fix #3236
* Update .appveyor.yml
2018-05-15 19:16:56 -04:00
hiker
cdea16f81d
Fixed kart id being received as unsigned int (needs to be signed since
...
the sign indicates the event type).
2018-05-16 08:55:18 +10:00
Alayan-stk-2
b026b24e4a
Fix/update ranking computation
2018-05-15 18:47:59 +02:00
Alayan-stk-2
8da8390773
Merge pull request #14 from supertuxkart/master
...
Update branch
2018-05-15 15:25:21 +02:00
Benau
d4b3f75b22
Add code for alayan
2018-05-15 16:08:07 +08:00
hiker
ad82dca6cc
Created separate file for ItemEventInfo.
2018-05-15 18:05:46 +10:00
Benau
b8982200b6
Fix track objects in network
2018-05-15 15:23:39 +08:00
Alayan-stk-2
9f18c0e2c1
(Broken) ranking computation
2018-05-15 04:22:23 +02:00
Alayan-stk-2
1fc3e0916e
Ranking related changes
2018-05-15 04:20:44 +02:00
Alayan-stk-2
5ab277bd68
Resolve conflict with master
2018-05-15 03:46:00 +02:00
hiker
0d850201fb
Renamed and split the two newItem () functions into three functions:
...
placeItem(), placeTrigger(), dropNewItem(). Started to add support
for networked bubble gum (though that's not working, i.e. will crash
atm ;) ).
2018-05-15 10:40:25 +10: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
hiker
8c4158c139
Removed option to set item etc type via additional parameter for
...
networking. Now networking relies on deterministically determined
'random' item types and state updates.
2018-05-14 08:46:50 +10: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
hiker
d2dc99f859
Added --disable-item-collection command line flag, which is useful
...
for evaluating client/server 'disagreements'.
2018-05-13 23:43:29 +10:00
hiker
af0495848a
Use client prediction for item collection.
2018-05-13 01:04:45 +10: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
hiker
d88ce3b3b6
Removed unused code, coding style fixes.
2018-05-11 09:41:46 +10:00
hiker
b77a76dd8c
The ItemManager must be updated even if no event is received (to
...
rewind item states to the rewind time).
2018-05-10 23:25:04 +10:00
hiker
5f8dc7b641
Added debug comment to let the server not connect any items
...
(--> client predictions wrong, useful for debugging).
2018-05-10 23:24:07 +10:00
hiker
ff6d5119b4
CLients now predict item (predictions are not synched with server,
...
so the item will chance once the server update is received atm).
2018-05-10 23:23:23 +10:00
hiker
8f2b991e6a
Code cleanup.
2018-05-10 09:31:21 +10:00
Deve
15f79b0f95
Add key binding for azerty layout
2018-05-09 21:11:24 +02:00
hiker
4e37c1388b
Item collection on a client now works, though it is not predicted yet.
...
Other things (dropping bubble gum, switch, synchronised banana collection)
still do be done.
2018-05-10 01:09:23 +10:00
hiker
031eb461a3
Removed debug output.
2018-05-10 01:07:41 +10:00
hiker
c98df155a6
Change item visibility always in Item::updateGraphics, which (except
...
for listener) makes it unnecessary to call collect for Item (only
for ItemState).
2018-05-10 01:05:38 +10: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
hiker
e1530267f3
Fixed compilation error and some warnings.
2018-05-09 00:48:20 +10:00
hiker
3f96ba2b93
Added nitro amount to state.
2018-05-08 20:51:35 +10:00
hiker
9d60112e65
Started to implement proper item handling: the server now sends
...
updates of all collected items to the clients as part of a state.
A client confirms the received states. Once all clients have
confirmed a certain event, that event is deleted on the server
and not sent anymore. WIP, item collection kind of works, but only
because of kart state updates which include attachment (but not
e.g. nitro).
2018-05-08 19:12:06 +10:00
hiker
356680b182
Removed debug prints.
2018-05-08 18:41:37 +10: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
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
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
hiker
eb647124e8
Split the item update into update and updateGraphics() parts.
2018-05-04 16:41:03 +10:00
hiker
c7c061c7c1
Bugfix: all items were counted as easter eggs :)
2018-05-04 16:36:56 +10:00
hiker
3e518968b3
Added a generic collectedItem() virtual function to world
...
instead of a special case of easter eggs only.
2018-05-04 10:29:44 +10:00
hiker
10ce48b86f
Moved notification of easter egg collectoin from Item to ItemManager.
2018-05-04 09:48:54 +10:00
hiker
5ba79bddd7
Removed m_confirmed, renamed m_disappear_counter to m_used_up_counter.
2018-05-04 09:31:50 +10:00
hiker
9392354663
Split Item into two classes: ItemState which contains the non-graphical
...
and changing properties (e.g. collected,item type etc), and Item (using
ItemState as base class) which contains graphical and constant values.
2018-05-04 01:01:15 +10:00
Qwerty Chouskie
b5067a935e
Final?
2018-05-02 22:35:36 -07:00