Commit Graph

54578 Commits

Author SHA1 Message Date
glx22
e735370318 Change: [Script] A ScriptText with too many parameters is now a fatal error
It should never happen as adding/setting parameters already checks that anyway.
2023-02-17 21:28:14 +01:00
translators
2fdfc38da8 Update: Translations from eints
korean: 6 changes by telk5093
slovak: 8 changes by legitalk
catalan: 3 changes by J0anJosep
turkish: 5 changes by EndChapter
dutch: 1 change by Afoklala
portuguese (brazilian): 8 changes by ericandradex
polish: 2 changes by pAter-exe
2023-02-17 18:47:31 +00:00
Loïc Guilloux
4072dcff49 Fix #10486: [Script] Debug window requires AIs to be started before GS (#10487) 2023-02-17 12:24:51 +01:00
Jonathan G Rennison
5e398d9478 Add GUI/command support for >255 station types per station class 2023-02-16 22:33:34 +00:00
Loïc Guilloux
27cbb81df5 Fix: [Actions] vcpkg needs pkg-config to build zlib on macOS (#10488) 2023-02-16 22:35:51 +01:00
Jonathan G Rennison
50a48b1264 strgen: Allow inserting strings before as well as after
Use for viewport town label strings
2023-02-16 01:30:21 +00:00
Jonathan G Rennison
ea589fca6e strgen: Allow using another string as a default translation source 2023-02-16 00:56:21 +00:00
Jonathan G Rennison
2829a6fdf7 strgen: Split non-upstream translated strings into separate file 2023-02-16 00:35:44 +00:00
Jonathan G Rennison
2afd2967f2 strgen: Split non-upstream english.txt strings into separate file 2023-02-16 00:28:30 +00:00
Patric Stout
fdfcb09aa3 Fix #10131: actually cancel downloads when pressing cancel 2023-02-15 23:48:06 +01:00
Patric Stout
dea2dea881 Fix: reset content download progress to zero if falling back to TCP
Otherwise this chain of events can happen:
- You already have a (partial) file downloaded
- You start the download, and HTTP fails
- This resets the download progress to the current size of the file
- The TCP download starts at a very large value (UINT32_MAX - filesize)

It now resets to 0% done when any negative value is being given.
As added bonus, we no longer have to query how much was already
downloaded.
2023-02-15 23:48:06 +01:00
Patric Stout
1c17556f96 Codechange: replace instance of char * with std::string 2023-02-15 23:48:06 +01:00
Jonathan G Rennison
7e79c6b34b Set text colour for standard per-town actions 2023-02-15 22:41:13 +00:00
Jonathan G Rennison
3e7a625e0e Fix function locals shadowing parameters 2023-02-16 00:09:14 +00:00
Jonathan G Rennison
796924ec32 Change type of extended feature versions arrays 2023-02-15 23:49:40 +00:00
Jonathan G Rennison
633450f620 Add cast to clarify slicing of TimeSettings from _settings_client.gui 2023-02-15 23:25:23 +00:00
Jonathan G Rennison
8d6e57799c Fix various possible integer type conversion issues 2023-02-15 23:05:03 +00:00
Jonathan G Rennison
7c1d2bef0e Fix string parsing in scheduled dispatch window 2023-02-15 22:53:02 +00:00
Jonathan G Rennison
cff6f9ba00 Remove incorrect nullness check 2023-02-15 22:52:35 +00:00
Jonathan G Rennison
8d1563a1ed Various integer width type changes 2023-02-15 22:02:23 +00:00
Jonathan G Rennison
fbfbaa118a Remove use of gmtime and asctime 2023-02-15 22:02:23 +00:00
Jonathan G Rennison
844322c5a8 Wallclock format: Add form which accepts a std::time_t 2023-02-15 22:02:23 +00:00
Jonathan G Rennison
fef39b5797 Use backup/restore wrappers for various _cur_dpi changes 2023-02-15 22:02:23 +00:00
Jonathan G Rennison
85889143c7 Add mode to AutoRestoreBackup to not change backed up value 2023-02-15 22:02:23 +00:00
Patric Stout
0722bb3bf4 Change: try to detect the CA file/path for CURL (#10481)
The default is given compile-time, not run-time. So libcurl is
of no use to us.

Current list is kindly borrowed from
https://go.dev/src/crypto/x509/root_linux.go
2023-02-15 22:58:43 +01:00
Patric Stout
16352559f2 Change: release with (much) newer versions of dependencies for Generic Linux (#10484) 2023-02-15 22:18:23 +01:00
Patric Stout
ea90fa24f8 Codechange: move curl into a thread so simplify code (#10480)
With a thread, we can just run curl_easy_perform() and let CURL
and threads handle the blocking part.

With async solution there are too many things to keep track of,
and it makes "when to update the GUI" tricky. By using a thread
that all gets a lot simpler, as the game-thread and download-thread
run side-by-side.

This is similar to how the WinHttp backend already works.
2023-02-15 21:56:19 +01:00
Jonathan G Rennison
2b4b2f605d Github: Enable workflow_dispatch for codeql 2023-02-15 00:07:57 +00:00
translators
228b34c2bf Update: Translations from eints
english (au): 1 change by krysclarke
czech: 2 changes by jachymozo
finnish: 1 change by hpiirai
2023-02-14 18:46:38 +00:00
dP
fe2c8a1240 Codechange: Decouple INDUSTRY_CTRL into separate commands (#10475) 2023-02-14 11:29:11 +01:00
Jonathan G Rennison
a08ce897c0 Merge pull request #484 from telk5093/jgrpp
Update: Korean translation up to 85de07d
2023-02-13 23:58:43 +00:00
Jonathan G Rennison
a4bc4a91d7 TBTR: Fix inconsistent use of override keyword 2023-02-13 23:58:03 +00:00
Jonathan G Rennison
3b9015ef7a Fix successfully mapped properties in HandleAction0PropertyDefault 2023-02-13 23:49:53 +00:00
frosch
d7fcb420c4 Fix: compilation with libcurl from 2013. 2023-02-13 22:45:07 +01:00
frosch
274bcf8d80 Fix 64523709: rpm uses different package names than deb. 2023-02-13 22:45:07 +01:00
Jonathan G Rennison
c756b8de8e GRF: Add second success indicator mechanism for feature tests and ID mappings 2023-02-13 20:05:30 +00:00
translators
04847b1208 Update: Translations from eints
english (us): 1 change by 2TallTyler
portuguese: 2 changes by ppxppy
2023-02-13 18:47:38 +00:00
TELK
dbca0780e5 Update: Korean translation up to 85de07d 2023-02-13 21:55:22 +09:00
Jonathan G Rennison
85de07dee1 Documentation: Clarify that more_objects_per_grf must be tested for to enable it 2023-02-12 22:33:17 +00:00
Jonathan G Rennison
55146f459f Ensure that SortRailTypes sort is deterministic
Use rail type ID as tie-breaker
2023-02-12 22:18:23 +00:00
Jonathan G Rennison
64699d94c9 GRF: Only use extended bytes for object IDs if feature is tested for 2023-02-12 22:18:23 +00:00
Jonathan G Rennison
a85b3d7de7 GRF: Add generic mechanism to observe which features have been tested 2023-02-12 22:18:23 +00:00
Jonathan G Rennison
53835cef8e Documentation: Add documentation for more objects per GRF 2023-02-12 20:35:18 +00:00
Jonathan G Rennison
dceafaf2db GRF: Initial support for > 255 road stop specs per GRF
Add new variable for road stop info of nearby tiles
Bump roadstops version
2023-02-12 20:35:18 +00:00
Jonathan G Rennison
cfbd6406e1 Documentation: Fix NML documentation of variable nearby_tile_road_stop_id 2023-02-12 19:32:37 +00:00
Jonathan G Rennison
c592b38067 VarAction2: Combine object slope ^ foundation_change_tile_slope sequence 2023-02-12 19:32:37 +00:00
Jonathan G Rennison
76648b9dca Debug: Show name of extended variables referenced via variable 0x7B 2023-02-12 19:32:37 +00:00
translators
695ce0ab09 Update: Translations from eints
swedish: 3 changes by joeax910
italian: 1 change by Rivarossi
russian: 1 change by Ln-Wolf
ukrainian: 1 change by serg-bloim
latvian: 7 changes by lexuslatvia
2023-02-12 18:45:01 +00:00
Jonathan G Rennison
b539799c0a GRF: Fix c0c9c66f: ObjectMapSpriteGroup with missing object specs 2023-02-12 13:05:51 +00:00
Patric Stout
64523709bf Add: use https:// for content-service connections (#10448)
This requires the use of WinHTTP (for Windows) or libcurl (for all
others except Emscripten). Emscripten does not support http(s)
calls currently.

On Linux it requires ca-certificates to be installed, so the HTTPS
certificate can be validated. It is really likely this is installed
on any modern machine, as most connections these days are HTTPS.

(On MacOS and Windows the certificate store is filled by default)

Reminder: in case the http(s):// connection cannot be established,
OpenTTD falls back to a custom TCP-based connection to fetch the
content from the content-service. Emscripten will always do this.
2023-02-12 12:07:31 +01:00