Commit Graph

14737 Commits

Author SHA1 Message Date
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
Qwerty Chouskie
173702cca1 "skid0" effect 2018-05-02 22:23:16 -07:00
Qwerty Chouskie
ded672ea0d Remove no-longer-needed code
It doesn't compile with this anymore, and the issue it fixed seems gone anyways.
2018-05-02 18:39:47 -07:00
Qwerty Chouskie
b0c061290f Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-05-02 18:09:13 -07:00
hiker
7e9e258b17 Merge remote-tracking branch 'origin/move-handleMaterialSFX' 2018-05-03 10:23:51 +10:00
auria.mg
c6c005ded4 Revert "jgh"
This reverts commit e1a1196a9f.
2018-05-02 19:35:41 -04:00
auria.mg
e1a1196a9f jgh 2018-05-02 19:35:04 -04:00
Alayan-stk-2
74a77ed5ef
Cast width and height as floats before checking the ratio 2018-05-02 20:33:08 +02:00
Alayan-stk-2
d6c2cccccd
Reduce minimap size in splitscreen multiplayer
It won't work very well with 8 players, but still slightly better than when it was always 100.
2018-05-02 20:07:10 +02:00
Alayan-stk-2
bed03b2a43
Make minimap size 1.8 higher
This factor has been chosen because :
1) It allows the toplist to be able to still display 10 karts (maximum number reached in story mode or in networking (currently 12 but will be 8-10 for release according to Benau))
2) This size should fit nicely in the android GUI.

Otherwise, there is still some margin before it hinders view in 4:3 resolutions.
2018-05-02 19:40:00 +02:00
Alayan-stk-2
3d17e68c4e
Get a larger minimap texture to significantly reduce aliasing 2018-05-02 19:13:09 +02:00
Benau
a5b234ceef Reset player action in pause menu for network, fix #3230 2018-05-02 15:37:47 +08:00
Benau
f5035a00ea Allow showing paused dialog in network now it doesn't pause timer 2018-05-02 13:17:23 +08:00
Benau
ac54ee8888 Remove max 80 words limit now we use uint16_t for wide char 2018-05-01 12:42:59 +08:00
Benau
d17fddcac8 Fix handicap in splitscreen and network 2018-05-01 01:10:12 +08:00
hiker
0d1e799b4b Removed unused function. 2018-04-30 08:56:28 +10:00
hiker
28eb0112e0 Moved handleMaterialSFX to updateGraphics(), which removes the need
for a isLastSubstep() function in main(). Fix potential bug when
a new material sfx is triggered when a previous sfx still exists.
2018-04-30 08:49:57 +10:00
Alayan-stk-2
6a25384ed9 SuperTux in Story Mode (and other improvements) (#3207)
* Add SuperTux difficulty & update number of karts

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

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

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

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

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

* Add SuperTux difficulty

Also tweak the expert challenge to have a more appropriate difficulty

* Add SuperTux difficulty & update number of karts

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

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

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

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

Also slight balancing improvements for the usual difficulties.

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

Also adds a position requirement in expert

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

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

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

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

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

Also change the number of laps to 4.

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

Also add a position requirement to expert and intermediate.

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

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

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

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

* Rename islandtrack.challenge to gran_paradiso.challenge

* Rename challenge file

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

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

* Add SuperTux difficulty & update number of karts

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

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

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

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

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

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

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

* Add new unlock challenges, for difficulty and karts

* Add a lap to oliver's math class

* Replace Northern Resort by Volcano Island

* Replace Volcano Island by Candela City

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

Also sets Green Valley to 3 laps.

* Add Northern Resort and remove Fort Magma

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

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

* Temporary cup for SuperTux challenges

Recolored version of the gold cup

* Update challenge selection UI for the SuperTux challenges

* GUI used before SuperTux difficulty unlocking

This is the old select_challenge.stkgui

* Swap the two sara

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

* Update for improved Story Mode

* Update for improved Story Mode

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Add support for SuperTux challenges

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

* Update for unlocking by points

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Minor changes to function calls

* Update for SuperTux challenges

* Add support for SuperTux challenges

* Update for Story Mode GP changes

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

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

* Add support for SuperTux challenges

Including a bigger challenge selection diaolg

* Add default value

* Icon to indicate that there is an unlockable

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

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

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

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

* Function for unlock by points UI

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

* Make unlockByPoints simpler and more flexible

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

* Update unlockByPoints declaration

* Adds support for next unlockable UI

* Improve call of unlockByPoints

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

* Add icon for next unlockable

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

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

* Changes to display karts in the unlock scene

* Update unlock functions declarations

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

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

* Declaration for unlockFeatureByList

* Display newly unlocked karts

* Display newly unlocked karts

* Clear the list of recently unlocked features at the end

* Update testing code

* Update unlocks finding function call

* Improve UI scaling

* Fixes indentation

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

* Add const to declarations

* Remove const_cast

* Remove a const_cast

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

* Fix menu being bolder
2018-04-29 18:27:03 -04:00
Alayan-stk-2
a1e19f3692
Fixes weight computation at reference points 2018-04-29 07:23:33 +02:00
Alayan-stk-2
49ff8ecd25
Reload powerup models on graphics options restart 2018-04-28 23:06:25 +02:00
Alayan-stk-2
e1f585a916
Add powerup model loading on start 2018-04-28 23:03:39 +02:00
Alayan-stk-2
1545c10328
Split loadAllPowerups in two functions 2018-04-28 23:00:23 +02:00
Alayan-stk-2
5e749901f3
New loadPowerupsModels function 2018-04-28 22:58:03 +02:00
Alayan-stk-2
c785a45e93
Fixes ordering error 2018-04-27 23:46:13 +02:00
Alayan-stk-2
5f994204ab
Use only one random number for item selection 2018-04-27 23:25:08 +02:00
deve
a2659f479c Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-04-27 06:52:58 +02:00
deve
b90a9fbf0d Don't allow totally disable particles in GUI.
Now we don't use tfb shader to compute particles, so it seems to not have a sense anymore.
And it's still possible to set particles_effects=0 in config.xml if someone will need it.
2018-04-27 06:50:39 +02:00
deve
bf1392cadc Keep important particles enabled on lowest settings 2018-04-27 06:44:56 +02:00
hiker
a737f9e3d5 Fixed typos. 2018-04-27 00:34:58 +10:00
Alayan-stk-2
33c60ddc1c
Remove obsolete powerup loading
Powerup data is loaded before each race when the number of karts (and type of race) is known.
2018-04-26 12:45:49 +02:00
Alayan-stk-2
af106fcd7d
Remove obsolete powerup loading 2018-04-26 12:41:15 +02:00
Alayan-stk-2
acf9ed1eab
Remove unused default value
Also corrects a comment typo
2018-04-26 05:35:12 +02:00
Alayan-stk-2
ae21cfe8d7
Fix log reporting 2018-04-25 23:18:02 +02:00
Deve
b770fa19fb Auto refresh for lan server detection 2018-04-25 20:26:23 +02:00
Alayan-stk-2
e10e56a962
Various improvements requested in review 2018-04-25 11:43:46 +02:00
hiker
8a8b954bf9 Fixed more ticks vs time issues. 2018-04-24 17:44:39 +10:00
hiker
c8befd7505 Fixed compiler warning. 2018-04-24 17:30:15 +10:00
hiker
6f38a56dfa Merge branch 'lan-broadcast' 2018-04-24 17:28:19 +10:00
hiker
88abad8dc7 Moved handleMaterialGFX() and updateEngineSFX() from update()
to updateGraphics() - i.e. only one per rendered frame.
2018-04-24 17:19:13 +10:00
hiker
f2f15ac4e0 Removed duplicated entries. 2018-04-24 09:22:52 +10:00
hiker
2a89e7e0d1 Merge remote-tracking branch 'origin/lan-broadcast' into lan-broadcast 2018-04-24 09:18:41 +10:00
hiker
0809f3e286 Added 192.168.1.255 as default broadcast address. 2018-04-24 09:16:55 +10:00
Benau
62ea07ecc8 Try to synchronize timer independent of music 2018-04-24 01:01:47 +08:00
Benau
b919c82da5 Merge remote-tracking branch 'origin/master' 2018-04-23 23:47:30 +08:00
hiker
866eba936d Try to fix linux - compiles. but untested. 2018-04-24 00:37:53 +10:00
hiker
59b796a7f5 Since broadcasting to 255.255.255.255 does not work in all cases,
add code to create a set of potential broadcast addresses and
use them all. Duplicated will be filtered out (since likely a server
will replace more than all).
2018-04-23 23:30:48 +10:00
Alayan-stk-2
4d4fff690d
Support for multiple reference weight lists 2018-04-23 03:51:39 +02:00
Alayan-stk-2
d79e4a1509
Use referenc 2018-04-23 03:49:48 +02:00
Alayan-stk-2
d3659232e0 Fix time-to-ticks build issue (#3215) 2018-04-22 20:18:46 -04:00
Alayan-stk-2
2ca9189f32
Add isFollowMode function 2018-04-23 02:03:35 +02:00
auria.mg
c08093d732 Merge branch 'More-AI-improvem'
# Conflicts:
#	src/karts/controller/skidding_ai.cpp
2018-04-22 19:36:37 -04:00
hiker
8e1f046b86 Fix the handling of messages that arrive before the last saved state
(which currently causes a crash).
2018-04-22 22:07:21 +10:00
Benau
bc8539ae10 Add some sound effect for lobby 2018-04-22 15:07:08 +08:00
Benau
d4eaec6667 Fix crashed sound repeating 2018-04-22 14:44:43 +08:00
Benau
7ddd498156 Add a separator as auria suggested when reentering the lobby 2018-04-22 14:32:41 +08:00
Benau
96797e9325 Fix wrong code to make it the same as comment 2018-04-22 14:01:11 +08:00
auria.mg
ad7555d8ea Fix race GUI glitch kart icons to line horizontally at the start of a race 2018-04-21 21:04:21 -04:00
auria.mg
bb88ffc460 Merge branch 'game_protocol' 2018-04-21 19:53:56 -04:00
auria.mg
cbfcc55ebc Fix cutscenes sychronisation, fixes #3213 2018-04-21 19:12:25 -04:00
auria.mg
edb3cc4f0b Fix material slowdown not working, fixes #3212 2018-04-21 19:05:45 -04:00
auria.mg
c9d1d1c579 Fix issue with ticks vs time elapsed in scripting engine 2018-04-21 18:46:21 -04:00
Deve
8d767f0c8f Fixed flooding with wrong way messages.
Fixes #3214
2018-04-21 22:51:21 +02:00
Benau
a4198536a0 Reset server if no player in lobby between a grand prix 2018-04-22 01:03:25 +08:00
Benau
e1797f0572 Don't use NetworkConfig which got deleted already 2018-04-21 16:41:25 +08:00
Benau
448ad5abcf Clean up network local player handling 2018-04-21 16:32:43 +08:00
Benau
82a396ed56 Fix kart headlight in network 2018-04-21 16:30:38 +08:00
Benau
ba681a7cf8 Initial GP in network 2018-04-21 16:00:14 +08:00
Benau
6728951985 Fix incorrect camera index for GP 2018-04-21 12:55:55 +08:00
Benau
708d558528 Fix #3191 2018-04-21 10:25:05 +08:00
Deve
e0a5bd1027 Restore dropping bubblegum after shield explosion 2018-04-20 22:04:29 +02:00
hiker
78f96d4818 Temporary 'fixed' banana handling. 2018-04-21 01:32:03 +10:00
Benau
d55d5d0f3f Get local player id from server for GP sorting later 2018-04-20 19:10:40 +08:00
Benau
75a63f6bae Remove unused protocol type 2018-04-20 17:33:07 +08:00
Benau
afa647ac90 Remove unneeded rewind test in skidmarks 2018-04-20 17:22:33 +08:00
hiker
359cb4770a Merge branch 'master' of github.com:supertuxkart/stk-code 2018-04-20 18:26:48 +10:00
Benau
611def3c04 Fix sp shader debug handling 2018-04-20 16:25:12 +08:00
hiker
42d21ba9f9 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-04-20 17:59:59 +10:00
hiker
4a0444987a Fixed skidding in network mode. Only the jump duration is part of
the state, the current height of the kart in case of a jump is
then computed (without keeping track of speed etc). Jumping is
now only done during updateGraphics().
2018-04-20 17:31:31 +10:00
Benau
91e1bd3fd1 Try to fix invalid string by store a copied of translation 2018-04-20 14:36:19 +08:00
Benau
a071e022a5 Do the same for race event manager for non-stop network 2018-04-20 14:18:26 +08:00
Benau
32c1255c10 Make sure no dialog exists when going back to lobby 2018-04-20 14:18:05 +08:00
Benau
0c33803159 Let the network game keep going even race paused dialog shown 2018-04-20 13:30:17 +08:00
Benau
e5c991e3d2 Merge remote-tracking branch 'origin/master' into kobato 2018-04-20 13:03:34 +08:00
Benau
2dada03bae Save available karts and tracks from clients in STKPeer
So if this peer disconnects later in lobby it won't affect current players
2018-04-20 12:19:58 +08:00
Benau
bd13f40584 Reset server to accepting client state if no more connected players 2018-04-20 12:19:58 +08:00
Benau
99a25bb837 Implement a proper end and restart race in network 2018-04-20 12:19:58 +08:00
Benau
6eaa88a3f5 Remove the unknown 255 attachment which caused by Endcontroller replacement 2018-04-20 12:19:58 +08:00
Benau
b6caf00bfc Stop race event manager if exiting lobby 2018-04-20 12:19:58 +08:00
Benau
9a32bdcbe1 Fix #1636 2018-04-20 12:19:58 +08:00
Benau
d4fb888ffa Eliminate disconnected kart 2018-04-20 12:19:58 +08:00
Benau
6f30fd0cb0 Clean up ConnectToPeer 2018-04-20 12:19:58 +08:00
Benau
0ecc6e34b9 Add deve request for auto-server port detection 2018-04-20 12:19:58 +08:00
Benau
12e4ba0f18 Check server version again in connection request (for connect-now) 2018-04-20 12:19:58 +08:00
Deve
a7deff5c3e Avoid a crash in general text field dialog.
onEnterPressed can be executed twice - in event handler and in input manager.
2018-04-20 12:19:58 +08:00
Benau
789d75bf26 Remember last sucessfully connected server address 2018-04-20 12:19:58 +08:00
Benau
bd5fc33816 Add billboard text of online player name to non-local player 2018-04-20 12:19:58 +08:00
Benau
d30faece9c Show (online) player name in race GUI 2018-04-20 12:19:58 +08:00
Benau
d6af63da67 Fix possible android crash 2018-04-20 12:19:58 +08:00
Benau
0c688c7df7 Use music phase instead of race phase 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
Benau
8c72ce66e3 Copy server address to avoid using STKHost in shutdown 2018-04-20 12:19:58 +08:00