Patric Stout
9e7b7a477e
Codechange: improve desync documentation ( #12521 )
2024-04-20 15:13:59 +02:00
Patric Stout
257704ae9a
Codechange: skip all commands of the past during desync replay ( #12520 )
2024-04-20 15:13:59 +02:00
Patric Stout
cd6946c5a8
Codechange: use infinite-fast-forward when rerunning command-log ( #12519 )
2024-04-20 15:13:59 +02:00
Patric Stout
5b0b7ba354
Codechange: record cache warnings with a "warning" prefix ( #12518 )
2024-04-20 15:13:59 +02:00
Rubidium
6a9517a4e6
Fix: do not use lengthof() for non C-style arrays
2024-04-09 23:46:14 +02:00
Rubidium
48f316246c
Fix: server shutdown and newgame packets should be stable
...
The server sends shutdown and newgame (reboot) packets to any connected client.
This can be useful, so you can tell clients that are trying to join that the
server is restarting. However, that means that packets can be sent before a
version check has been done.
So, these packets should be in the stable packet range instead of the one that
is unstable and guarded by a version check.
2024-04-02 00:02:53 +02:00
Rubidium
3b614d0650
Fix: inconsistent check for client authorized status
2024-04-01 00:20:07 +02:00
Rubidium
ffb795e52f
Fix: do not send chat to clients that have not authorized yet
2024-04-01 00:20:07 +02:00
Rubidium
5212229f94
Fix: crash to desktop when attempting to join a company while not joined (yet)
2024-03-23 15:32:22 +01:00
Patric Stout
e8b314afc2
Add: track savegame size to report with survey ( #12304 )
2024-03-16 14:37:57 +01:00
Patric Stout
0f65bef04d
Fix #12196 : disable "select upgrade" button when filtering
2024-03-11 20:40:57 +01:00
Patric Stout
34dda9e81a
Fix #12196 : always show selected content, even when filtering
2024-03-11 20:40:57 +01:00
Jonathan G Rennison
7457a0b7a6
Fix cb588d8d: Ordering of command per tick limit and pause mode filtering ( #12126 )
...
The command per tick limit should be applied after the pause mode filter
2024-03-11 20:40:57 +01:00
Damian Laczak
49c3215751
Fix #10983 : [AdminPort] Correct order of messages
2024-02-18 15:11:00 +01:00
Patric Stout
15c14a896f
Fix: survey-time seconds for clients was calculated wrong ( #12078 )
2024-02-12 21:56:27 +00:00
Patric Stout
fa6f270f23
Codefix 36e1b32: remove left-over debug statement ( #12068 )
2024-02-11 21:36:37 +00:00
Patric Stout
5b3bfe4c4c
Fix fdfcb09: for content service, fallback to TCP downloads when HTTP stalls ( #12056 )
2024-02-11 20:24:28 +01:00
Patric Stout
d02b1547f6
Remove: setting "no_http_content_downloads" ( #12058 )
...
As we now use HTTPS, it is very likely this will work on most systems.
For systems that do have HTTPS blocked, it will fail instantly,
and it will fallback to TCP anyway. That makes this setting no longer
very useful.
2024-02-11 14:48:12 +00:00
Rubidium
3534214dfc
Codechange: use reference instead of pointer for CommandPacket
2024-02-05 18:57:58 +01:00
Rubidium
cb588d8d3f
Codechange: use std::vector for the incoming command queue
2024-02-05 18:57:58 +01:00
Rubidium
b3aa8a9c35
Codechange: use std::vector for the outgoing command "queues"
2024-02-05 18:57:58 +01:00
Rubidium
63708609fb
Codechange: define the size of the PacketType enumerations
2024-02-05 17:10:35 +01:00
Rubidium
6f77c2eaa2
Codechange: use size_t for the MTU limits and remove default parameter
2024-02-05 17:10:35 +01:00
Rubidium
72a44b0df6
Codechange: use references for handling received TCP packets
2024-02-05 16:30:49 +01:00
Rubidium
794f12dc24
Codechange: cascade through SendNeedGame/CompanyPassword functions, instead of duplicating logic for determining whether to call these functions
2024-02-05 16:30:49 +01:00
Rubidium
8add0bf8ec
Codechange: use references for game info serialization
2024-02-05 16:30:49 +01:00
Rubidium
84623d2123
Codechange: use references for UDP packets
2024-02-05 16:30:49 +01:00
Rubidium
031a9d4e26
Codechange: use std::unique_ptr for the Packets created to send via TCP
2024-02-05 16:30:49 +01:00
Rubidium
36e1b32ccf
Codechange: use std::deque of std::unique_ptr to queue packets
2024-02-05 16:30:49 +01:00
Rubidium
c77a45ed86
Codechange: use std::unique_ptr for receiving network packets
2024-02-05 16:30:49 +01:00
Rubidium
4b372b6050
Codechange: use std::shared_ptr to manage saveload filters instead of manually trying to avoid double frees
2024-02-03 21:38:33 +01:00
frosch
b1718478c8
Codechange: Replace old non-standard attributes with C++17/20 standard attributes.
2024-02-02 22:29:28 +01:00
Loïc Guilloux
0e738dda88
Fix #11948 : [Win32] Convert error messages to utf8 ( #11951 )
2024-02-02 16:30:23 +01:00
Patric Stout
363e251a10
Change: make -dnet=9 give traces of the details of the network protocol ( #11931 )
2024-01-31 19:36:41 +01:00
Patric Stout
3e6ed6f44a
Fix #9697 : don't extend the Online Players window too wide on opening ( #11936 )
2024-01-31 19:03:07 +01:00
Jonathan G Rennison
1df7b21ee3
Fix #11889 : ConstructWindow not called from SurveyResultTextfileWindow constructor ( #11903 )
2024-01-27 19:44:10 +00:00
Peter Nelson
fef0bfcfd3
Fix: TextfileWindow called virtual methods before constructor completed. ( #11889 )
...
SetStringParameters() was called during widget tree init in the constructor.
Calls within a constructor cannot call the derived classes methods. This would result in invalid data being passed to the string system, which could then crash.
2024-01-27 14:45:37 +00:00
Patric Stout
89520f5665
Add: show in multiplayer the amount of hours a game has been unpaused ( #11886 )
2024-01-27 12:35:09 +01:00
Patric Stout
2bbc95cac3
Fix: update server as offline when unexpected disconnect during refresh ( #11891 )
2024-01-27 11:23:25 +01:00
Tyler Trahan
28716548d2
Feature: Setting to automatically restart server based on hours played ( #11142 )
2024-01-26 10:25:25 -05:00
Patric Stout
d3b2a576de
Feature: Plugin framework for Social Integration with Steam, Discord, GOG, etc ( #11628 )
2024-01-22 19:22:45 +00:00
Tyler Trahan
735abfe111
Codechange: Split dates and timers into Economy and Calendar time ( #10700 )
2024-01-22 09:04:34 -05:00
Rubidium
2d77f09a81
Codechange: use std::shared_ptr for vector of TCPConnecters
2024-01-20 23:03:44 +01:00
Rubidium
2d77cf9c80
Codechange: replace StrStartsWith/StrEndsWith with starts_with and ends_with
2024-01-17 19:48:22 +01:00
Rubidium
aa5ba5bd7f
Codechange: allow certain enumeration to be added
...
Otherwise C++20 doesn't like it.
2024-01-16 23:30:23 +01:00
Peter Nelson
7737aa6640
Codechange: Make all NWidgetPart arrays constexpr.
...
This ensures that the arrays are not created at runtime and prevents using non-constexpr values.
2024-01-16 21:57:05 +00:00
Patric Stout
6550682b49
Codechange: minor bits and pieces related to fmt::format() ( #11806 )
...
- Don't make run-time formatting what can be done compile-time.
- Be explicit about run-time formatting.
- Fix datetime printing.
2024-01-16 21:10:34 +00:00
Patric Stout
0b7410d979
Codechange: compile-time validate the string format of IConsolePrint ( #11804 )
...
This means we can no longer use runtime picking what string to use.
2024-01-16 21:04:35 +00:00
Rubidium
564441e822
Remove: Debug redirect over network
...
It does not work for dedicated servers because upon starting the process to
resolve the address to redirect to gets killed. Also with all the async going
on in the network code, the debug redirection will start very late in the
process.
2024-01-14 22:14:31 +01:00
Loïc Guilloux
93ba6d6776
Fix: compilation without precompiled headers ( #11770 )
2024-01-14 13:27:03 +01:00