Skip to content

Instantly share code, notes, and snippets.

@aperezdc
Last active January 30, 2021 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aperezdc/fca490e793a164878e00300a43df951b to your computer and use it in GitHub Desktop.
Save aperezdc/fca490e793a164878e00300a43df951b to your computer and use it in GitHub Desktop.
How to patch DB Set XL to work on arctic climate

DB Set XL on Arctic

This shows how to patch DB Set XL v0.82 so it won't disable itself when starting a game in arctic climate. The resulting patched file was tested with OpenTTD.

Requisites

  • Original dbsetxlw.grf, downloadable from here
  • grfcodec
  • patch

Method

Save the attached dbsetxl-arctic.patch to same directory where dbsetxlw.grf is placed, then run:

grfcodec -d -p 2 dbsetxlw.grf
patch -p1 < dbsetxl-arctic.patch
mv sprites/dbsetxlw{,mod}.nfo
grfcodec -e -n -c dbsetxlwmod.grf

Then copy the dbsetxlwmod.grf into a directory where OpenTTD can load it, for example ~/.openttd/newgrf/.

Known Issues

DB Set XL replaces the rail level crossing and signal sprites with its own versions. The level crossing only looks correct with the original TTD base graphics for the temperate climate. To workaround this, load another NewGRF that replaces the base road set after dbsetxlwmod.grf.

--- a/sprites/dbsetxlw.nfo 2021-01-30 22:40:27.907375347 +0200
+++ b/sprites/dbsetxlw.nfo 2021-01-30 18:59:36.093834188 +0200
@@ -14,14 +14,14 @@
7 * 6 07 85 01 \70 1B 01
8 * 9 09 8B 04 \7! 00 00 00 00 01
9 * 16 0B 03 1F 02 "Multihead 0" 00
- 10 * 6 07 83 01 \7= 00 06
+ 10 * 6 07 83 01 \7< 02 06
11 * 9 07 88 04 \7G 6D 62 07 00 02
12 * 9 07 88 04 \7gG 6D 62 07 00 01
13 * 9 07 8B 04 \7! 00 00 00 00 00
14 * 9 0D 00 \D| 00 FF 20 00 00 00
15 * 6 07 00 04 \71 05 01
16 * 9 07 8B 04 \7! 00 00 00 00 00
- 17 * 107 08 06 "mb" 04 01 "DB Set V0.82 (XL) 05.05.05" 00
+ 17 * 107 08 06 "mb" 04 01 "DB Set V0.82(mod) 05.05.05" 00
" 2003 - 2005 Michael Blunck - All "
"rights reserved." 0D "Visit www.ttdpatch.de" 00
18 * 9 07 88 04 \7G 6D 62 03 05 04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment