Benau
3337f41529
Fix ServerConfig and STKConfig dependencies
2018-09-11 15:35:24 +08:00
Benau
1c94cd6880
Avoid spamming with connect to peer message with localhost
2018-09-11 15:23:45 +08:00
Benau
ade3551c16
Disable message queue in no graphics too
2018-09-11 14:35:07 +08:00
Benau
8bb2eeb629
Always disable online user polling for wan server
...
With d6955f03fcbc21cb4cd9332d0d528063ad9a0f60 in stk-addons it is no
longer necessary
2018-09-11 14:31:43 +08:00
Benau
612e8bdaf6
Keep http header of curl_slist* until the exit of stk to prevent memory leak
2018-09-11 14:24:59 +08:00
Benau
dd15947aa1
Use ServerConfig for setup server
2018-09-11 14:06:30 +08:00
Benau
0d93fe427e
Initial work on server_config.xml
2018-09-11 10:13:33 +08:00
Deve
4262418532
Don't report stats for server_only/no-graphics.
...
It may cause a crash on some devices eg. when glGetString returns NULL.
2018-09-09 23:58:26 +02:00
Benau
81f2a9e99d
Implement CIDR banning with online id split
2018-09-07 23:55:01 +08:00
Benau
3729f27de0
Update stun servers list with not working one removed
2018-09-07 11:39:16 +08:00
Deve
9cf42302a6
Fixed compilation with older nettle versions
2018-09-07 00:26:18 +02:00
Deve
8e29c189c4
Don't segfault if null device creation failed
2018-09-06 22:56:55 +02:00
Benau
88e1733d50
Simplify STUN and LAN connection
...
Using enet intercept directly
2018-09-07 01:40:32 +08:00
Benau
3cdc1b6ddd
Fix crash if server lobby is NULL
2018-09-06 08:41:13 +08:00
Benau
a5c9bbd3ef
Get private port and server id from file
2018-09-06 08:33:11 +08:00
Deve
a60a84b05a
Make sure that dialog window and screen keyboard are deleted before changing screen in lobby
2018-09-05 23:06:29 +02:00
Benau
d0b24487eb
Allow search with unicode characters and space
2018-09-05 13:37:30 +08:00
Benau
30028cc330
Implement text searcher in server selection
2018-09-05 12:19:11 +08:00
Deve
4ec7f45e56
Avoid a crash when hiscore has too many entries
2018-09-04 23:48:49 +02:00
Deve
0f1f876874
Revert "Change highscore limit from 3 to 5 ( #3417 )"
...
This reverts commit 84359ad7da
.
It broke "Max players supported" text in arena info screen. It also doesn't work well for hidpi_enabled property that is used on android. Additionally it causes incompatibility with older STK versions (STK 0.9.3 crashes when there is more than 3 entries in hiscore.xml).
Fixes #3424
Fixes #3425
2018-09-04 21:31:27 +02:00
Deve
8f6daefc73
Revert "Fixed android compilation"
...
This reverts commit 399b89730d
.
2018-09-04 21:31:27 +02:00
Benau
c59a11c85c
Skip waiting players in network item manager
2018-09-05 01:59:40 +08:00
Benau
0b19ee77fa
Use xmlDecode for server name
2018-09-05 01:52:51 +08:00
Benau
bb61c3425a
Show current players on server in server info dialog
2018-09-05 01:32:44 +08:00
Benau
24b3e09429
Disable message queue in server only
2018-09-04 14:45:39 +08:00
Benau
c8a42fd355
Show friends currently joined servers when polling user profile
2018-09-04 14:36:48 +08:00
Benau
83d49389d6
Use new syntax for server xml
2018-09-04 07:37:21 +08:00
Benau
a9ecebfbc8
Merge remote-tracking branch 'origin/master' into network_next
2018-09-04 07:26:02 +08:00
Deve
cdeb70dbf4
Some fixes for soccer setup screen
2018-09-04 00:33:34 +02:00
Benau
65d2c0fc28
Fix memory leak
2018-09-03 14:21:44 +08:00
hiker
3d34c2893b
Merge branch 'master' of github.com:supertuxkart/stk-code
2018-09-03 10:13:01 +10:00
hiker
03c003b68d
First fix for bubble bum support in networking (and some documentation
...
updates).
2018-09-03 10:08:33 +10:00
Benau
e2eed9de88
Allow to keep the server connection for clients when polling
2018-09-03 00:48:00 +08:00
Deve
a9793a10a0
Better fix for legacy pipeline
2018-09-01 23:15:05 +02:00
Benau
0878e59794
Fix #3421 with settings in user config (default off)
2018-09-01 14:57:38 +08:00
Benau
45e20e5a9a
Fix compiler warning
2018-09-01 09:39:30 +08:00
Benau
478f9a42a9
Use better english
2018-09-01 09:32:33 +08:00
Deve
26d9de4262
Fixed legacy pipeline
2018-08-31 22:33:55 +02:00
Deve
3a6cc08596
Make items in server selection list slightly bigger
2018-08-31 21:47:03 +02:00
Benau
b4d9b43a52
Use Nettle in linux if found
2018-09-01 01:05:22 +08:00
Benau
8873013911
Move base/decode64 to crypto class
2018-08-31 19:30:25 +08:00
Benau
7fe6023e4f
Use current team info to determine next player team
2018-08-31 19:00:14 +08:00
Benau
15853c4e32
Fix #3418
2018-08-31 17:40:26 +08:00
Benau
2199679ac2
Add support for joining server with ongoing game
2018-08-31 16:27:32 +08:00
Deve
8a579d9542
Ignore mouse clicks that were made directly on ribbon toolbar instead of child elements
2018-08-31 01:29:17 +02:00
Deve
399b89730d
Fixed android compilation
2018-08-31 00:50:44 +02:00
Liam Middlebrook
0c4852b05c
Add CLI option for setting random seed ( #3419 )
...
This will allow for deterministic runs with the profiling options.
2018-08-30 14:04:21 +02:00
Alayan-stk-2
ad68f5c5ac
Fix #3415
2018-08-30 05:37:07 +02:00
Alayan-stk-2
84359ad7da
Change highscore limit from 3 to 5 ( #3417 )
...
* Update to support 5 highscores
* Support 5 highscores in the UI
* Save up to 5 highscores instead of 3
2018-08-29 20:32:24 -04:00
Alayan-stk-2
fb43b173d6
Don't count ghost karts for highscores ( #3416 )
...
* Add function to get the number of non-ghost karts
* remove print
* Update function call to not count ghosts
* Don't count ghost karts for highscores
2018-08-29 19:50:38 -04:00
Alayan-stk-2
8249266338
Don't remove a level 2 skid bonus when getting a level 1 ( #3410 )
2018-08-29 18:33:37 -04:00
Alayan-stk-2
80555f4905
Display soccer timer after a goal ( #3411 )
...
* Use shouldDrawTimer overrides for tutorial and soccer worlds
* Add isActiveRacePhase
* Update shouldDrawTimer
* Remove duplicate check
It also allows displaying time in soccer after a goal
2018-08-29 18:33:01 -04:00
Benau
279e15f894
Fix attachment for ghost karts
2018-08-30 01:42:19 +08:00
Alayan-stk-2
fe4c918f3a
Fix #3403
2018-08-29 18:26:41 +02:00
Benau
4a29e46817
Remove warning for skinned mesh shader fallback
...
The shader will be unused anyway if there is no armature
2018-08-29 09:32:34 +08:00
Benau
809cce0c26
Fallback to default shader in case any shader is missing
2018-08-29 08:04:36 +08:00
Benau
8fc2bdcc3f
Show game started info in server screen with icon
2018-08-28 14:43:48 +08:00
Benau
ca9f66a8a8
Add explanation for smooth network body class
2018-08-28 10:17:59 +08:00
Alayan-stk-2
ea25d6b7d4
Fix #3404
2018-08-28 03:18:49 +02:00
Alayan-stk-2
740786c3f4
Multiple AI levels when view is hidden by a plunger ( #3407 )
...
* Disable AI item avoidance when blocked by a plunger
* Differentiate steering under plunger by item AI level
* Variable AI slowdown under plunger
2018-08-27 20:50:47 -04:00
Alayan-stk-2
8e17965465
Add default 1280x720 resolution in case irrlicht don't report it ( #3405 )
2018-08-27 19:31:21 -04:00
Alayan-stk-2
ed8b1fc185
Fix egg hunt finish time ( #3402 )
...
* Fix #3264
* Fix the fix
2018-08-27 18:44:40 -04:00
Alayan-stk-2
658e091ea3
Fix list headers not being aligned with cells ( #3400 )
2018-08-27 18:41:36 -04:00
Benau
54bac1bf83
Fix compiler warnings
2018-08-28 01:54:25 +08:00
Benau
61e37bc60f
Use zero for unused values in vote for FFA and CTF
2018-08-27 15:41:15 +08:00
Benau
cbaa06d952
Discard resend packet due to packet loss and adjust tolerance
2018-08-27 14:32:05 +08:00
Benau
732fd7a4c9
Don't show timer warning if voting timeout is not default
2018-08-27 13:49:52 +08:00
Benau
0f39add432
Convert time-related code in network to 64bit to avoid overflow
2018-08-27 13:49:11 +08:00
Benau
e5925a53b7
Use the network timer synchronizer to start game
2018-08-27 09:16:35 +08:00
auria.mg
817b576399
Fix crash when leaving ghost replay screen
2018-08-26 21:07:56 -04:00
auria.mg
418901b0de
Fix List widget rendering glitch
2018-08-26 21:07:02 -04:00
hiker
b3af6a0473
Fixed compiler warnings.
2018-08-27 08:53:58 +10:00
Deve
94400b12d6
Set multitouch device scale depending on actual screen size
2018-08-25 23:42:05 +02:00
Alayan-stk-2
4484bd961a
Add kart icons to the ghost replay list ( #3392 )
...
* Add a hide multiplayer replays checkbox
* Hide player number column ; add kart icon column
Enabling the icon display creates issues in the list widget layout, however.
* Fix formatting issue when an icon is displayed in only some cells
* Display "?" icon when kart model is unknown
This can happen with uninstalled addons, old replays with removed official karts, etc
* Add helper functions for icons in replay info dialog
* Add kart icons to replay info dialog
* Delete m_icon_bank in tearDown
2018-08-24 19:34:42 -04:00
Deve
38ed061d71
Fixed up/down button for inverted buttons
2018-08-25 00:45:37 +02:00
Deve
2beca69f25
Use slightly bigger buttons for multitouch gui by default
2018-08-25 00:21:46 +02:00
Deve
9d3c9f8f0d
Use smaller margin for up/down button
2018-08-25 00:11:05 +02:00
Deve
7738eb7899
Fixed compilation with older gcc
2018-08-24 22:59:46 +02:00
Deve
8b2a40e914
Fixed compilation
2018-08-24 03:27:13 +02:00
Deve
ad8b30b5d3
Recreate libchildprocess after apk upgrade also when device has non-typical internal data dir
2018-08-23 23:08:27 +02:00
Benau
35b167a824
Add network timer synchronizer
2018-08-23 16:11:05 +08:00
Benau
7b646dd2cb
Add timer synchronization to config and adjust for CTF
2018-08-23 15:07:40 +08:00
Benau
1992177205
Add network timer in main loop
2018-08-23 14:40:17 +08:00
Benau
9e500751a1
Add 64bit unsigned integer handling in network string
2018-08-23 14:35:18 +08:00
Benau
abc93beedf
Add c++11 chrono timer handling
2018-08-23 14:34:56 +08:00
Deve
7e7a23854f
Use standard data dir location if possible
2018-08-23 07:16:16 +02:00
Benau
8363dd42d3
Fix server owner name sorting
2018-08-23 09:01:11 +08:00
Benau
bc83e181ff
Remove more space before ?
2018-08-23 07:48:45 +08:00
Alayan-stk-2
024e17aa97
Display time-trial and egg hunt times up to the ms ( #3391 )
...
* Add function to get time display precision for current race mode
* Display time-trials times and highscores up to the ms
* Add comment
2018-08-22 19:36:21 -04:00
Deve
2ac8387761
Read data path from ApplicationInfo structure instead of hardcoded /data/data/...
2018-08-23 00:21:20 +02:00
Deve
9908b83f05
Fixed random kart in overworld
2018-08-22 21:10:28 +02:00
Deve
4515038302
Fixed compilation.
...
Now it's added as IRR_KEY_OEM_*
2018-08-21 22:27:20 +02:00
Deve
66548d68a9
Add some missing key names
2018-08-21 22:01:17 +02:00
Benau
d984409c6b
Remove --online and clarify global networking
2018-08-21 09:52:54 +08:00
Alayan-stk-2
dc43e3d5b2
Assign kart type to karts not having a valid one ( #3385 )
...
* Fix #3375
* Remove debug print
* Don't clear the list of kart types when changing resolution
2018-08-20 20:52:10 -04:00
Alayan-stk-2
8039a18aec
Fix #2776 ( #3386 )
2018-08-20 20:51:04 -04:00
Deve
07fd42ee3c
Add support for unicode characters for hardware keyboard on android
2018-08-20 23:34:51 +02:00
Benau
11bb2f3b0a
Always call kartHit
...
CTF map can be used without arena, and linear race mode will
override kartHit to do nothing anyway
2018-08-21 01:49:59 +08:00
Benau
73ac4f165b
Add indication for collected flags in GUI and map
2018-08-21 01:31:49 +08:00
Benau
1becb50cf8
Use reset function from powerup
2018-08-21 00:17:30 +08:00
Benau
7ad349a7ed
Implement auto flag returning after some timeout
2018-08-20 16:19:32 +08:00
Benau
f48491c279
Make sure all karts has the same position before go phase
2018-08-20 15:40:29 +08:00
Benau
2fa233179c
Remember num laps only in race mode
2018-08-20 15:14:08 +08:00
Benau
58c55a3b30
Don't recreate animation if exists already
2018-08-20 14:34:17 +08:00
Benau
552028e791
Put the kart back to its own flag base like rescue if direct hit in CTF
2018-08-20 14:33:17 +08:00
Benau
d885a87600
Remove unused code
2018-08-20 13:17:04 +08:00
Benau
124324a133
Clear powerups when rescue or direct hit in CTF
2018-08-20 13:03:20 +08:00
Benau
eca9ffb508
Scale the timer according to m_end_ticks told by server if necessary
2018-08-20 11:39:31 +08:00
Deve
1e0a4dc1aa
Delete old libchildprocess after apk upgrade
2018-08-19 21:51:15 +02:00
Benau
2307005159
Add end ticks handling to kart animation
2018-08-19 16:27:42 +08:00
Benau
7970d138e5
Fix flag returning
2018-08-19 14:30:00 +08:00
Alayan-stk-2
da2294d8ac
Fix #3306 ( #3384 )
2018-08-18 21:32:05 -04:00
Alayan-stk-2
926ad522ce
Don't trigger eventCallback when moving to the other arrow of a spinner ( #3380 )
2018-08-18 18:48:23 -04:00
Deve
dd7380f569
Fixed server_only compilation
2018-08-19 00:19:31 +02:00
Deve
3fe2340628
Use --no-sound for created server
2018-08-18 23:34:54 +02:00
Deve
9b9785e8ec
Add a possibility to disable sound in commandline
2018-08-18 23:34:54 +02:00
Benau
db36ee6df6
Handle controller the last to avoid slow PC sending actions too late
2018-08-18 12:49:31 +08:00
Benau
8b3772470a
End CTF early if no red / blue players connected
2018-08-18 12:08:12 +08:00
Deve
15a3be2dc1
Avoid invalid memory access in child process on Android
2018-08-17 23:40:39 +02:00
Deve
474a243890
Enable server creation on Android
2018-08-17 22:36:56 +02:00
Deve
d04ff88a5e
Fixed one more bug with SeparateProcess on Android
2018-08-17 22:36:39 +02:00
Benau
df69e7f6b6
Implement capture and return of flags
2018-08-18 01:05:00 +08:00
Benau
f54c1eb2b6
Merge remote-tracking branch 'origin/network-debugging'
2018-08-17 18:19:44 +08:00
Benau
8e9d42baf1
Fix end controller crash if using CTF with DriveGraph
2018-08-17 17:10:27 +08:00
Benau
afe5bc2a16
Fix isRaceOver in CTF
2018-08-17 16:46:56 +08:00
hiker
942718a442
Fixed physics differences based on setting the restitution in
...
case of a rewind based on the wrong (old) speed.
2018-08-17 17:46:27 +10:00
Benau
5104ffe0eb
Remove unneeded . for fetching ranking message
2018-08-17 14:08:42 +08:00
Benau
4831caac77
Tell user that player name is clickable in lobby
2018-08-17 13:45:38 +08:00
Benau
9905ebe09d
Add the required GUI code for CTF
2018-08-17 12:54:38 +08:00
Deve
d2a28f18f7
Fixed a crash with --no-graphics
2018-08-16 22:30:15 +02:00
Deve
80fd62c7d8
More fixes for global_android_app
2018-08-16 22:30:15 +02:00
Benau
a2af7127e7
Reset the font scale after drawing with it
2018-08-16 15:25:58 +08:00
Deve
ecc5aaf869
Fixed some crashes
2018-08-15 23:53:14 +02:00
Deve
b5e4275f87
Don't crash if separate process creation failed
2018-08-15 22:11:59 +02:00
Deve
c43975c03a
Don't kill everything if fork failed
2018-08-15 22:10:00 +02:00
Benau
73c264df94
Add support for CTF map
2018-08-16 02:09:44 +08:00
Benau
03728708cd
Rename soccer team to kart team for CTF
2018-08-15 15:13:55 +08:00
Deve
19038b4600
Make SeparateProcess working on Android
2018-08-14 00:14:34 +02:00
Benau
2efe3afa9f
Don't undo swatter destruction which is not necessary with local event
2018-08-13 13:05:29 +08:00
hiker
da11c0266d
Round the kart sizes to work around a bug that client and
...
server get (slightly) different kart sizes (which then affects
the physics).
2018-08-13 12:22:58 +10:00
hiker
514a169f5b
Round the kart sizes to work around a bug that client and
...
server get (slightly) different kart sizes (which then affects
the physics).
2018-08-13 12:19:19 +10:00
Benau
8aab1c0a69
Use Free-For-All for name instead
2018-08-13 09:00:37 +08:00
Alayan-stk-2
41a3a1056e
Improved spinner ( #3374 )
...
* Add spinner arrow focus with keyboard
* Improve keyboard navigation for spinners
* Only display active arrow if spinner is focused
2018-08-12 18:00:42 -04:00
Benau
64595a7b18
Initial work on FFA in network
2018-08-13 00:59:20 +08:00
Benau
c8c0e599db
Try to remember server creation option
2018-08-12 12:46:45 +08:00
Benau
6bdec3d01a
Add initial framework for FFA and CTF in network
2018-08-12 10:57:37 +08:00
Benau
b755d4d00b
Replay slipstream speed increase event locally in network
2018-08-10 18:26:13 +08:00
Benau
3e95feeb0b
Translate network message in main thread
2018-08-10 16:38:38 +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
b4d16799e8
Fix bubblegum torque rewind in network
2018-08-08 13:20:37 +08:00