Commit Graph

630 Commits (jgrpp)

Author SHA1 Message Date
Jonathan G Rennison 88d7be1d99 Change FormatArrayAsHex to be uppercase by default
To match upstream
6 hours ago
Jonathan G Rennison 18a42664fc Merge branch 'master' into jgrpp
Remove 'byte' typedef
2 weeks ago
Jonathan G Rennison 459e13fc5a Remove unused command: CMD_SET_VEHICLE_UNIT_NUMBER 2 months ago
Jonathan G Rennison 0484ba700f Allow manually removing/setting train speed restriction
From vehicle details window
See: #674
2 months ago
Jonathan G Rennison 5047b2ef4e Plans: Allow taking ownership of unowned plans
Except for unauthed network clients
3 months ago
Jonathan G Rennison a20f862cd0 Plans: Adjust command flags 3 months ago
Jonathan G Rennison 838b166726 Merge branch 'master' into jgrpp
# Conflicts:
#	src/cheat_gui.cpp
#	src/command.cpp
#	src/command_func.h
#	src/company_base.h
#	src/debug.cpp
#	src/debug.h
#	src/economy.cpp
#	src/engine_type.h
#	src/graph_gui.cpp
#	src/misc_cmd.cpp
#	src/misc_cmd.h
#	src/network/core/os_abstraction.cpp
#	src/openttd.cpp
#	src/saveload/saveload.cpp
#	src/saveload/saveload.h
#	src/settings_type.h
#	src/ship_cmd.cpp
#	src/stdafx.h
#	src/tests/bitmath_func.cpp
#	src/town_cmd.cpp
#	src/town_gui.cpp
3 months ago
Jonathan G Rennison 7ce06e22b8 Split date types into calendar and economy dates
See: 735abfe1
3 months ago
merni-ns 96651b5ada
Cleanup: Use standard comment format (#11929) 4 months ago
merni-ns 5a88027a19
Feature: Infinite money mode (#11902) 4 months ago
Jonathan G Rennison 6c329871f1 Scheduled dispatch: Add per dispatch slot flags field
Add flag for slot re-use
4 months ago
Tyler Trahan 735abfe111
Codechange: Split dates and timers into Economy and Calendar time (#10700) 4 months ago
Jonathan G Rennison 5b7689a0aa Scheduled dispatch: Add flag to re-use all dispatch slots 4 months ago
Jonathan G Rennison 97e6f3062e Adding of _t to (u)int types, and WChar to char32_t
See: eaae0bb5e
4 months ago
Jonathan G Rennison f034714559 Use StringBuilder for GetString/GetStringWithArgs, as per upstream
Update dependent code as required
5 months ago
Charles Pigott 1e60734660
Fix: Compilation with DEBUG_DUMP_COMMANDS enabled (#11607) 5 months ago
Jonathan G Rennison ffff696b4e Merge branch 'master' into jgrpp
# Conflicts:
#	src/build_vehicle_gui.cpp
#	src/cheat_gui.cpp
#	src/console_cmds.cpp
#	src/crashlog.cpp
#	src/date_gui.cpp
#	src/engine.cpp
#	src/group_cmd.cpp
#	src/landscape.cpp
#	src/network/network_gui.cpp
#	src/newgrf.cpp
#	src/saveload/afterload.cpp
#	src/script/api/script_date.cpp
#	src/sl/oldloader_sl.cpp
#	src/station_cmd.cpp
#	src/station_cmd.h
#	src/strings.cpp
#	src/subsidy_gui.cpp
#	src/survey.cpp
#	src/timer/timer_game_calendar.cpp
#	src/timer/timer_game_calendar.h
5 months ago
Jonathan G Rennison 540cec2af5 Add setting to allow auto-fill signal dragging to skip over stations/waypoints 5 months ago
Jonathan G Rennison bf7dfc595f Command: Fix desync debug command exec/fail log messages
Include full aux data, do not truncate, escape command text
5 months ago
Jonathan G Rennison 4689113553 Debug: De-duplicate formatting of hex dates for desync/random logging 5 months ago
Jonathan G Rennison 03e0ec8276 Strong typedef: Use strong typedefs for date, date tick, minutes types
Add delta types
Adjust/add type conversion functions
Add various utility methods on types
Remove the various minute macros
Fix some minute conversion inconsistencies
5 months ago
Jonathan G Rennison c76a5ed638 Timetable: Remove timetable_start_subticks, use DateTicksScaled 5 months ago
Patric Stout 19bbcb180d Change: base autosaves intervals on real time (instead of game time) (#10655)
There are two fundamental issues with autosave:
- When fast-forwarding, it saves way too often
- When paused, it never saves

Both makes no sense. Autosaves are meant to prevent you from
accidentally losing your work. The emphasis on "your" work.

To solve both issues, the autosave now works on real time. You
can select every 10 / 30 / 60 / 120 minutes, which are similar to
what the setting was in game-months.

When you pause, autosaving will stop. Unless you make any change
to the game; then it will continue to make autosaves, even so
the game is paused. Unpausing / pausing resets this mechanism.

(cherry picked from commit f5fad88723)
6 months ago
Jonathan G Rennison 59ea48c541 Scheduled dispatch: Allow moving dispatch schedules in schedule list 8 months ago
Jonathan G Rennison 338dff09a7 Add chicken bit to allow test/exec mismatch for all commands 8 months ago
Jonathan G Rennison e1606934ae Ignore test/exec cmd mismatch in CmdDepotMassAutoReplace
Due to use of CmdTemplateReplaceVehicle
8 months ago
frosch b6c8f301be Codechange: Silence warnings about intentionally unused parameters. 8 months ago
Michael Lutz 4c6ed36b6a Add: [Script] Game script control of industry production level.
(cherry picked from commit 1c56991213)
9 months ago
mrmbernardi 74c0678015 Feature: [GS] Goal destination can be updated (#10817)
(cherry picked from commit 35ef6c1723)
9 months ago
Jonathan G Rennison 82c9d18b5b Network: Update state checksum with DoCommandP costs 9 months ago
Jonathan G Rennison 3b8d8aeb6a TBTR: Adjust config buttons/text in main window
Clarify refit and depot options
Adjust layout
9 months ago
Jonathan G Rennison 2b44d3302e CommandCost: Change AllocSummaryMessage to std::string SummaryMessage 9 months ago
Jonathan G Rennison 8c1a3c26af Use ring buffers for network _chatmsg_list and _command_queue 9 months ago
Jonathan G Rennison 731a79b224 Fix truncation of dump_command_log console command output 10 months ago
Rubidium eaae0bb5e7 Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
10 months ago
Jonathan G Rennison f3116eedcf Support 64 bit values in the give money and change bank balance commands
See: #535
12 months ago
Jonathan G Rennison 3151751eda Allow using the money cheat with values greater than 32 bits
See: #536
12 months ago
Jonathan G Rennison 13183d3f13 Add command result flag for whether SetResultData was called
Use for tracerestrict validation result fail offset
12 months ago
Jonathan G Rennison bac8f032da Re-add company shares 12 months ago
Jonathan G Rennison 7aef72b946 Add static_assert for length of _command_proc_table 12 months ago
Jonathan G Rennison 02fe4af934 Merge branch 'master' into jgrpp
# Conflicts:
#	.github/workflows/release-windows.yml
#	src/company_base.h
#	src/company_cmd.cpp
#	src/company_gui.cpp
#	src/console_cmds.cpp
#	src/economy.cpp
#	src/economy_cmd.h
#	src/fios.h
#	src/goal.cpp
#	src/group_gui.cpp
#	src/network/core/config.h
#	src/network/network_admin.cpp
#	src/newgrf_config.cpp
#	src/os/windows/win32.cpp
#	src/saveload/afterload.cpp
#	src/saveload/company_sl.cpp
#	src/saveload/saveload.cpp
#	src/saveload/saveload_error.hpp
#	src/settings_gui.cpp
#	src/ship_cmd.cpp
#	src/stdafx.h
#	src/story.cpp
#	src/story_base.h
#	src/string.cpp
#	src/table/settings/economy_settings.ini
#	src/tests/CMakeLists.txt
#	src/tests/math_func.cpp
12 months ago
Jonathan G Rennison cd9930542d GS: Add GSAsyncMode(bool) class to set async mode of script DoCommands
In asynchronous mode, don't wait for result of executed command,
just fire-and-forget, and return estimated cost/result
1 year ago
Jonathan G Rennison a25e674f06 Add "command" debug category to log commands 1 year ago
Peter Nelson 56085be9bd Codechange: Move includes for common STL headers to stdafx. 1 year ago
Jonathan G Rennison 8e2319ad68 Scheduled dispatch: Add button to adjust departure slots 1 year ago
Jonathan G Rennison 8f92668e22 Scheduled dispatch: Add menu item to append schedules from another vehicle 1 year ago
Jonathan G Rennison 62ecad1b63 Scheduled dispatch: Add menu item to duplicate current schedule 1 year ago
Jonathan G Rennison 31f476220d Allow converting track by individual track pieces instead of whole tiles
Ctrl-click on convert button

See: #509
1 year ago
Jonathan G Rennison 211c1ba61d Allow naming scheduled dispatch schedules 1 year ago
Patric Stout f5fad88723
Change: base autosaves intervals on real time (instead of game time) (#10655)
There are two fundamental issues with autosave:
- When fast-forwarding, it saves way too often
- When paused, it never saves

Both makes no sense. Autosaves are meant to prevent you from
accidentally losing your work. The emphasis on "your" work.

To solve both issues, the autosave now works on real time. You
can select every 10 / 30 / 60 / 120 minutes, which are similar to
what the setting was in game-months.

When you pause, autosaving will stop. Unless you make any change
to the game; then it will continue to make autosaves, even so
the game is paused. Unpausing / pausing resets this mechanism.
1 year ago