Page 3 of 3

Re: Close adjacent level crossings

Posted: 14 Mar 2014 21:28
by Alberth
doxlulzem wrote:I know I sound like a reeeaaalllll noob, but where do you put the .diff, and will it change the level crossings in existing savegames?
Inside the program, by changing the source code.

The common name for .diff file is "patch", as in a "source code patch" in this case, which is explained at http://wiki.openttd.org/Patch

All games that you load or play with the new version will be affected. I don't know whether you can save a game in the modified version, and later continue playing with that save in a normal version.

Re: Close adjacent level crossings

Posted: 14 Mar 2014 23:24
by Eddi
yes, the patch does work on existing savegames, and you can load them back and forth in unmodified games as well. be aware, however, that vehicles may unexpectedly start up while waiting on a closed barrier, so keep vehicles stopped when you load a game this way.

Re: Close adjacent level crossings

Posted: 15 Mar 2014 15:44
by kamnet
doxlulzem wrote:I know I sound like a reeeaaalllll noob, but where do you put the .diff, and will it change the level crossings in existing savegames?
.diff files must be compiled using the game source code.

If your savegame was created using a stock (unmodified/unpatched) version of OpenTTD, then when you should be able to load it into your new patched version of the game and it take effect. If your savegame was created using any patched version of OpenTTD, however, it will not open at all.

Re: Close adjacent level crossings

Posted: 24 Jun 2022 19:59
by 2TallTyler
This patch has been part of JGR's Patchpack for years now, but I've recently opened a Pull Request to add it (with modifications) to vanilla OpenTTD. Thoughts, tests, etc., welcome: https://github.com/OpenTTD/OpenTTD/pull/9931