Skip to content

Commit ee2f89c

Browse files
committed
Remove: Settings NewGRF
Of limited use with support for base set parameters since OpenTTD 14, so maintenance of little use.
1 parent ed82955 commit ee2f89c

6 files changed

Lines changed: 2 additions & 303 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ OpenGFX2 has graphical user preferences. These can be configured in `Game Option
4040

4141
If you instead want for force a game or server to use OpenGFX2 graphics you can use the OpenGFX2 NewGRFs.
4242

43-
Prior to OpenTTD 14.0 (specifically nightlies prior to 30/10/2023 or before Github commit e81313e) OpenTTD did not have a way to configure base set parameters. The `OpenGFX2 Settings` NewGRF provides a workaround: Go to `NewGRF Settings`, find `OpenGFX2 Settings` and add to `Active NewGRF files`. Then, select `OpenGFX2 Settings` in the `Active NewGRF files list` and select `Set parameters` then adjust the settings.
44-
45-
Install other NewGRFs as normal using `NewGRF settings`.
43+
Install NewGRFs as normal using `NewGRF settings`.
4644

4745
## Building
4846
If you wish to build your own version of OpenGFX2 instead of using our prebuilt version, you can follow [these instructions](docs/building-opengfx2.md).

baseset/lang/english.lng

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ STR_GRF_URL :https://github.com/OpenTTD/OpenGFX2
88
STR_OBG_DESCRIPTION_CLASSIC :OpenGFX2 pixel art style base graphics set for OpenTTD, classic variant (normal zoom 8bpp). Freely available under the terms of the GNU General Public License version 2+. [{STRING}]
99
STR_OBG_DESCRIPTION_HIGHDEF :OpenGFX2 pixel art style base graphics set for OpenTTD, high definition variant (extra zoom 32bpp). Freely available under the terms of the GNU General Public License version 2+. [{STRING}]
1010

11-
STR_WARN_SETTINGSGRF_VERSIONMISMATCH :OpenGFX2 Settings NewGRF version does not match this version of the OpenGFX baseset. You may see unusual results!
12-
STR_WARN_SETTINGSGRF_NOTRECOMMENDED :OpenGFX2 Settings NewGRF is not recommended for OpenTTD 14.0 and later. Base set parameters are recommended instead!
13-
1411
STR_WARN_SETTINGSGRF_BASESETPARAM :Baseset parameters.
1512
STR_WARN_SETTINGSGRF_HARDCODED :Hardcoded parameters.
16-
STR_WARN_SETTINGSGRF_SETTINGSGRFPARAM :Settings NewGRF parameters.
1713

1814
STR_PARAM_CURSOR_NAME :Mouse cursor
1915
STR_PARAM_CURSOR_DESC :Style and colour of the mouse cursor/pointer.
@@ -76,9 +72,6 @@ STR_PARAM_TREES_TROPICAL_DESC :Tree style to use in the tropical climate
7672
STR_PARAM_TREES_TOYLAND_NAME :Toyland trees
7773
STR_PARAM_TREES_TOYLAND_DESC :Tree style to use in the toyland climate.
7874

79-
STR_GRF_SETTINGS_NAME :OpenGFX2 Settings
80-
STR_GRF_SETTINGS_DESCRIPTION :{ORANGE}OpenGFX2 Settings. Alters parameters used by the OpenGFX2 extra grf, hack to allow setting of baseset extra grf parameters.{BLACK}{}By Zephyris, standing on the shoulders of the OpenGFX team{}{BLACK}License: {SILVER}GPL v2+{}{BLACK}Website: {SILVER}https://github.com/OpenTTD/OpenGFX2
81-
8275
STR_GRF_LANDSCAPE_NAME :OpenGFX2+ Landscape
8376
STR_GRF_LANDSCAPE_DESCRIPTION :{ORANGE}OpenGFX+ Landscape. Landscapes in the OpenGFX2 style.{BLACK}{}By Zephyris, standing on the shoulders of the OpenGFX team{}{BLACK}License: {SILVER}GPL v2+{}{BLACK}Website: {SILVER}https://github.com/OpenTTD/OpenGFX2
8477

baseset/nml/extra/extra-header.pnml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -300,32 +300,3 @@ if (openttd_version < version_openttd(14, 0)) {
300300
param_trees_tropical = param_trees_tropical_;
301301
param_trees_toyland = param_trees_toyland_;
302302
}
303-
304-
// Check if the settings grf will be loaded, and load from its parameter values
305-
if (grf_future_status("OGZ\1")==1) {
306-
//error(WARNING, string(STR_WARN_SETTINGSGRF_SETTINGSGRFPARAM));
307-
// Check settings grf version, and warn if it's not the expected version to match this version of the base set
308-
if (param["OGZ\1", 254]!=8) {
309-
error(WARNING, string(STR_WARN_SETTINGSGRF_VERSIONMISMATCH));
310-
}
311-
// Check OpenTTD version, and warn if it's recommended to use base set parameters instead of the settings grf
312-
if (openttd_version >= version_openttd(14, 0)) {
313-
error(WARNING, string(STR_WARN_SETTINGSGRF_NOTRECOMMENDED));
314-
}
315-
// Load parameters from settings grf
316-
param_cursors = param["OGZ\1", 1];
317-
param_gridlines = param["OGZ\1", 2];
318-
param_logos = param["OGZ\1", 3];
319-
param_foundations_temperate = param["OGZ\1", 11];
320-
param_foundations_arctic = param["OGZ\1", 21];
321-
param_foundations_tropical = param["OGZ\1", 31];
322-
param_foundations_toyland = param["OGZ\1", 41];
323-
param_grass_temperate = param["OGZ\1", 10];
324-
param_grass_arctic = param["OGZ\1", 20];
325-
param_grass_tropical = param["OGZ\1", 30];
326-
param_grass_toyland = param["OGZ\1", 40];
327-
param_trees_temperate = param["OGZ\1", 12];
328-
param_trees_arctic = param["OGZ\1", 22];
329-
param_trees_tropical = param["OGZ\1", 32];
330-
param_trees_toyland = param["OGZ\1", 42];
331-
}

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ baseset/%_32ez.grf: graphics_4 baseset/lang/*.lng FORCE
106106

107107
# NewGRFs
108108
.PHONY: newgrf
109-
NEWGRFS = landscape objects settings stations trees trams
109+
NEWGRFS = landscape objects stations trees trams
110110
newgrf: $(foreach grf,$(NEWGRFS),newgrf/ogfx2_$(grf).grf)
111111

112112
# GRF, via NML intermediate, for NewGRFs

newgrf/nml/settings/settings-header.pnml

Lines changed: 0 additions & 262 deletions
This file was deleted.

newgrf/ogfx2_settings.pnml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)