Commit Graph
100 Commits
Author SHA1 Message Date
Loïc GuillouxandGitHub 29ce013eda Codechange: Pass avail(able) as reference instead of pointer since they are never nullptr (#12696) 2024-05-18 17:04:16 +02:00
Loïc GuillouxandGitHub 99b74c1064 Fix #12584: Improved error handling during tar scan (#12586) 2024-04-28 16:08:32 +02:00
Loïc GuillouxandGitHub c5ef47ee09 Codechange: [Script] Use std::unique_ptr for Company::ai_instance (#12544) 2024-04-20 16:58:46 +02:00
Loïc GuillouxandGitHub 243c6bead3 Fix #12415, 9c49a61, df400ef: Aircraft::tile is valid only for front vehicle (#12416) 2024-04-03 23:16:36 +02:00
Loïc GuillouxandGitHub 11aa3694fa Fix: [Win32] Force font mapper to only use TrueType fonts (#12406) 2024-04-01 22:59:13 +02:00
Loïc GuillouxandGitHub 71087bb6d3 Change: [CI] Always use latest stable Xcode (#12390) 2024-03-28 21:22:20 +01:00
Loïc GuillouxandGitHub bd7120bae4 Fix #12316, 268e512: Support for enum storage type in GenerateWidget.cmake (#12321) 2024-03-16 23:43:20 +01:00
Loïc GuillouxandGitHub 818a57c9af Codechange: Actually use LIT_NONE (#12314) 2024-03-16 16:41:58 +00:00
Loïc GuillouxandGitHub 100c043599 Codechange: [Win32] Disable assert message box when no GUI (#12291) 2024-03-13 15:49:24 +01:00
Loïc GuillouxandGitHub 82430a1086 Fix ab315d0: Don't show "insert order" errors in the console (#12245) 2024-03-09 16:33:44 +00:00
Loïc GuillouxandGitHub ef40c5e240 Fix #12225, 977aba7: [Script] Missing AI:ResetConfig support for running AI config (#12226) 2024-03-06 21:16:07 +01:00
Loïc GuillouxandGitHub 845b894fd8 Remove: [Script] random_deviation from setting description table (#12221) 2024-03-05 12:41:04 +01:00
Loïc GuillouxandGitHub 253ba0d354 Fix #12195: Reset cursor when no Object is selected (#12207) 2024-03-02 13:02:56 +01:00
Loïc GuillouxandGitHub b53d79b1d2 Codechange: Don't use NOT_REACHED() when catching unhandled thread exceptions (#12199) 2024-03-02 00:07:43 +01:00
Loïc GuillouxandGitHub fad77261ea Fix f6dd505: Missing savegame conversion for current_order (#12188) 2024-02-27 21:25:49 +01:00
Loïc GuillouxandGitHub f612bc6ee2 Fix bf4b6696: [Script] Broken ScriptText circular reference detection (#12187) 2024-02-27 18:16:21 +01:00
Loïc GuillouxandGitHub 25d1238907 Fix #12133: [Script] Don't crash when emergency saving (#12138) 2024-02-20 18:55:18 +01:00
Loïc GuillouxandGitHub 2d7ad9f717 Fix: [Script] Only show debug script window at the end of savegame loading (#12135) 2024-02-20 16:08:26 +00:00
Loïc GuillouxandGitHub 79374bc003 Fix #12074: Don't allow "part" command for dedicated servers (#12075) 2024-02-12 19:28:30 +00:00
Loïc GuillouxandGitHub 3ffa176870 Change: [Script] Store randomizers in savegame (#12063) 2024-02-12 01:22:57 +01:00
Loïc GuillouxandGitHub 8d9fa0ea89 Change: [Script] Use company randomizer when adding random deviation (#12065) 2024-02-11 18:58:41 +00:00
Loïc GuillouxandGitHub b84b68e959 Codechange: Rework regression output filtering (#12049) 2024-02-10 14:16:24 +01:00
Loïc GuillouxandGitHub 977aba73be Change: Store running AI config inside Company (#12003) 2024-02-09 22:55:49 +01:00
Loïc GuillouxandGitHub b68d263d5f Fix #12014: Remove water when area clearing ship depot (#12030) 2024-02-09 18:17:08 +01:00
Loïc GuillouxandGitHub 165f92c00b Fix #12041, 0c81579: Tarball extraction failing due to incorrect filename (#12044) 2024-02-09 17:25:56 +01:00
Loïc GuillouxandGitHub 82470f5c0d Codechange 80ebcc7: OptionMenuEntries prefix is OME not ONE (#12036) 2024-02-08 00:22:01 +00:00
Loïc GuillouxandGitHub b0f3417025 Add: [Script] ScriptTileList_StationCoverage (#12015) 2024-02-06 20:22:18 +01:00
Loïc GuillouxandGitHub 0858377e9e Fix: [Script] Don't kill GS misusing GSText (#12009) 2024-02-06 19:58:30 +01:00
Loïc GuillouxandGitHub 64611a7d12 Fix #11975, 27a920c: Running AIs also occupy a slot (#11976) 2024-02-04 13:19:35 +01:00
Loïc GuillouxandGitHub 75015cdad2 Fix 6f6f099: Signals exist only on plain rail tiles (#11977) 2024-02-04 10:39:06 +01:00
Loïc GuillouxandGitHub 27a920c4a8 Change: Allow to configure AI slots above max_no_competitors (#11961) 2024-02-03 09:42:16 +01:00
Loïc GuillouxandGitHub 4e26e33805 Change: Improve ScriptSettings windows (#11958) 2024-02-02 18:08:05 +00:00
Loïc GuillouxandGitHub 0e738dda88 Fix #11948: [Win32] Convert error messages to utf8 (#11951) 2024-02-02 16:30:23 +01:00
Loïc GuillouxandGitHub 3545decf2d Cleanup e28edf6945: [Script] Left over CONFIG_RANDOM reference in documentation (#11954) 2024-02-02 14:28:02 +00:00
Loïc GuillouxandGitHub a2f31c4e61 Change: Improve AIConfig window (#11949) 2024-02-02 14:34:49 +01:00
Loïc GuillouxandGitHub ab1407fc43 Fix: [Script] Apply random deviation only at script start (#11944) 2024-02-01 10:48:40 +01:00
Loïc GuillouxandGitHub 90084dc74d Codechange: ignore duplicate script messages in regression output (#11905) 2024-01-28 19:35:29 +01:00
Loïc GuillouxandGitHub 461d69a8f6 Fix #11907: Allow genders for time related {UNITS_XXX} (#11908) 2024-01-28 14:45:08 +01:00
Loïc GuillouxandGitHub 09b66751cf Fix b38d3c2208: missing water regions invalidation when building locks (#11879) 2024-01-25 22:18:26 +00:00
Loïc GuillouxandGitHub bf4b669628 Fix: [Script] Improve ScriptText validation (#11721)
The validation is now done in two steps:
 - First we get the list of parameters in the same order they used to be in encoded string
 - Then we validate the parameter types like FormatString would use them while encoding the string
2024-01-18 18:06:30 +01:00
Loïc GuillouxandGitHub b18e78e21d Change: Redesign script debug window (#11782) 2024-01-15 21:41:44 +01:00
Loïc GuillouxandGitHub 37610af0e4 Fix: Don't replace stripped characters with '?' in console (#11777) 2024-01-14 21:49:42 +00:00
Loïc GuillouxandGitHub 93ba6d6776 Fix: compilation without precompiled headers (#11770) 2024-01-14 13:27:03 +01:00
Loïc GuillouxandGitHub 54b57fbfeb Codechange: [Script] Use ScriptList::FillList() in more locations (#11762) 2024-01-12 21:19:08 +01:00
Loïc GuillouxandGitHub 03df70ce8a Fix #11752: [Win32] Wrong multi-line text layout due to incorrect partial run handling (#11761) 2024-01-12 19:40:08 +01:00
Loïc GuillouxandGitHub 28efa65e0c Revert a2edf52: SQOpsLimiter does a more precise job (#11754) 2024-01-12 17:04:43 +01:00
Loïc GuillouxandGitHub f7bd70baec Fix #11748: Incorrect clamping of negative service interval values (#11749) 2024-01-10 16:23:36 +01:00
Loïc GuillouxandGitHub c86d918921 Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
Loïc GuillouxandGitHub a672813bb0 Add: [Script] Optional filter parameter to ScriptVehicleList constructor (#11663) 2024-01-01 01:07:47 +01:00
Loïc GuillouxandGitHub f56a2d0f82 Fix: Missing invalidations on gui.ai_developer_tools change (#11664) 2024-01-01 00:43:10 +01:00
Loïc GuillouxandGitHub 6c5a4aa2cb Fix 2d3af14: Don't draw script log over panel borders (#11621) 2023-12-25 18:42:13 +01:00
Loïc GuillouxandGitHub af8b8c2cfc Fix 4a2038e301: fully restore script break filter on reopen (#11622) 2023-12-24 00:08:18 +00:00
Loïc GuillouxandGitHub 2d3af14181 Add: Horizontal scroll for script debug log (#11597) 2023-12-20 22:50:03 +01:00
Loïc GuillouxandGitHub 7726f8f245 Fix: [Script] Properly store the previous AsyncMode state (#11587) 2023-12-14 21:29:44 +00:00
Loïc GuillouxandGitHub 2a22063d77 Change: Remember the active game option window tab (#11547) 2023-12-06 14:44:38 +00:00
Loïc GuillouxandGitHub e901ce582d Add: [CI] Test grf generation (#11543) 2023-12-06 13:30:47 +01:00
Loïc GuillouxandGitHub e86eb25447 Change: [CMake] Use explicit list for regression (#11541) 2023-12-05 15:37:53 +01:00
Loïc GuillouxandGitHub db65d763f7 Change: [CMake] Use explicit list for grf source files (#11539) 2023-12-04 16:41:02 +00:00
Loïc GuillouxandGitHub 06b1bd3da4 Fix: [CI] Don't let SDL2 dependencies install too much stuff (#11537) 2023-12-04 13:55:52 +01:00
Loïc GuillouxandGitHub 375f24956c Fix: [CI] Installed (and cached) vcpkg packages are never upgraded in release-linux workflow (#11396)
Other workflows use a per image cache because images provide a fixed vcpkg clone.
2023-10-25 21:20:45 +02:00
Loïc GuillouxandGitHub ab805c4e9e Fix #11375, 7c37dcb: Use STRING2 when the passed string can have 2 parameters (#11376) 2023-10-16 17:49:44 +00:00
Loïc GuillouxandGitHub 0458c15060 Cleanup: [MacOS] Remove unneeded WITH_SDL checks (#11360) 2023-10-09 19:35:15 +02:00
Loïc GuillouxandGitHub b4ff06b6ef Fix: marked text was not updated during text deletion (#11293) 2023-09-13 20:59:34 +00:00
Loïc GuillouxandGitHub 220f93f552 Fix: IConsoleWindow:GetTextBoundingRect() is incorrect (#11292) 2023-09-13 16:07:55 +00:00
Loïc GuillouxandGitHub 21bd5fb991 Fix: [CI] preview flow can't install latest version of npm (#11265) 2023-09-06 16:29:34 +00:00
Loïc GuillouxandGitHub 8c9ecde964 Change: Remove autosave from settings window (#11218)
It is broken since 4f4810d and it's also in game options.
2023-08-20 14:33:02 +00:00
Loïc GuillouxandGitHub 2bf3c02fbf Fix: no fast forward in network was ensured only from GUI side (#11206) 2023-08-17 21:14:39 +02:00
Loïc GuillouxandGitHub 7ef55bdfb0 Cleanup: [CMake] don't add strgen.h twice (#11199) 2023-08-14 21:29:03 +00:00
Loïc GuillouxandGitHub 02be6ab6ba Fix #11179, a979d9c: Don't start more competitors than allowed (#11185) 2023-08-11 22:30:01 +02:00
Loïc GuillouxandGitHub ba95764f1c Fix 57717a2: VS2022 optimisation bug is fixed with MSVC 19.37 (#11172) 2023-08-09 21:43:34 +02:00
Loïc GuillouxandGitHub a979d9cdda Fix #11067, ed83c4b: Don't start competitors during map generation (#11069) 2023-07-29 12:31:33 +02:00
Loïc GuillouxandGitHub 119ac66c5c Fix: [Bootstrap] don't crash when failing to connect to content server (#11122) 2023-07-08 14:54:39 +00:00
Loïc GuillouxandGitHub c236ff356d Codechange: [Emscripten] enable WASM_BIGINT (#11118) 2023-07-07 20:32:33 +00:00
Loïc GuillouxandGitHub 5f2246eabf Fix 021c45c: [CMake] detection and use of nlohmann-json for emscripten (#11113) 2023-07-06 11:49:06 +02:00
Loïc GuillouxandGitHub 55e3dd9409 Cleanup 6298b96: Left-over function declaration (#11072) 2023-06-25 15:51:15 +00:00
Loïc GuillouxandGitHub 1d9bc23525 Fix #10868: [Script] Handle errors when loading savegame data on stack (#11029) 2023-06-18 12:03:59 +02:00
Loïc GuillouxandGitHub 1cd49bf5e5 Fix ca1e34c: [Script] Wrong value printed for {RAW_STRING} (#11011) 2023-06-14 22:07:11 +00:00
Loïc GuillouxandGitHub c880157518 Fix: Check max member count in squirrel classes (#10883)
Manual cherry-pick from https://github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9b0bd98
2023-05-27 16:09:21 +00:00
Loïc GuillouxandGitHub db3b086a52 Fix #10867, 8b93e45: Squirrel compile error exception type changed (#10869) 2023-05-25 12:46:27 +02:00
Loïc GuillouxandGitHub a6c5b4ce4b Cleanup: Remove BOM/ZWNBSP in the middle of .editorconfig (#10860) 2023-05-23 12:49:47 +02:00
Loïc GuillouxandGitHub 8d2a0a7da4 Fix #10846: [Squirrel] Ensure sqvector size does not overflow (#10848) 2023-05-20 14:43:22 +00:00
Loïc GuillouxandGitHub 7e74232e56 Change: [Actions] Use -fuse-ld=lld and Ninja for MinGW (#10785)
And some miscellaneous things while touching the file
2023-05-11 18:07:29 +00:00
Loïc GuillouxandGitHub 3c59b8e9ec Fix: disable "redundant move" warnings for GCC (#10803)
GCC warns about redundant std::move while clang warns when they are missing, so we silence the less harmful one
2023-05-10 17:35:11 +00:00
Loïc GuillouxandGitHub 31d1a323ef Fix #10771, 3901ef9: GRFConfig.filename is now a std::string (#10774) 2023-05-06 14:58:47 +00:00
Loïc GuillouxandGitHub e4c511d403 Fix #10578: Allow to select any version of AI/GS from GUI (#10604) 2023-04-07 19:33:07 +02:00
Loïc GuillouxandGitHub 9642e87bc8 Fix: [Script] Access to enum/consts defined outside of main.nut (#10573) 2023-03-25 23:07:47 +01:00
Loïc GuillouxandGitHub 2a2e51765a Cleanup 54db96b: Left-over function declaration (#10528) 2023-03-01 23:53:50 +01:00
Loïc GuillouxandGitHub 4072dcff49 Fix #10486: [Script] Debug window requires AIs to be started before GS (#10487) 2023-02-17 12:24:51 +01:00
Loïc GuillouxandGitHub 27cbb81df5 Fix: [Actions] vcpkg needs pkg-config to build zlib on macOS (#10488) 2023-02-16 22:35:51 +01:00
Loïc GuillouxandGitHub a2c8168924 Fix #10465: Delay closing of network join progress window (#10466) 2023-02-11 12:32:45 +01:00
Loïc GuillouxandGitHub 6b99b6672e Fix: [Script] ScriptBase::Rand() return value was between -MIN(int32) and MAX(int32) (#10443)
Also ensure the parameters for ScriptBase::RandRange() and ScriptBase::Chance() are in [0-MAX(uint32)] range
2023-02-10 19:55:59 +01:00
Loïc GuillouxandGitHub 07b40c02fe Fix #10361, fe30f66: Don't try to give saved data to a dead script (#10433) 2023-01-29 22:27:29 +00:00
Loïc GuillouxandGitHub 8f350c9ae6 Fix: [Actions] preview_build failure due to git upgrade (#10323) 2023-01-05 23:25:45 +00:00
Loïc GuillouxandGitHub 91ca088065 Fix #10304, fe30f66: [Scripts] Don't start GS in intro (#10305) 2023-01-02 02:13:16 +01:00
Loïc GuillouxandGitHub fe30f66570 Fix #9720: Delay start of GS/AI to after loading of savegame (#9745) 2022-12-28 05:02:26 +01:00
Loïc GuillouxandGitHub c179c10048 Fix #10263, ccefa76: [scripts] restore tile validation for commands (#10269) 2022-12-21 02:37:59 +01:00
Loïc GuillouxandGitHub c50fabb574 Fix #10208: allow to use specific underlay for road/tram tunnels (#10233) 2022-12-17 09:01:47 -05:00
Loïc GuillouxandGitHub 4f9893cc98 Fix 55a1171: Restore skipping of "colour" character (#10244) 2022-12-16 01:56:25 +01:00
Loïc GuillouxandGitHub 2848483810 Fix #10206: Disable scripts in intro game (#10241) 2022-12-15 21:43:07 +01:00
Loïc GuillouxandGitHub 13d2d11fa8 Fix #10216: Initialise RoadStop caches before using them and don't try to teleport crashed vehicles (#10217) 2022-12-05 12:46:46 +01:00