Commit Graph

1228 Commits

Author SHA1 Message Date
Benau
64595a7b18 Initial work on FFA in network 2018-08-13 00:59:20 +08:00
Benau
6bdec3d01a Add initial framework for FFA and CTF in network 2018-08-12 10:57:37 +08:00
Benau
95f3dfc01a End network game early if there is no red or blue team player 2018-08-10 15:08:19 +08:00
Benau
93aeeda12b Fix rewind issue of rubber ball 2018-08-06 14:37:55 +08:00
Benau
79d1178626 Improve kart animation handling in network 2018-08-04 16:29:49 +08:00
Benau
1e53349f52 Rewind bowling and cake in network game 2018-07-25 15:33:49 +08:00
Benau
4a9a0fba0f Make flyable to work with shared_ptr 2018-07-24 15:43:31 +08:00
Benau
60bfc1840b Port rewinders to use shared_ptr 2018-07-24 14:22:20 +08:00
Benau
6369256022 Reset rewinding manager at each online or offline game 2018-07-24 14:18:43 +08:00
hiker
1a9f0163e0 Try to fix odd behaviour of soccer ball. 2018-07-23 17:52:12 +10:00
auria.mg
a3a5befe63 Keep working on #3345, not there yet 2018-07-19 21:09:33 -04:00
auria.mg
f4dced8172 A few steps forward for issue #3345, more issues remain 2018-07-19 20:56:46 -04:00
Benau
1f7f64f3b5 Prevent rescuing in soccer mode to go back to self goal immediately 2018-07-20 01:36:02 +08:00
Benau
7ebd1fabd9 Add exception handling to prevent player hacking network string 2018-07-19 14:23:35 +08:00
Benau
1ba361ae23 Reset track objects during onGo when race start for network 2018-07-19 01:55:05 +08:00
Benau
1d7a9e9465 Prevent negative time in network soccer when finishing 2018-07-19 01:17:52 +08:00
Benau
c5cdfcebfe Finish soccer mode in network 2018-07-18 16:37:09 +08:00
Benau
49d7a2fbbc Use count up ticks on rewinding for time limit in soccer game 2018-07-13 23:34:50 +08:00
Benau
23e5dace40 Allow starting soccer mode in network with goals limit 2018-07-13 21:29:26 +08:00
Benau
565dfcef96 Only send state for moving track object 2018-07-13 10:47:30 +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
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
17d1bddf0d Don't re-update scripting engine during rewind 2018-07-08 12:58:57 +08:00
Benau
674faad226 Fix #3259 2018-07-02 15:40:27 +08:00
Benau
d3f7cb7999 Move ticks adjustment to main_loop 2018-07-01 14:31:42 +08:00
Benau
72fdfe1ac3 Merge remote-tracking branch 'origin/master' into curved 2018-06-21 01:14:38 +08:00
Benau
6eb7bf6bba Move camera update to update graphics 2018-06-18 13:36:56 +08: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
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
e823babb90 Show remote player in the past 2018-06-09 20:16:56 +08: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
Benau
5b62d03323 Fix wrong formula
Alayan said: +25% and +15s
2018-06-08 01:15:28 +08:00
Benau
785aaf7647 Add auto end network game (implicitly on for ranked server) 2018-06-07 14:28:06 +08: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
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
eebd5f2534 Removed unnecessary #include. 2018-06-01 09:42:36 +10: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
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
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
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
Benau
7926ad9ba0 Progressively adjust time with slow down functionality 2018-05-11 10:43:22 +08: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