Commit Graph

18816 Commits

Author SHA1 Message Date
Benau
2cedd6729a Try to connect anyway even without aloha message
This should allow clients with strong firewall to connect to
server not behind any firewall
2018-03-16 01:14:43 +08:00
Benau
f78276a930 Show player vote in message queue for immediate effect 2018-03-16 00:54:02 +08:00
Benau
bc56c07c51 Hide the chatbox when disable chatting 2018-03-15 14:02:29 +08:00
Benau
e715140835 Change for new server code in stk-addons 2018-03-15 12:37:02 +08:00
Benau
f7b3950cd4 Fix cursor stop working after pressing enter 2018-03-15 10:39:02 +08:00
auria.mg
2e981b33e7 Patch textbox crash 2018-03-14 21:26:44 -04:00
Deve
38a4e06a6c Avoid window size to be larger than available space.
When window size is equal to screen resolution and user selected windowed mode, we can assume that he wants maximized window.
2018-03-14 22:47:31 +01:00
Deve
9c3998be0e Fixed server_only compilation 2018-03-14 21:43:28 +01:00
Deve
4f51c9c915 One more valgrind fix 2018-03-14 21:02:25 +01:00
Deve
a3c0254f81 Better fix for login screen 2018-03-14 20:49:05 +01:00
Benau
532bd88062 Avoid possible packet loss
The connect to peer done by server will auto terminate if same peer
from same port has connected already
2018-03-15 00:41:01 +08:00
Benau
60d822da50 Only broadcast aloha to self if address is really localhost 2018-03-15 00:34:59 +08:00
Benau
1b8d4c80dc Initial work to port network profile to use weak_ptr 2018-03-14 15:48:02 +08:00
Benau
ea8ba470d6 Use (s) for server 2018-03-14 10:07:54 +08:00
Benau
2e0558323b Merge branch 'origin/network_improvements' 2018-03-14 10:05:07 +08:00
auria.mg
f3d1995033 Change assert into warning, it's definitely not fatal 2018-03-13 21:39:27 -04:00
Deve
6621196266 Don't close STK after login screen 2018-03-13 21:22:21 +01:00
Benau
5699a86586 Allow toggling the display of only private server 2018-03-14 00:50:19 +08:00
Benau
901c5eabec Allow specifying server password in dialog 2018-03-13 16:04:59 +08:00
hiker
d3a60356c9 Merge remote-tracking branch 'origin/fix-timestep' into game_protocol.
Started to use ticks instead of time floating point values in networking.
2018-03-13 18:37:12 +11:00
Benau
c73536263f Add password protected and version info to server 2018-03-13 14:39:20 +08:00
Benau
fe0adadd16 Simplify linebreak 2018-03-13 12:52:04 +08:00
Benau
a33a9a040b Allow text box widget to listen enter event 2018-03-13 09:00:44 +08:00
Deve
952b973b89 Valgrind complains about changing variable after closeScreen 2018-03-12 23:03:15 +01:00
Deve
fd14c7fa91 Update android tv banner.
Thanks to Mr.XX99 for his work.
2018-03-12 21:49:09 +01:00
Benau
b72cf4f406 Don't assert peer size for client as the listening thread is delayed-start 2018-03-13 01:03:02 +08:00
Benau
8330919a3a Add missing stkgui for lobby chat 2018-03-13 00:51:08 +08:00
Benau
0f6dbbb4a0 Add default-disabled lobby chatting 2018-03-12 16:51:30 +08:00
Benau
25da48634d Add kick ban in network console configurable in config.xml 2018-03-12 13:59:38 +08:00
Benau
bb3bcdca3e Change int to int map to uint32_t for server ban list 2018-03-12 12:39:16 +08:00
Benau
93c910f18b Use a uniform translated timed out string 2018-03-12 11:38:37 +08:00
Benau
d527c0eee2 Use icon to identify server owner, online and offline players
Also hide the friend request button for offline players
2018-03-12 11:28:13 +08:00
Benau
ffd6e84759 Stop threads of texture loading before destroying shader manager 2018-03-12 09:21:30 +08:00
auria.mg
48f2aa3da4 Fix bubblegum flashing, fixes #3133 2018-03-11 19:35:59 -04:00
auria.mg
361e03c375 Fix more keyboard issues, fixes #3131 2018-03-11 19:06:48 -04:00
auria.mg
2087a72cf3 Improve keyboard-only navgation. See #3131 2018-03-11 18:50:55 -04:00
Benau
95208967cf Add kicking player for server owner 2018-03-12 02:05:38 +08:00
Benau
3bbec8aa27 Initial work on lobby redesign 2018-03-12 00:18:53 +08:00
Benau
4dea283965 Only run enet command in listening thread
And use sleep instead of timeout for new code
2018-03-10 14:56:32 +08:00
Benau
c50cdd9d68 Only start listening after trying connect to a server 2018-03-10 13:20:18 +08:00
Benau
98e3d82921 Add kicking players and properly recieve disconnect events 2018-03-10 12:34:33 +08:00
Benau
22ca1cb751 Avoid sending to wrong peer in case of disconnection 2018-03-10 01:07:23 +08:00
Benau
8e1cc2b0c8 Make latency protocol work with weak pointer of STKPeer 2018-03-10 01:00:10 +08:00
Benau
5600d01b2c Use shared_ptr of STKPeer if needed 2018-03-09 23:54:13 +08:00
Benau
e439e68b60 Move protocol start after creation of STKHost 2018-03-09 23:01:20 +08:00
Benau
5756fd5f48 Use a mutex to make only 1 enet_peer_send happening
In reality we need mutex to protect enet_host_service, but it leads
to seriously increased locked time
2018-03-09 23:00:47 +08:00
Benau
d538dfc7e6 Header cleanup 2018-03-09 21:17:31 +08:00
Benau
9c46b70042 Use peerExists to check for establishment of connection 2018-03-09 19:05:25 +08:00
Benau
dd2e32a953 Implement a thread-safe list of STKPeer
Block re-connect from the same ip and port and clean up add or
remove of peers
2018-03-09 18:33:19 +08:00
Benau
db68756fd6 Use mutex to prevent joining of players when start selection 2018-03-09 09:22:13 +08:00