Commit Graph

15803 Commits

Author SHA1 Message Date
Deve
d9550fbb28 Stop accepting events when we are waiting for destroy event on android.
This is to make sure that there is no eg. multiple events in single loop, so that user could open another screen before window is actually closed.
2019-04-04 22:24:14 +02:00
Benau
b03af63ab7 Fix android exit crash 2019-04-04 07:59:32 +08:00
Deve
f25bdc5653 Revert "Always use current window size."
This reverts commit f974c9200c.
2019-04-03 23:06:13 +02:00
Benau
091e9e0f1e Add the possibility to disable track voting in server 2019-04-03 14:30:46 +08:00
Benau
e0de1318d2 Allow disable chat in server side 2019-04-03 12:38:40 +08:00
Benau
05fad217e3 Make a better class for kart animation creation exception 2019-04-03 10:25:38 +08:00
Benau
d990bcb2a1 Remove hacks for lod completely which breaks legacy pipeline
We will do the proper lod optimization after this release
2019-04-02 08:50:07 +08:00
Benau
625a192cda Add the possibility to disable texture compression for material 2019-04-02 01:59:22 +08:00
Benau
ecc0007b29 Fix crash if top screen is networking lobby --connect-now 2019-03-29 14:38:38 +08:00
hiker
1994fba62b Implemented the work around for #3671 (GP aborted if an unlock screen
is shown between races).
2019-03-29 08:23:05 +11:00
Benau
9148c5f768 Rename config directory name to config-0.10 2019-03-26 15:28:53 +08:00
Benau
0fe162a54a Update server version 2019-03-26 02:51:45 +08:00
Benau
7aa025e13c Merge remote-tracking branch 'origin/master' into network 2019-03-26 02:48:14 +08:00
Benau
d8edde34da Add document for compressed network values 2019-03-26 02:44:52 +08:00
Benau
194d7d6419 Update document for check trigger 2019-03-26 01:55:43 +08:00
Benau
66d6785dda Add document for joinToMainTrack 2019-03-26 01:38:15 +08:00
Benau
7719cd1d81 Don't reset spectate camera in network
So look back camera won't be reset when explosion animation ends
2019-03-26 01:25:10 +08:00
Benau
420ac45ba1 Remove unneeded static_cast 2019-03-26 00:25:06 +08:00
Benau
220f5e6e4c Use hex values for 24bit compression 2019-03-25 23:46:18 +08:00
Benau
4670c9a5e9 Avoid sqrt of length() 2019-03-25 21:13:48 +08:00
Benau
8a00d1e1ab Move referee frame setting to its own class 2019-03-25 16:37:44 +08:00
Benau
3a90e828a4 Remove kart animation when goal phase
This will make sure all karts will be back to own goal at the same
time without animation playing
2019-03-25 16:19:29 +08:00
Benau
16507510a3 Compress current rotation in cannon animation 2019-03-25 12:17:40 +08:00
Benau
84a2b8af84 Reserve code for extra spectators 2019-03-25 11:22:45 +08:00
Benau
042af60417 Clean up icon handling, split spectate icon out of waiting 2019-03-25 01:53:48 +08:00
Benau
366ee5caad Determine live join by server 2019-03-24 16:44:03 +08:00
Benau
6e97c976f5 Undo lean angle applied by parent using matrix instead of setting height
This fixes adiumy rear wheel leaving ground when turning
2019-03-23 11:47:15 +08:00
Benau
2aede6fa25 Make check cannon rewind-friendly without using previous position 2019-03-17 12:35:42 +08:00
Benau
5b4ae2a59f Reset m_state after timeout is reset in setup 2019-03-17 01:27:07 +08:00
Deve
4e7526a712 Replace dot/comma position in screen keyboard 2019-03-14 21:18:30 +01:00
Benau
92ffcb22bc Fix compiler warnings 2019-03-14 14:03:41 +08:00
Benau
96d4ffb1f3 Handle server owner status in player list update 2019-03-14 11:48:47 +08:00
Benau
324d72cc6f Make the iv send in network order 2019-03-14 11:38:58 +08:00
Benau
8446ce9a5c Reserve 1 channel for game replay transfer 2019-03-14 10:39:01 +08:00
Benau
b3ca809da4 Remove unneeded objs at once after the for loop 2019-03-13 16:40:21 +08:00
Benau
9cbd2abe5d Make flag deactivated time configurable 2019-03-13 15:42:59 +08:00
Alayan
0085151bc4 Fix #3750 2019-03-13 03:35:42 +01:00
Deve
bd51bb1633 Fixed compiler warnings 2019-03-12 21:40:17 +01:00
samuncle
2619162ba9 remove stupid code 2019-03-12 00:47:04 +01:00
samuncle
73149481ef disable lod smooth. Need to be fixed for multiplayer, after release 2019-03-12 00:43:15 +01:00
Benau
92460d8823 Clear old events in server 2019-03-11 09:27:43 +08:00
QwertyChouskie
2f1151edbe Disable internet-dependent checkboxes rather than hiding them (#3798)
This feels much more natural.
2019-03-09 20:58:13 +01:00
Benau
809e15031c Allow telling client the banned reason for the future 2019-03-09 15:56:34 +08:00
Benau
4c2fe75cb4 Add network capabilities to handle same server version changes 2019-03-09 15:14:13 +08:00
Benau
cb8525492a Preload more particles xml to avoid ingame hang 2019-03-08 20:46:31 +08:00
Benau
b04a00b9d1 Clamp m_fraction_of_line -1 and 1 correctly 2019-03-08 15:23:17 +08:00
Benau
e848835d19 Fix stutter bomb animation 2019-03-07 16:07:09 +08:00
Benau
4821b66520 Save 1 less digit for compressed origin from btTransform 2019-03-07 15:53:56 +08:00
Benau
ffca0c0d36 Improve goal when live join is happening 2019-03-07 15:40:25 +08:00
Benau
09a62747f6 Further improve kart state saving 2019-03-06 14:03:39 +08:00
Deve
0a4211af82 Fixed compilation 2019-03-06 06:26:18 +01:00
Benau
0af220538a Remove physics only invisible objects after joining 2019-03-06 06:26:18 +01:00
Benau
7fb3aa7570 Combine static physical objects with irrlicht GeometryCreator 2019-03-06 06:26:18 +01:00
samuncle
c543c02b21 Smooth the transition to avoid a gap 2019-03-05 22:24:37 +01:00
Deve
b193592ccf Better font height on very high resolutions 2019-03-05 22:00:00 +01:00
Deve
c1f49c3d07 Fixed rank number on high resolutions 2019-03-05 22:00:00 +01:00
samuncle
bb42d72bc5 Remove commented code + disable autolodcompute for RC 2019-03-05 20:59:39 +01:00
Benau
2e007d7883 Fix #3737 2019-03-05 15:38:35 +08:00
samuncle
187b28613b Decrease the amount of time we compute the culling distance for lod + add the complexity factor of the map into account 2019-03-05 00:23:55 +01:00
samuncle
cb2719e1fb Rename volume to area (to reflect the change in the algo 2019-03-04 21:29:54 +01:00
Benau
38568484fb Restore physical object moved by 3d animation even the first rewind ticks 2019-03-04 09:54:22 +08:00
samuncle
37475e8d2f Cosmetic update to the debug view 2019-03-04 00:36:18 +01:00
samuncle
a5ec4f5026 Add complexity option 2019-03-04 00:25:02 +01:00
samuncle
00042ac82e Update to add scale into account to compute the LoD level 2019-03-03 17:43:59 +01:00
Benau
475cfa4cdb Try to use CompressNetworkBody for karts 2019-03-04 00:03:43 +08:00
Benau
891abf6360 Fix swatter crash 2019-03-03 16:38:02 +08:00
Benau
45a55a4c9b Reserve code for country from players 2019-03-03 16:37:35 +08:00
Benau
bb84677e35 Use utf32 for unicode emoji later 2019-03-03 15:10:34 +08:00
Benau
e01393bff7 Reserve code for future auto checkline correction 2019-03-03 14:11:29 +08:00
Benau
3cee39aff7 Remove physics only invisible objects after joining 2019-03-03 01:54:43 +08:00
Benau
1193c588b4 Try to fix parachute flicking by saving initial speed in state 2019-03-03 01:38:50 +08:00
Benau
9b8b0b7c1e Redo swatter for network 2019-03-02 16:41:32 +08:00
samuncle
eead6f6005 Experimental changes 2019-03-01 21:39:55 +01:00
Benau
17fd68e662 Handle graphical models of attachment in updateGraphics 2019-03-01 18:46:46 +08:00
samuncle
837a9ee3ea Fun test with size 2019-02-28 23:25:41 +01:00
samuncle
99901516e9 Update the LoD with a small offset to try to minimize the impact of popping. The solution would be a fade in/out but it will come in the future 2019-02-28 22:24:47 +01:00
Benau
c57af03b62 Handle graphical effects if different attachment is set in updateGraphics 2019-02-28 16:19:15 +08:00
Benau
a9ac35e1d5 Update xyz of basketball before calling getXYZ 2019-02-28 13:56:25 +08:00
Benau
22fd9a18a3 Allow restoring gravity for bowling 2019-02-28 12:28:42 +08:00
samuncle
171ccf2adc remove useless print 2019-02-28 01:35:14 +01:00
samuncle
d284b52368 Update the auto lod level generator 2019-02-28 01:01:44 +01:00
samuncle
bf6e81b97d Add base to compute lod level automatically 2019-02-28 00:23:27 +01:00
Benau
f57572ea15 Set gravity from newly updated material first 2019-02-28 01:18:54 +08:00
Benau
eb8544b785 Use rewinder with binary uid 2019-02-27 11:31:49 +08:00
Benau
9b4b283c4c Add check trigger to replace item trigger 2019-02-27 11:31:19 +08:00
Benau
fe4a9c5406 Allow clients to get list of initial items from server 2019-02-27 11:07:08 +08:00
Benau
224c694dfd Combine static physical objects with irrlicht GeometryCreator 2019-02-27 11:06:18 +08:00
Benau
813934bdba Improve kart state saving 2019-02-27 11:05:47 +08:00
Benau
c00cf66b26 Add compression for max speed 2019-02-27 11:05:22 +08:00
Benau
cb1769acea Use btTransform and normal compression if possible 2019-02-27 11:04:49 +08:00
Benau
733794bb3e Clean up compressing for network body 2019-02-27 10:43:42 +08:00
Deve
0b6e153111 Avoid a crash in ribbon widget 2019-02-26 22:25:37 +01:00
Deve
cdff36f840 Update active widgets on resolutions list when ribbon widget is scrolled 2019-02-26 22:10:20 +01:00
Deve
ebde419566 Avoid using invalid resolutions in fullscreen mode 2019-02-26 16:56:07 +01:00
Alayan
48c1cf880d Fix inconsistency between comment and code 2019-02-26 16:09:52 +01:00
Alayan
bf1d8241e3 Improve AI nitro usage 2019-02-26 16:05:08 +01:00
Benau
d00472f868 Add cannon for flyable in network 2019-02-26 16:07:22 +08:00
Benau
cfbbc7c6dd Clean up the firing of flyables in network 2019-02-26 15:55:24 +08:00
Deve
88c2ce7ee5 Use system LD_LIBRARY_PATH when opening web browser 2019-02-25 22:07:38 +01:00
QwertyChouskie
1892b827d9 Improve warning (#3770)
* Improve warning

It's more clear now that this is non-fatal.

* Update main.cpp
2019-02-24 21:25:15 -05:00
Benau
eaddd9c1a3 Fix #3718 2019-02-21 10:11:34 +08:00
Mrxx99
b55ec5cfb8 FFA for offline play (#3708)
* added widget to track info screen to select between Free-For-All and Three Strikes Battle

* setting AI to zero and setting time target to 2 minutes for testing

* setting also hitcapture limit to prevent immediate race end

* setting m_count_down_reached_zero to false in ffa reset to allow starting a new race after the previous ended through time limit

* integrated necessary adjustments and made possible to set time target

* removed unused spinner variable

* use translations

* centralized is_soccer and show_ffa_spinner variables

* setting target value spinner visible/invisible depending on ffa game type

* using no hittarget and fix for this in free for all mode

* set use_highscores to false for FFA

* disabling AI for FFA

* disable hit limit icon for FFA if no hit limit is set ( = 0 )

* changed icon and name of three strikes battle to only battle in race setup screen

* set AI to Battle AI if mode is FFA

* added config parameters for FFA

* added define which can be used to enable FFA AI

* resolved merge conflict

* moved ffa options higher

* fix for setting ai karts

* improved m_show_ffa_spinner and m_is_soccer

* removed code for disabling widgets for FFA AI

* implemented requested changes
2019-02-20 19:18:02 -05:00
Benau
1ac4a5b93d Redo all kart animation classes for network
Disable cannon for flyable for now
2019-02-15 17:29:19 +08:00
Benau
64442e5ac9 Allow place item and rescue on driveable objects 2019-02-14 13:19:53 +08:00
Deve
69cea1eabf Minor fix for previous commit 2019-02-13 21:46:46 +01:00
Deve
415bfb491e Allow to change cursor position in text box when screen keyboard is active 2019-02-13 21:34:31 +01:00
Deve
71c5c3988c Show cursor in edit box when screen keyboard is opened 2019-02-13 21:00:17 +01:00
Benau
05b1dcb803 Use utf-8 server name in create request after stk-addons change 2019-02-12 11:54:03 +08:00
Benau
6fb8dd512b Add translation comments for trusted word 2019-02-12 11:52:25 +08:00
Benau
1855d4262b Revert "Use xmlEncode for proper unicode handling"
This reverts commit c5cf87071c.

We can remove utf8_encode in stk_addons api so it will handle
utf8 characters in db correctly, as utf8_encode is only needed for
a string encoded in ISO-8859-1.

Fix #3670
2019-02-12 11:26:20 +08:00
hiker
ca23678ac9 Fixed comment. 2019-02-11 17:08:22 +11:00
Alayan
a9d81d2aa5 Fix #3740 and #3172 2019-02-10 17:28:28 +01:00
Benau
9ad2823f4d Don't crash if login without --init-user 2019-02-10 14:20:42 +08:00
Benau
061d4becc5 Don't load world twice when clicking spectate button quick 2019-02-10 11:06:12 +08:00
hiker
8ebb0b2e9a For now rename 'official' servers to 'trusted' (#3745)
* For now rename 'official' servers to 'truster', to make it more
obvious what the STK team does not operate those servers.

* Removed left-over-unfinished-duplicated comment :)
2019-02-09 14:50:42 +08:00
Deve
548a946de8 Clear message that chat is disabled when user enabled it in options 2019-02-09 01:38:23 +01:00
hiker
94d6a6f785 Fixed incorrect message about where to find internet option. 2019-02-09 01:05:08 +01:00
hiker
968e0be3e4 Make sure that HW reports stays disabled when internet is being
enabled in the options (GDPR compliance - opt-in required from
user to send data). Made chat-message visible/invisible same
as hw-statistics.
2019-02-09 01:05:08 +01:00
hiker
507d5d89e9 Fix display of 'hw stats' when internet gets enabled in the option:
it was actually showing the state of the 'chat', not 'hw-stats'.
2019-02-09 01:05:08 +01:00
hiker
f387d95627 Don't default to 'opt-in' for hardware statistics (GDPR requirement).
This means atm that even connection to internet is disabled as default :(
2019-02-09 01:05:08 +01:00
Deve
f974c9200c Always use current window size.
It's used by irrlicht and in some other places in STK anyway. And if window size was changed for some reason, then ugly but functional window is better than non-functional at all.
2019-02-09 00:27:57 +01:00
Benau
6cb64a558e Fix #3531
Which missed update new instance data size for transformation as
changed in 4464d4cd55
2019-02-07 13:22:36 +08:00
Benau
60c9d97d27 Fix #3744 2019-02-06 15:50:40 +08:00
Benau
37f622ac0e Fix #3650 2019-02-06 01:04:09 +08:00
Benau
0bc4201bf9 Fix message queue progress bar for floating point changed 2019-02-05 16:01:51 +08:00
Deve
f86b2657c1 Don't use margins for screen keyboard, because it's easy to misclick space 2019-02-04 23:42:48 +01:00
Deve
388594270f Use common function for changing spectator target 2019-02-04 23:01:20 +01:00
Benau
5bc8002caa Close debug menu whenever screen is changed 2019-02-04 16:13:14 +08:00
QwertyChouskie
538911b25f Fix versioning for master branch (#3738) 2019-02-03 12:02:55 +01:00
Benau
7b186c2b04 Allow left right switch for CTF which has position rank 2019-02-03 16:10:57 +08:00
Benau
2eed6254f4 Don't show chosen team color for spectator 2019-02-03 15:39:48 +08:00
Benau
f048e19bb1 Make spectator helper message to show when server is ready 2019-02-03 15:27:01 +08:00
Benau
9757209da6 Hide lap messages when live-joining happening 2019-02-03 15:19:02 +08:00
Benau
2bd2dc19ca Remove spectate helper message if finishing the race last 2019-02-03 13:45:51 +08:00
Benau
11dafe470c Update possible invalid camera again 2019-02-03 11:21:33 +08:00
Benau
18c9ef6adc Use kart position for left right switching 2019-02-03 01:46:27 +08:00
Benau
52cddf6208 Hightlight current spectating kart in race gui 2019-02-02 16:06:41 +08:00
Benau
0cb12ea124 Allow changing spectate target with analog input 2019-02-02 01:20:52 +08:00
Benau
75bc25d2ff Fix spectator if network splitscreen is enabled 2019-02-01 22:12:53 +08:00
Benau
df2731bc2c Fix possible crash 2019-02-01 19:02:50 +08:00
Benau
6ac98c0324 Only synchronize one kart each time for check line
This remove the duplicated new lap message
2019-02-01 17:50:09 +08:00
Benau
52ad702d13 Add fast forward in rewind to avoid android hangs 2019-02-01 17:22:41 +08:00
Deve
ae92d63492 Add 2px margin to screen keyboard buttons to fix navigation with gamepad 2019-01-31 22:16:06 +01:00
Deve
575f44a043 Fixed a crash after closing screen keyboard when dialog window is active.
Also fixed using screen keyboard with gamepad when it's used in dialog window.
2019-01-31 22:00:39 +01:00
Benau
a05889fa6a Show spectator icon for player list 2019-01-31 11:05:44 +08:00
Benau
1669368176 Fix 00:00:00 finished time in network caused by disconnection 2019-01-29 14:08:57 +08:00
Benau
552179180e Show disconnected message when result screen is showing 2019-01-29 13:06:17 +08:00
Deve
16fb7cefb4 Document some environment variables 2019-01-28 22:46:35 +01:00
Alayan
0a40861be7 Improve spectating info message 2019-01-27 19:11:41 +01:00
Benau
efb6b9e2cf Allow changing camera target after finishing network race 2019-01-28 01:17:26 +08:00