Niels Martin Hansen
e0561dbded
Fix #8713 : Change OTTD2FS and FS2OTTD to return string objects instead of static buffers
4 years ago
Jonathan G Rennison
f4e29071be
Merge tag '1.11.0-beta2' into jgrpp
...
# Conflicts:
# .github/workflows/ci-build.yml
# .github/workflows/release.yml
# CMakeLists.txt
# src/blitter/32bpp_optimized.cpp
# src/debug.cpp
# src/gfx.cpp
# src/gfx_func.h
# src/lang/czech.txt
# src/lang/english.txt
# src/lang/italian.txt
# src/lang/swedish.txt
# src/lang/ukrainian.txt
# src/network/network_server.cpp
# src/os/windows/crashlog_win.cpp
# src/os/windows/win32.cpp
# src/pathfinder/follow_track.hpp
# src/screenshot.cpp
# src/settings_type.h
# src/spritecache.cpp
# src/vehicle_gui.cpp
# src/video/sdl2_v.cpp
# src/video/video_driver.cpp
# src/video/video_driver.hpp
# src/video/win32_v.cpp
4 years ago
Patric Stout
535fdb5c89
Codechange: remove _realtime_tick variable
...
(cherry picked from commit fe451b8dc7
)
# Conflicts:
# src/debug.cpp
# src/debug.h
# src/video/video_driver.cpp
4 years ago
Patric Stout
fe451b8dc7
Codechange: remove _realtime_tick variable
4 years ago
Niels Martin Hansen
b427ddce88
Codechange: Switch to explicit wide strings
4 years ago
Jonathan G Rennison
b7ddd486cf
Merge branch 'master' into jgrpp
...
# Conflicts:
# cmake/CompileFlags.cmake
# src/aircraft_cmd.cpp
# src/blitter/32bpp_anim.cpp
# src/cargopacket.cpp
# src/cheat_gui.cpp
# src/company_cmd.cpp
# src/company_gui.cpp
# src/core/pool_func.hpp
# src/date.cpp
# src/economy.cpp
# src/error_gui.cpp
# src/ground_vehicle.cpp
# src/ground_vehicle.hpp
# src/group_gui.cpp
# src/industry_cmd.cpp
# src/lang/dutch.txt
# src/lang/french.txt
# src/lang/german.txt
# src/linkgraph/linkgraph_gui.cpp
# src/linkgraph/mcf.cpp
# src/network/network_content.cpp
# src/network/network_server.cpp
# src/network/network_udp.cpp
# src/newgrf_engine.cpp
# src/newgrf_station.cpp
# src/order_cmd.cpp
# src/order_gui.cpp
# src/pathfinder/follow_track.hpp
# src/pathfinder/yapf/yapf_common.hpp
# src/saveload/saveload.cpp
# src/settings_gui.cpp
# src/station_cmd.cpp
# src/station_kdtree.h
# src/string_func.h
# src/table/settings.ini
# src/tgp.cpp
# src/timetable_cmd.cpp
# src/timetable_gui.cpp
# src/toolbar_gui.cpp
# src/town_cmd.cpp
# src/train_cmd.cpp
# src/train_gui.cpp
# src/tree_gui.cpp
# src/tunnelbridge_cmd.cpp
# src/vehicle.cpp
# src/vehicle_gui.cpp
# src/video/sdl2_v.cpp
# src/video/sdl_v.cpp
# src/video/win32_v.cpp
# src/viewport.cpp
# src/viewport_sprite_sorter_sse4.cpp
# src/window.cpp
4 years ago
Jonathan G Rennison
aacb70d371
Debug: Extend random debug logging to also include state checksum updates
4 years ago
Jonathan G Rennison
eef6ad7b2a
Crash log: Save config file in new crash save chunk
4 years ago
Jonathan G Rennison
cbdd9f84d8
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/console_gui.cpp
# src/lang/korean.txt
# src/video/sdl2_v.cpp
# src/video/sdl2_v.h
# src/window.cpp
# src/window_gui.h
5 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
Jonathan G Rennison
be0ea1b03f
Increase desync msg ring buffer size, improve DumpDesyncMsgLog format
5 years ago
Jonathan G Rennison
ec2291fdb4
Store some desync messages in a ring buffer, append to log on desync
5 years ago
Jonathan G Rennison
5a9790a196
Store crash/desync logs in crash/desync savegame
...
Add console command to dump loaded debug log
5 years ago
Jonathan G Rennison
674732cd68
Merge: Codechange: Use null pointer literal instead of the NULL macro
6 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
Jonathan G Rennison
ba34ec7ade
Merge branch 'master' into jgrpp
...
Replace build and refit, and group collapse implementations
Fix template creation build and refit
# Conflicts:
# Makefile.bundle.in
# config.lib
# src/animated_tile.cpp
# src/blitter/32bpp_anim.hpp
# src/blitter/32bpp_base.hpp
# src/blitter/8bpp_base.hpp
# src/blitter/null.hpp
# src/build_vehicle_gui.cpp
# src/command.cpp
# src/command_func.h
# src/console_gui.cpp
# src/core/smallstack_type.hpp
# src/date.cpp
# src/debug.cpp
# src/genworld_gui.cpp
# src/ground_vehicle.hpp
# src/group_gui.cpp
# src/lang/korean.txt
# src/linkgraph/linkgraph_gui.h
# src/main_gui.cpp
# src/misc_gui.cpp
# src/network/core/game.h
# src/network/core/packet.cpp
# src/network/core/udp.cpp
# src/network/core/udp.h
# src/network/network_content.cpp
# src/network/network_type.h
# src/network/network_udp.cpp
# src/newgrf_house.h
# src/openttd.cpp
# src/order_cmd.cpp
# src/order_gui.cpp
# src/os/unix/crashlog_unix.cpp
# src/os/windows/crashlog_win.cpp
# src/osk_gui.cpp
# src/pathfinder/opf/opf_ship.cpp
# src/rail_cmd.cpp
# src/rail_gui.cpp
# src/saveload/saveload.cpp
# src/settings.cpp
# src/settings_gui.cpp
# src/smallmap_gui.h
# src/station_base.h
# src/station_cmd.cpp
# src/table/gameopt_settings.ini
# src/table/newgrf_debug_data.h
# src/table/settings.ini
# src/timetable_gui.cpp
# src/toolbar_gui.cpp
# src/train_gui.cpp
# src/vehicle.cpp
# src/vehicle_gui.cpp
# src/vehiclelist.cpp
# src/viewport.cpp
# src/widgets/dropdown.cpp
# src/window_gui.h
6 years ago
Patric Stout
e3c639a09f
Remove: ENABLE_NETWORK switch
...
This switch has been a pain for years. Often disabling broke
compilation, as no developer compiles OpenTTD without, neither do
any of our official binaries.
Additionaly, it has grown so hugely in our codebase, that it
clearly shows that the current solution was a poor one. 350+
instances of "#ifdef ENABLE_NETWORK" were in the code, of which
only ~30 in the networking code itself. The rest were all around
the code to do the right thing, from GUI to NewGRF.
A more proper solution would be to stub all the functions, and
make sure the rest of the code can simply assume network is
available. This was also partially done, and most variables were
correct if networking was disabled. Despite that, often the #ifdefs
were still used.
With the recent removal of DOS, there is also no platform anymore
which we support where networking isn't working out-of-the-box.
All in all, it is time to remove the ENABLE_NETWORK switch. No
replacement is planned, but if you feel we really need this option,
we welcome any Pull Request which implements this in a way that
doesn't crawl through the code like this diff shows we used to.
6 years ago
Jonathan G Rennison
4f1d54564e
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/debug.cpp
6 years ago
glx
c540d72445
Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined macro _WIN32
6 years ago
Jonathan G Rennison
03b0931c57
Merge branch 'save_ext' into jgrpp
...
# Conflicts:
# src/debug.cpp
# src/saveload/saveload.cpp
6 years ago
Michael Lutz
3fc9c9522d
Codechange: [Win32] Use a local buffer to store the output text of DEBUG() to make the call thread-safe.
6 years ago
Jonathan G Rennison
ad1c402ad8
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/debug.cpp
# src/saveload/afterload.cpp
# src/saveload/saveload.cpp
# src/settings_type.h
# src/town_cmd.cpp
# src/window.cpp
6 years ago
Patric Stout
aef69443e7
Remove: WinCE support
6 years ago
Jonathan G Rennison
1fe0bb76b9
Merge branches 'crashlog_improvements', 'save_ext', 'version_utils' into jgrpp
7 years ago
Patric Stout
17bd580630
Remove: NO_DEBUG_MESSAGES was only read and setting it broke compilation ( #6703 )
...
Given any speed issue cannot be attributed to checking for _debug_NNN_level, removing this is a safe action
This fixes #6652 .
7 years ago
Jonathan G Rennison
10766f116c
Debug logging: add sound category
7 years ago
Jonathan G Rennison
84e61b690a
Linkgraph: Changes to job scheduling algorithm.
...
This is to improve responsiveness of link graph updates, whilst
avoiding being blocked waiting for updates to complete.
Previously, large numbers of cheap jobs resulted in poor responsiveness
as it took a long time for jobs to cycle round.
Add 'linkgraph' debug category.
8 years ago
Jonathan G Rennison
ead72b7753
Strip colour codes when writing debug msgs to terminal.
9 years ago
Jonathan G Rennison
570bc4cc5d
Log random output to a new file on Unix/glibc.
...
No longer fflush() every write.
9 years ago
Jonathan G Rennison
aa00038c9c
Do not write desync messages to the console on Windows.
...
Windows seems unable to handle direction change characters in consoles.
9 years ago
Jonathan G Rennison
defd5dcc50
Add debug category "yapfdesync" to enable desync checks for YAPF only.
9 years ago
Jonathan G Rennison
60d15aa755
Log desync debug output to the console as well as the file.
...
Be fault tolerant if the desync and/or random file cannot be created,
and write to the console.
9 years ago
rubidium
b886c8db8c
(svn r26506) -Codechange: replace most of vsnprintf with vseprintf
11 years ago
rubidium
e61fe21237
(svn r26506) -Codechange: replace most of vsnprintf with vseprintf
11 years ago
rubidium
6ecc602050
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
11 years ago
rubidium
5b82822c12
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
11 years ago
rubidium
2be4215f43
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
rubidium
a6fae2c608
(svn r26058) -Fix: handle the return value of a number of functions better
11 years ago
rubidium
0e9c992104
(svn r26058) -Fix: handle the return value of a number of functions better
11 years ago
michi_cc
66d9ded71f
(svn r25674) -Fix: [Win32] The console code page for non-Unicode builds is not the normal ANSI code page and definitely not UTF-8 either.
11 years ago
michi_cc
e3648455aa
(svn r25674) -Fix: [Win32] The console code page for non-Unicode builds is not the normal ANSI code page and definitely not UTF-8 either.
11 years ago
michi_cc
b0a7133be4
(svn r24109) -Fix (r24099): Warning from not using size_t to store the return value of strlen().
13 years ago
michi_cc
afdaddd392
(svn r24109) -Fix (r24099): Warning from not using size_t to store the return value of strlen().
13 years ago
alberth
485e70c16a
(svn r24099) -Add: Output list of -d option facilities with in the help text.
13 years ago
alberth
b57bef91a1
(svn r24099) -Add: Output list of -d option facilities with in the help text.
13 years ago
rubidium
59edf288de
(svn r23854) -Codechange: make it easier to put random debug stuff into the random log
13 years ago
rubidium
a48e3cb891
(svn r23854) -Codechange: make it easier to put random debug stuff into the random log
13 years ago
rubidium
3481ca0f57
(svn r23741) -Revert (r23740): the few parts that the Windows / non-network compiles stumble on
13 years ago
rubidium
d8d2f74559
(svn r23741) -Revert (r23740): the few parts that the Windows / non-network compiles stumble on
13 years ago
rubidium
d5eeab43b7
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
truebrain
ac0f5398c2
(svn r23386) -Fix: debug script related events to 'script' (removes 'ai')
13 years ago
truebrain
a8b22e5292
(svn r23386) -Fix: debug script related events to 'script' (removes 'ai')
13 years ago
rubidium
c68174b1b3
(svn r20977) -Fix (r20975): compilation didn't get to the link stage if you, or config.lib, decided you don't need network support
14 years ago
rubidium
cca0ca3d70
(svn r20977) -Fix (r20975): compilation didn't get to the link stage if you, or config.lib, decided you don't need network support
14 years ago
rubidium
d0c3cb352c
(svn r20975) -Add: logging of console output for remote admins (dihedral)
14 years ago
rubidium
a5d414a734
(svn r20975) -Add: logging of console output for remote admins (dihedral)
14 years ago
alberth
adc847358c
(svn r20784) -Doc: Doxyment a few debug line printing functions.
14 years ago
alberth
dfeac6ba2e
(svn r20784) -Doc: Doxyment a few debug line printing functions.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
alberth
137e2b64c9
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
rubidium
2ab8035604
(svn r20186) -Codechange: remove VARDEF from _realtime_tick and _rightclick_emulate
14 years ago
rubidium
34764feac2
(svn r20186) -Codechange: remove VARDEF from _realtime_tick and _rightclick_emulate
14 years ago
rubidium
ff5dfd9c7e
(svn r19589) -Change: add some more useful information to the desync log and unify the formatting
15 years ago
rubidium
d8baa1342c
(svn r19589) -Change: add some more useful information to the desync log and unify the formatting
15 years ago
smatz
135bfd0a57
(svn r19080) -Cleanup: remove unused _debug_ntp_level and _debug_ms_level
15 years ago
smatz
78ce2858fc
(svn r19080) -Cleanup: remove unused _debug_ntp_level and _debug_ms_level
15 years ago
smatz
72acd65d4f
(svn r19079) -Codechange: use _debug_console_level instead of _stdlib_con_developer
15 years ago
smatz
ac6ff0de9b
(svn r19079) -Codechange: use _debug_console_level instead of _stdlib_con_developer
15 years ago
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
aeb59f8e19
(svn r17488) -Feature [FS#2339]: add the date to all logging in the (real, not in-game) console if show_date_in_console is set. For dedicated server binaries the default is 'on', for the rest it is 'off'.
15 years ago
rubidium
324389cf0b
(svn r17488) -Feature [FS#2339]: add the date to all logging in the (real, not in-game) console if show_date_in_console is set. For dedicated server binaries the default is 'on', for the rest it is 'off'.
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
c096e3d54c
(svn r17228) -Codechange: some coding style fixes
15 years ago
rubidium
7fb95e2c2b
(svn r17228) -Codechange: some coding style fixes
15 years ago
smatz
51c8a2fefc
(svn r16637) -Cleanup: remove unused _debug_station_level
15 years ago
smatz
64455d14ea
(svn r16637) -Cleanup: remove unused _debug_station_level
15 years ago
smatz
ce7dff4acc
(svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
...
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
16 years ago
smatz
f5316c5cbd
(svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
...
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
f55995f1ef
(svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option.
16 years ago
rubidium
3c6add5293
(svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option.
16 years ago
skidd13
9b282b3e51
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
16 years ago
skidd13
706dd0f86c
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
16 years ago
rubidium
05d9c19226
(svn r14200) -Fix (r14199): some OSes failed to compile. Furthermore I hate wrong comments!
16 years ago
rubidium
6b86de13d6
(svn r14200) -Fix (r14199): some OSes failed to compile. Furthermore I hate wrong comments!
16 years ago
smatz
8fb9f600c8
(svn r13727) -Fix (r13375): compilation with NO_DEBUG_MESSAGES was broken
16 years ago
smatz
927507818f
(svn r13727) -Fix (r13375): compilation with NO_DEBUG_MESSAGES was broken
16 years ago
smatz
1f55797fe3
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
17 years ago
smatz
c7a9637834
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
17 years ago
rubidium
33e18c236d
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
17 years ago
rubidium
5c5ee7eb57
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
17 years ago
rubidium
bf3b61cfa3
(svn r13228) -Codechange: split console.h.
17 years ago
rubidium
6c20f77330
(svn r13228) -Codechange: split console.h.
17 years ago