Commit Graph

49734 Commits (e4555a1749659ab167a2fba02c0e76427bfed79d)
 

Author SHA1 Message Date
Jonathan G Rennison 5665d88067 Debug: Industries are now always inspectable in the debug window 4 years ago
Jonathan G Rennison 7b75fcf487 Show industry production callback mask values in industry debug window 4 years ago
Jonathan G Rennison 8ac436f507 Add setting to scale primary industry cargo production 4 years ago
Jonathan G Rennison c7fa284db4 Move scale factor setting scaling to common function 4 years ago
Jonathan G Rennison bfbd2de477 Fix decimal settings not permitting typing a '-' character 4 years ago
Jonathan G Rennison 93e7899c7f Debug: Show cargo in/out values in industry debug window 4 years ago
Jonathan G Rennison f0c3a4b42e Saveload: Store NewGRF name in savegame, include in missing GRF message 4 years ago
Jonathan G Rennison d328f359c9 Add string function to strip all SCC characters 4 years ago
Jonathan G Rennison 207c79a736 Saveload: Fix SLE*_CONDSSTR* macros 4 years ago
Jonathan G Rennison d818630c34 Debug: Show company ratings in town debug window 4 years ago
Jonathan G Rennison 8b94d92158 CMake: Suppress warning messages when Fcitx is not found 4 years ago
Patric Stout b7851e51ad Fix: set SP_WORKING_DIR earlier with '-c'
On Windows, relative folders don't work so well. So we need to
lookup the full path. This is best done in DetermineBasePaths()
and as a bonus that only sets SP_WORKING_DIR once.
4 years ago
Michael Lutz a660dce295 Fix: [CMake, MSVC] Don't copy regression exe's into a subfolder as they need have their lang files next to them. 4 years ago
Patric Stout abb746fae3
Fix: [Actions] cleanup ci-build workflow to be up-to-date (#8375)
Also, while at it, make it more like the upcoming release-workflow,
so they look a lot more similar.

Functional it should be the same, except that Windows should
now also output when a test fails.
4 years ago
Patric Stout 5d0331ecdc
Fix 8bef06a2: don't use "extern" when you want to implement a global (#8373) 4 years ago
Patric Stout da7c74ba7e Fix: change the working-dir searchpath when using '-c'
Basically, with '-c' you now create a sandbox. It will still use
your personal-dir and global-dir to find files you installed there,
but all new files are stored with a base folder identical to the
folder the configuration is in.

This is a bit of an old bug, that we many have tried to solve in
various of different ways. The code has grown sufficiently complex
that it is hard to see what consequences of actions are. This is
in my opinion the most harmless solution, while increasing the
usefulness of the '-c' flag.

In essence, the problem was that empty folders were always created
in the directory where the configuration was, but as that directory
wasn't added to any searchpath, files weren't stored there, unless
by accident it was a folder already on the searchpath. For example,
if you do './openttd -c local.cfg', it did work as expected. But
in the more generic variant, it did not.

With this patch, you can run './openttd -c /new/folder/local.cfg',
and it will create and prepare that folder to receive new files.

'content_download' is also stored in the directory the
configuration is in; this was already the case. Important to
note that there is only one search-path for 'content_download'.
In other words, when using '-c', it will not look in '~/.openttd'
inside the 'content_download' folder.
4 years ago
Patric Stout 4e12aac9c0 Codechange: to create or not to create a folder, that is the question
This was just weird. With XDG _personal_dir was created already,
but later on it was checked if it was different from config_dir,
and the creation was skipped. All this checking and validation
makes my head spin .. let's make it a bit more simple.
4 years ago
Jonathan G Rennison 5aac3d71ee Github: Remove regression tests from build workflow 4 years ago
Jonathan G Rennison 0d46b5e88a Github: Remove commit checker workflow 4 years ago
Patric Stout c66bd18a10
Add: save openttd.cfg immediately on changing a setting (#8358)
Formally it was only done on exit. This means that if it crashes
changes in settings were not stored. This is often rather
frustrating. Additionally, targets (like emscripten) where people
are unlike to use "Exit Game", will never see their configuration
stored.

The drawback is that on every setting change there is some minor
I/O of writing the ini file to disk again.
4 years ago
Yourself cbaceb62d2 Fix: overflow in CloneVehicleName 4 years ago
translators 40edc2863c Update: Translations from eints
finnish: 1 change by hpiirai
4 years ago
glx22 6fae0b83d9 Add: [CMake] targets to generate documentation 4 years ago
Jonathan G Rennison bad2cd0677 CMake: Do not look for fctix on Apple 4 years ago
Jonathan G Rennison a64b4c794c Documentation: Improve formatting of low-level changes doc 4 years ago
translators 7f5afbfdf5 Update: Translations from eints
slovak: 2 changes by FuryPapaya
4 years ago
glx22 e2eafd86de Fix: Prevent infinite recursion in commit checker 4 years ago
Jonathan G Rennison 6ecf232edd Fix rendering artefacts in colour news window viewports
Off by one error in applying dimming recolour created
doubly-dimmed lines on dirty block redrawing boundaries.
4 years ago
translators 20151e41ea Update: Translations from eints
korean: 1 change by telk5093
french: 1 change by glx22
4 years ago
translators 819ce1bf49 Update: Translations from eints
slovak: 30 changes by FuryPapaya
lithuanian: 37 changes by devastatorius
4 years ago
Owen Rudge 535e18b54e Change: Don't display OS name when the user is exiting the game 4 years ago
Patric Stout 2864d019f0
Fix: useless warning with -snull and no BaseSounds available (#8361)
If I explicitly tell the system I do not want sound, I still get
presented a nice message I do not have any BaseSounds available
on my system, and that I should download one to enjoy sound. Well,
let me tell you, with "-snull" that is really really not going to
help. So please, be quiet, and let me enjoy the game without
"boooooo" and "DING DING DING".

Thank you.
4 years ago
Owen Rudge 6e689e2038 Fix: FreeType is still required on macOS 4 years ago
Jonathan G Rennison 840e459601 Revert "Fix 63ccb36ef3: Crash trying to load TTO/TTD savegames. (#8356)"
This is not necessary due to 5243cfd6d0.

This reverts commit c558936ec3.
4 years ago
Jonathan G Rennison 4436da7436 Saveload: Skip GetVariableAddress asserts if _DEBUG not defined 4 years ago
Jonathan G Rennison 4da3cfcf56 Merge branch 'master' into jgrpp
# Conflicts:
#	CMakeLists.txt
#	src/bootstrap_gui.cpp
4 years ago
Patric Stout dddf885fb4
Remove: console command "content select all" (#8363)
The intention of this function was that you could download
everything after a filter was applied; but this never really
took off. Instead, a select few people used this functionality
to download every available package on BaNaNaS. This is not in
the spirit of this service. Additionally, these few people were
good for 70% of the consumed bandwidth of BaNaNaS.
4 years ago
frosch 6198a4776b Change: [NewGRF] Use aircraft property 12 also for helicopters.
Due to keeping compatibility we can only do this for NewGRF-defined sound effects.
4 years ago
Charles Pigott cfa1b1e006 Fix: Compile warnings when asserts are disabled 4 years ago
Patric Stout ad47ebc1a8 Change: don't encourage the use of LZO
LZO was used before the first version we track in our version
control system, which dates back to Aug 2004. Somewhere before
that time a few savegames / scenarios exist which use LZO. No
other savegame / scenario does since then. Let's not encourage
people to install something that ancient.

There are no scenarios on BaNaNaS that require LZO.
4 years ago
Patric Stout 731af1f1f3 Codechange: don't do work GetVariableAddress() is already doing 4 years ago
Patric Stout c98717cb45 Fix: do not add an offset to a nullptr
This is, by specs, undefined behaviour. See
https://reviews.llvm.org/D67122

In cases where this is done, optimizations done by LLVM can
generate code that causes crashes.

GetVariableAddress() had two (legit) ways this could happen:
- For SaveLoad set to global
- For SaveLoad set to SLE_VAR_NULL, where sld->address is always
  a nullptr, and object could or could not be a nullptr.
4 years ago
Michael Lutz c558936ec3
Fix 63ccb36ef3: Crash trying to load TTO/TTD savegames. (#8356) 4 years ago
Patric Stout 6ad3cca4ca
Fix a49fdb7ebb: bootstrap crash when trying to load new baseset (#8353)
Using nullptr as "name" crashes on "name.empty()". Use an empty
string instead.
4 years ago
Jonathan G Rennison ba11cd59af Documentation: Update low level changes doc 4 years ago
glx22 a06fe8e8a7 Fix: [CMake] cross-compiling requires native tools 4 years ago
Jonathan G Rennison 933d75f532 Clear unused train cache fields, fixes warning spam on MP client load 4 years ago
Rasmus Jonsson 0b2dd2c5cd Fix: [NoAI] don't notify caught exceptions 4 years ago
Tocho Tochev 06adb9ace3 Fix: Spelling 4 years ago
Jonathan G Rennison 3e1ab88323 Fix NRT road/tram type conversion on savegame load from JokerPP v1.27 4 years ago