Commit Graph

750 Commits

Author SHA1 Message Date
Benau
fcdec55bc1 Add tools for advanced IPv4 and IPv6 detection 2020-01-19 10:13:17 +08:00
Benau
7b3559ba69 Add IPv4 only stun for later usage 2020-01-19 01:00:48 +08:00
David Carlier
d97a1ce1ef removing compilation warning explicitly showing enum origin
to avoid confusions even though they have same values.
FreeBSD recognised as os in stats point of view.
2020-01-18 13:32:50 +00:00
Benau
44d2127800 Always use default name Player in mobile STK 2019-12-29 10:44:13 +08:00
Benau
4cb3383c4a Remove the unneeded manage memory option in request 2019-12-01 01:19:51 +08:00
Benau
13975cc5db Use std::shared_ptr for Request to avoid leaking 2019-11-30 16:01:31 +08:00
Benau
8799369066 Rename config name which is not compatible with 1.0 2019-11-28 16:44:01 +08:00
Alayan
658345c9ff Improve in-race chat
* Limit in-race chat to 3 lines instead of 5
* Add an option to disable in-race chat (while keeping lobby chat)
2019-11-07 22:25:04 +01:00
Alayan-stk-2
770d02b19b
Compute and display a story mode timer (#4121)
This is the result of my previous work, with a port of the timer version that was developed for a 1.0 mod. It has been used by several players so no major issue should exist, though UI and other elements may require adjustment to smooth some rough edges.

It features both a casual story mode timer storing the total time to complete the story mode (on by default) and a "speedrun" timer (off by default). The casual timer is paused whenever the player exits story mode, and supports play over multiple sessions. It is only displayed in the overworld and during challenges ; while the speedrun timer is permanently displayed.

Fix #2907
2019-11-01 13:25:27 +01:00
Benau
62d8a17152 Allow setting default config value inside stk-code
Share the restore code with android and iOS
2019-10-22 01:43:09 +08:00
Benau
1a7a8bdc14 Make karts powerup in gui an option 2019-10-18 12:03:36 +08:00
Luffah
aa9b2e7008 Add an option to put the minimap on the center of screen. (#4087)
* Add an option to put the minimap in the center of screen.
2019-10-17 21:03:46 +02:00
Deve
fc8f6a218e Add possibility to use half vsync 2019-09-28 01:43:26 +02:00
riso
0547e1e469 Add options to control the number of red/blue AI in soccer mode (#4063)
* Add options to control the number of red/blue AI in soccer mode (offline)

* fix a bug related to the upper bound when AI num=0 and trying to lower the number

* forgot to fix this

* remove the Balanced/Custom spinner

* improve the AI number spinner's behavior at lower bound

* Hide blue ai number setting if not soccer

* move getting red/blue players number to function TrackInfoScreen::getRedBluePlayerNumber()

* Tab to Space

* rename local variable m_xxx to num_xxx

* bug fix

* improve the default AI number: try the previously used one, if cannot use the previous, recalculate the AI number using balanced
2019-09-23 21:59:17 +08:00
Benau
48ba0aaf27 Rearrange skin structure for usage in addons folder 2019-09-21 11:33:11 +08:00
Benau
285e4e7be5 Remove stun servers not supporting ipv6 2019-08-19 00:12:28 +08:00
Benau
ef68f8377a Move creation of music information after downloading assets 2019-07-24 01:35:40 +08:00
Benau
5cc5780f28 Add download assets screen for mobile stk 2019-07-24 01:33:12 +08:00
Benau
5537959b19 Update hardware stats for iOS 2019-07-16 13:42:16 +08:00
Benau
4f1361b71f Fix encoding for default username 2019-06-29 09:38:36 +08:00
Benau
b3200937da Allow getting unicode environment variables in windows 2019-06-29 00:31:30 +08:00
Benau
cbf55b6ecf Make all ofstream creation utf8 path aware 2019-06-28 22:54:02 +08:00
Benau
c337976413 Use unicode windows build with enabling directinput support in mingw 2019-06-26 11:32:18 +08:00
Deve
4bd94f8ea6 Check hardware keyboard availability on wayland for better touch screen support 2019-06-16 22:48:06 +02:00
dumaosen
4f6e3793b8 fix #3923 && replace fonts size to font size (#3960)
* Replace fonts size into font size

* replace fonts size to font size

* Replace fonts size into font size

* #3923 && replace fonts size to font size

* delete min & max

* add font size spinner in loadedfromfile

* Delete wrap around

* Fix a bug

* Wider range in artist debug mode

* Better word
2019-06-16 00:33:57 +08:00
Benau
a56343b7e3 Clean up headers
Remove special RTL handling as it will be done when texting shaping
2019-06-15 13:52:28 +08:00
Benau
28cc2838a8 Add color emoji 2019-06-10 10:35:42 +08:00
Benau
acb9054dcb Use libraqm for text layout 2019-06-09 11:26:00 +08:00
Reiner Herrmann
07b6a16000 Fix several spelling/grammar errors (#3951)
found by lintian
2019-06-04 19:04:18 -04:00
Benau
1814472214 Improve screen keyboard handling for android (tv)
And remove some android ifdef for wayland on screen keyboard later
2019-05-21 12:43:20 +08:00
Deve
ec485bae4c Add font size to options 2019-05-16 22:16:36 +02:00
Deve
4883e4a585 Use floating point value for font scale 2019-05-13 23:46:28 +02:00
dumaosen
da4ac0a976 A better solution for those scaling issues in high or creepy resolutions gen II (#3910)
* Fix scaling issues

* Fonts size adjustion support

* Add fonts size support && Fix scaling issue

* Use fonts height

* Fix scaling issues

* Add my name onto CREDITS

* Fix scaling issues

* Fix scaling issues

* Use space instead of tab

* Use space instead of tab

* Fix bad scale

* Use font height
2019-05-13 23:39:43 +02:00
Benau
c38278fbc1 Add report_player network capabilities 2019-05-09 11:22:19 +08:00
David CARLIER
c905447a4b Enable a bit more stats for BSD systems. (#3833) 2019-04-10 19:01:35 -04: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
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
Daniel Butum
edd1280dbc Update config to use the new online servers & remove hardcoded certificate (#3703)
* Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on

* Fix new server SSL curl certificate by shipping CA bundle from https://curl.haxx.se/docs/caextract.html

* Remove debug log for curl host

* Move server config to stk_config.xml and Update news.xml redirects
2019-01-19 17:49:11 -05:00
Deve
a40b6e3758 Turn off multitouch race gui on non-android devices 2019-01-09 22:29:37 +01:00
Deve
15ffc98369 Detect if there is touch device available 2019-01-09 22:04:50 +01:00
Deve
8257d9eeee Handle touch events on wayland device 2019-01-08 22:31:37 +01:00
Deve
df0377b0fc Use higher sensitivity only on tablets 2019-01-07 22:37:02 +01:00
Mrxx99
f64a1e19b2 Using a default music if specified music of track was not found (#3667)
* added default music to stk_config and using it for not found music files

* only using default music if no music was found for a track
2019-01-01 09:54:15 -05:00
Deve
4a546f6802 Tweak touch device sensitivity after recent smooth turning 2018-12-26 01:20:10 +01:00
Deve
dba4d05852 Use shorter name for unnamed player 2018-12-25 01:18:17 +01:00
Kevin Zheng
9cec9c5cea Add option to disable light scattering (#3662)
* Fix typo

* Match name in irr_driver

* Add option to disable light scattering
2018-12-23 21:26:22 +01:00
Benau
31e14b14c6 Make explosive items timeout configurable in stk_config 2018-12-22 10:33:01 +08:00
Deve
ddbe42680d Add experimental support for system screen keyboard on android.
Disabled by default, needs screen_keyboard = 3 in config.xml
2018-12-01 00:43:17 +01:00
Alayan
cef9d81e9a Make default sound level less loud, fix #3553 2018-11-13 21:37:07 +01:00
Benau
022e0777bd Move smoothing variable to stk_config 2018-11-12 15:58:23 +08:00
Benau
87ce3931e5 Add maximum number of moveable objects in networking games 2018-11-09 21:17:38 +08:00
Deve
b7856d4991 Make sensitivity independent of deadzone for touch device 2018-11-03 00:06:17 +01:00
Deve
f05172b93f Use higher sensitivity for y axis on touch device 2018-11-02 22:10:41 +01:00
Deve
4ece4a6c00 Change param name to avoid conflict 2018-10-28 22:27:34 +01:00
Deve
a3eecaedc1 Give a little sense for story mode on android.
At least close big door until all available challenges are completed.
2018-10-28 21:55:48 +01:00
Sergii Pylypenko
64e0c6312e Added MULTITOUCH_CONTROLS_... enum for m_multitouch_controls config option 2018-10-19 16:41:38 +03:00
Sergii Pylypenko
9f923fdfaa Gyroscope option in config dialogs 2018-10-19 16:41:38 +03:00
Alayan
0766df61f2 Block the final challenge being accessed earlier than intended 2018-10-07 19:12:13 +02:00
Alayan
a4d81beda4 Store achievements in a goal tree ; update achievements progress entirely depending on config 2018-10-06 18:26:57 -04:00
Alayan
358c15b7f9 Make Arch Enemy use a generic counter, fix some wrong enum names 2018-10-06 18:26:57 -04:00
Alayan
edc683f720 Use a parametrizable function instead of multiple functions ; track more values 2018-10-06 18:26:57 -04:00
Alayan
19d594b465 Make Christoffel Columbus use per-track generic counters 2018-10-06 18:26:57 -04:00
Alayan
3427d21939 Fix #3483 2018-10-06 18:26:57 -04:00
Alayan
70eb11de4f Reimplement Gold Driver and Unstoppable by gathering data in general counters. Also fix #3487 2018-10-06 18:26:57 -04:00
Benau
689fab6bc8 Default lobby chat on 2018-09-28 16:04:18 +08:00
Alayan-stk-2
1c6890f77e Race UI improvements (#3465)
* Add a flag icon next to the lap counter

* Fix flag icon scaling across resolutions

* Add an option controlling minimap display

* Allow to display all the karts in the icon list if the minimap is hidden/on the right

* Remove useless scaling

* Fix minimap issues in splitscreen

* Align the spinners in the UI options

* Check for touch settings instead of a compile-time Android check

* Fix server-only compilation

* Make UI options checkboxes have the same size than checkboxes elsewhere

* Add translation cues for minimap options

* Don't look up icon paths every frame
2018-09-23 21:15:51 -04:00
Benau
56e9be326e Fix #3463 2018-09-23 15:26:24 +08:00
Alayan-stk-2
7bda2d097d
Clear last overworld position when switching profile 2018-09-17 17:01:59 +02:00
Alayan
03839b7cfe Move GUI files to categorized folders and update all references 2018-09-16 16:37:42 +02:00
Benau
c778a22a3a Use a correct xml syntax for map config 2018-09-11 20:57:19 +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
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
Benau
0878e59794 Fix #3421 with settings in user config (default off) 2018-09-01 14:57:38 +08:00
Benau
cbaa06d952 Discard resend packet due to packet loss and adjust tolerance 2018-08-27 14:32:05 +08:00
Deve
2beca69f25 Use slightly bigger buttons for multitouch gui by default 2018-08-25 00:21:46 +02:00
Benau
7b646dd2cb Add timer synchronization to config and adjust for CTF 2018-08-23 15:07:40 +08:00
Deve
9b9785e8ec Add a possibility to disable sound in commandline 2018-08-18 23:34:54 +02:00
Benau
6bdec3d01a Add initial framework for FFA and CTF in network 2018-08-12 10:57:37 +08:00
Benau
c58ac1b111 Use hardcoded values for m_max_frames
Some compiler fails to load default values of UserConfigParams
during static initialization
2018-08-05 13:14:22 +08:00
Benau
4d2e79da4c Implement auto-kick high ping player (default off) 2018-08-03 19:50:49 +08:00
Benau
2bb52df3c8 Split random ports (default off for server) configuration 2018-07-31 10:46:41 +08:00
Benau
5d3304b1c0 Fix compiler warnings 2018-07-27 22:40:03 +08:00
hiker
b12205332c Changed default value of m_network_steering_reduction to -1 to make
sure we test if this value is specified in stk_config.xml.
2018-07-26 17:52:29 +10:00
hiker
84c21c4af2 Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-07-26 17:47:25 +10:00
hiker
7cca534273 Added option to reduce steering of remote karts automatically each frame.
This can help in case of high latency connections and quick steering changes:
because of the high latency the steering is applied too long locally,
reducing in the other kart driving left/right way too much.
It's disabled for now (i.e. steering is multiplied by 1.0), but can be
enabled in stk_config.
2018-07-25 18:09:05 +10:00
hiker
b4a4de74bb Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-07-19 18:39:55 +10:00
Benau
252505a59f Merge remote-tracking branch 'origin/master' into local_state 2018-07-19 00:25:00 +08:00
Benau
9fbfe0588f Make network tracks screen usable for all game modes 2018-07-14 00:40:53 +08:00
Benau
0cee131b9f Add positional smoothing for physical objects in network 2018-07-13 20:27:37 +08:00
Deve
e0d262bfdd Allow to use screen keyboard even if hardware keyboard is available 2018-07-11 21:02:24 +02:00
Benau
21ccf587c3 Add --init-user for server owner to save player profile without gui 2018-07-07 12:32:06 +08:00
Benau
7174e4070c Use 8 maximum players in network games 2018-07-03 00:47:31 +08: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
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
2c0d47e511 Made some solver parameters configurable in stk-config. 2018-06-21 00:31:51 +10: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