
JGR's Patch Pack
Moderator: OpenTTD Developers
- Walter Novotny
- Engineer
- Posts: 22
- Joined: 20 Jun 2011 12:21
Re: JGR's Patch Pack
I have a question. How can I make freight trains run on a railway line at fixed time intervals? Let's assume that a freight train can run at a junction station every hour 20 minutes past the hour and 45 minutes past the hour. Otherwise, freight trains will interfere with passenger trains. I want trains to come from different directions and wait on side tracks to then run at selected times, regardless of when the train arrives at the junction station.


- Redirect Left
- Tycoon
- Posts: 7431
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: JGR's Patch Pack
Not sure if intentional or not, but when stopping a train by clicking on it, and then at bottom clicking on heading for X to change it to stopping. If you leave your mouse over it instead of moving away, it never switches to say it is stopped. It will just say heading for X 0MPH, the train is stopped but the box no longer relays the info without extra thought. Also means you have no feedback when you click on it to stop it, unless you immediately move the mouse.
Moving your mouse away corrects it to say stopped, but it seems odd behaviour, especially given it is missing the feedback of "yup, you clicked, I'm stopping bro!" without extra mouse input.
Moving your mouse away corrects it to say stopped, but it seems odd behaviour, especially given it is missing the feedback of "yup, you clicked, I'm stopping bro!" without extra mouse input.
Re: JGR's Patch Pack
This is the vanilla behaviour, so presumably intentional.Redirect Left wrote: 21 Sep 2024 23:57 Not sure if intentional or not, but when stopping a train by clicking on it, and then at bottom clicking on heading for X to change it to stopping. If you leave your mouse over it instead of moving away, it never switches to say it is stopped. It will just say heading for X 0MPH, the train is stopped but the box no longer relays the info without extra thought. Also means you have no feedback when you click on it to stop it, unless you immediately move the mouse.
Moving your mouse away corrects it to say stopped, but it seems odd behaviour, especially given it is missing the feedback of "yup, you clicked, I'm stopping bro!" without extra mouse input.
The icon on the left side of the bar displays the start/stop state regardless of whether the bar is moused over or not,
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
- Redirect Left
- Tycoon
- Posts: 7431
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: JGR's Patch Pack
eesh, Vanilla making weird changes for sake of change again, thanks for the info though!
-
- Tycoon
- Posts: 1309
- Joined: 16 Oct 2018 08:31
- Location: Heart of the Highlands. Not Scottish. Czech.
Re: JGR's Patch Pack
Lately I've noticed that cities are extremely reluctant to build roads. Instead, it much prefers to spread along the path of least resistance, in short, along roads.
If I don't limit the cities with a road that doesn't allow building houses, then the roads won't start being built. Or very little.
Is there any way to get cities to build a new road rather than build houses "almost abroad"
? There's a lot of scattered solitudes and streets that are too long.
If I don't limit the cities with a road that doesn't allow building houses, then the roads won't start being built. Or very little.
Is there any way to get cities to build a new road rather than build houses "almost abroad"

Re: JGR's Patch Pack
The intent of the code was actually for the text to go red in this case, this has been fixed upstream: https://github.com/OpenTTD/OpenTTD/pull/12961Redirect Left wrote: 22 Sep 2024 12:41 eesh, Vanilla making weird changes for sake of change again, thanks for the info though!
I have noticed that this happens for some towns but not others. In general it is difficult to work out what is going on with town growth.Argus wrote: 23 Sep 2024 16:08 Lately I've noticed that cities are extremely reluctant to build roads. Instead, it much prefers to spread along the path of least resistance, in short, along roads.
If I don't limit the cities with a road that doesn't allow building houses, then the roads won't start being built. Or very little.
Is there any way to get cities to build a new road rather than build houses "almost abroad"? There's a lot of scattered solitudes and streets that are too long.
I'll look into it when I get some time.
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
- Redirect Left
- Tycoon
- Posts: 7431
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: JGR's Patch Pack
Excellent to see. Even complete with a sarcastic barb from a developer which demonstrates why i don't offer any fixes myself, and have a very hands off approach to things here with that attitude. Plus why i admire and appreciate the work you do here JGR.JGR wrote: 23 Sep 2024 18:31The intent of the code was actually for the text to go red in this case, this has been fixed upstream: https://github.com/OpenTTD/OpenTTD/pull/12961Redirect Left wrote: 22 Sep 2024 12:41 eesh, Vanilla making weird changes for sake of change again, thanks for the info though!
- andythenorth
- Tycoon
- Posts: 5705
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: JGR's Patch Pack
This is an excellent post-hoc justification of your non-contribution, whilst simultaneously obfuscating your repeated griping here about development of the vanilla client.Redirect Left wrote: 23 Sep 2024 20:17 Even complete with a sarcastic barb from a developer which demonstrates why i don't offer any fixes myself
I do admire such dedicated solipsism, my guess is that it takes quite a lot of effort. Or perhaps like anything, it's easy if you practice a lot?
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
- Redirect Left
- Tycoon
- Posts: 7431
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: JGR's Patch Pack
Genuinely, that is a really good usage of English. I'm not even being sarcastic, that is an amazingly wide array of words you have squeezed in to it. Far better than I see in most places.andythenorth wrote: 23 Sep 2024 20:57 This is an excellent post-hoc justification of your non-contribution, whilst simultaneously obfuscating your repeated griping here about development of the vanilla client.
I do admire such dedicated solipsism, my guess is that it takes quite a lot of effort. Or perhaps like anything, it's easy if you practice a lot?
But to actually answer what you posted, my griping does indicate the precise reasoning for not contributing for a long time. Not that it is worth going and finding them all to stitch the reasons together, I'm not going to, so I don't expect anyone else to bother either. What you call solipsism, i call sticking to my morals, and not breaking them to essentially work with certain people.
- AntoninKyrene
- Engineer
- Posts: 82
- Joined: 29 May 2011 17:32
- Location: SW US
Re: JGR's Patch Pack
JGR (and others),
I rediscovered your patch pack last week, thanks to one of the devs (peter1138). I was reviving a VM from 2010 that had Bilbo's old 'huge map patch' with the intent to put it to use, but peter suggested I download your patched version from GitHub. I have done that, and it is working perfectly for what I wanted. I am completely unfamiliar with GitHub beyond downloading content, but I have at least two questions so far...
1) is 0.62.0 compiled against v14.1 (I don't know if I got the lingo right)
2) is the map size allowed by the patch based upon hardware limitations of the host PC
I noted in another thread I can only reach 16K x 16K, with any larger maps requiring a decrease in size on one axis in return for an increase in size on another axis. My notes from the 2010 VM indicated at least 6GB of RAM were necessary to scale beyond the hard limit of v1.0.0...which I assume was 2K by 2K, but we're still recovering the VM itself to find out (and yes, it did occur to me I should just download v1.0.0 from the archive and find out, but I don't have any x86_64 machines available right at this moment, so an answer here may arrive faster than that)
Thank you!
-AK
I rediscovered your patch pack last week, thanks to one of the devs (peter1138). I was reviving a VM from 2010 that had Bilbo's old 'huge map patch' with the intent to put it to use, but peter suggested I download your patched version from GitHub. I have done that, and it is working perfectly for what I wanted. I am completely unfamiliar with GitHub beyond downloading content, but I have at least two questions so far...
1) is 0.62.0 compiled against v14.1 (I don't know if I got the lingo right)
2) is the map size allowed by the patch based upon hardware limitations of the host PC
I noted in another thread I can only reach 16K x 16K, with any larger maps requiring a decrease in size on one axis in return for an increase in size on another axis. My notes from the 2010 VM indicated at least 6GB of RAM were necessary to scale beyond the hard limit of v1.0.0...which I assume was 2K by 2K, but we're still recovering the VM itself to find out (and yes, it did occur to me I should just download v1.0.0 from the archive and find out, but I don't have any x86_64 machines available right at this moment, so an answer here may arrive faster than that)
Thank you!
-AK
Kuolema Tekee Taiteilijan
-
- Tycoon
- Posts: 1309
- Joined: 16 Oct 2018 08:31
- Location: Heart of the Highlands. Not Scottish. Czech.
Re: JGR's Patch Pack
ThanksJGR wrote: 23 Sep 2024 18:31I have noticed that this happens for some towns but not others. In general it is difficult to work out what is going on with town growth.Argus wrote: 23 Sep 2024 16:08 Lately I've noticed that cities are extremely reluctant to build roads. Instead, it much prefers to spread along the path of least resistance, in short, along roads.
If I don't limit the cities with a road that doesn't allow building houses, then the roads won't start being built. Or very little.
Is there any way to get cities to build a new road rather than build houses "almost abroad"? There's a lot of scattered solitudes and streets that are too long.
I'll look into it when I get some time.

There's no rush, I build roads for cities myself when they don't want to do it.

It seems to me that cities love fast roads and refuse to spread along slow urban ones if possible.
- Redirect Left
- Tycoon
- Posts: 7431
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: JGR's Patch Pack
How about this,
in a lot of my cities or towns & villages i accidentally turn into a hubs (cargodist
), i often have trams running between the two stations, for a real life example Manchester's Piccadilly & Victoria plus Deansgate-Castlefield where the trams help passengers move between stations speedily and high(ish) capacity. When I open the upcoming departures list, it does not remember the previous status of my view lists, I usually prevent road vehicles (is a tram truly a road vehicle? something for me to ponder whilst trying to sleep tonight) showing up in lists, as trains are my priority. It'd be nice if these menus remember your selection in terms of displaying X & Y. Much like the buy menu does when you order by most capacity or cost, it remembers that next time you load the buy list. It feels a little odd (to me at least) that most menus remember selection, another example of that behaviour is if you display all [x type] vehicles, it remembers what you last used to organise them by, like most profit last year.
Here's a quick image in case you're lost as to what i refer to. It appears on the "departures" list. Even if you close this menu, and go back just seconds later, it has forgot what buttons you clicked to sort departures by.
in a lot of my cities or towns & villages i accidentally turn into a hubs (cargodist

Here's a quick image in case you're lost as to what i refer to. It appears on the "departures" list. Even if you close this menu, and go back just seconds later, it has forgot what buttons you clicked to sort departures by.
Re: JGR's Patch Pack
Hy,
I found some bugs. I don't know if they are related to JGRPP, but it involves different behaviour on 3 JGRPP releases (0.60.2 - 0.61.0 - 0.62.0).
First is the Industrial Stations Renewed - Modified 1.0.2 grf ( viewtopic.php?t=83704 ). As you can see in video below, there is no problem in 0.60.2 release, but in 0.61.0 and 0.62.0 when I press ISR: Classification Yard from left menu, it jumps one position above. Also the graphics displayed are the wrong ones. Using original ISR grf I don't have this issue.
The second one is in 0.62.0 with road waypoints from Road Stops & Waypoints 4 (JGRPP Friendly) viewtopic.php?t=90618 . Some of the waypoints are greyed out and cannot use them.
Same settings on all 3 releases, same savegame.
And another one, I think: i play the same map that i started 3 years ago. I am an eyecandy player. When I need to develop a city, i change from .sav to .scn and edit the map in scenario editor. Before I click Expand on city window menu, I always demolish exit roads, so that city doesn't expand past that point. I noticed in last releases that now towns rebuild those missing parts of roads and expand beyond that point. I have to block those paths with objects to prevent that, even with correct settings (town build roads is disabled, also bridges, tunnels etc). I didn't have this issue on older releases.
I found some bugs. I don't know if they are related to JGRPP, but it involves different behaviour on 3 JGRPP releases (0.60.2 - 0.61.0 - 0.62.0).
First is the Industrial Stations Renewed - Modified 1.0.2 grf ( viewtopic.php?t=83704 ). As you can see in video below, there is no problem in 0.60.2 release, but in 0.61.0 and 0.62.0 when I press ISR: Classification Yard from left menu, it jumps one position above. Also the graphics displayed are the wrong ones. Using original ISR grf I don't have this issue.
The second one is in 0.62.0 with road waypoints from Road Stops & Waypoints 4 (JGRPP Friendly) viewtopic.php?t=90618 . Some of the waypoints are greyed out and cannot use them.
Same settings on all 3 releases, same savegame.
And another one, I think: i play the same map that i started 3 years ago. I am an eyecandy player. When I need to develop a city, i change from .sav to .scn and edit the map in scenario editor. Before I click Expand on city window menu, I always demolish exit roads, so that city doesn't expand past that point. I noticed in last releases that now towns rebuild those missing parts of roads and expand beyond that point. I have to block those paths with objects to prevent that, even with correct settings (town build roads is disabled, also bridges, tunnels etc). I didn't have this issue on older releases.
The rest is confetti!
Re: JGR's Patch Pack
For the modified ISR GRF, it seems that the modification involves redefining all the stations a second time when loaded in JGRPP, presumably with different/extra properties.ColdIce wrote: 29 Sep 2024 09:30 Hy,
I found some bugs. I don't know if they are related to JGRPP, but it involves different behaviour on 3 JGRPP releases (0.60.2 - 0.61.0 - 0.62.0).
First is the Industrial Stations Renewed - Modified 1.0.2 grf ( viewtopic.php?t=83704 ). As you can see in video below, there is no problem in 0.60.2 release, but in 0.61.0 and 0.62.0 when I press ISR: Classification Yard from left menu, it jumps one position above. Also the graphics displayed are the wrong ones. Using original ISR grf I don't have this issue.
The second one is in 0.62.0 with road waypoints from Road Stops & Waypoints 4 (JGRPP Friendly) viewtopic.php?t=90618 . Some of the waypoints are greyed out and cannot use them.
Same settings on all 3 releases, same savegame.
And another one, I think: i play the same map that i started 3 years ago. I am an eyecandy player. When I need to develop a city, i change from .sav to .scn and edit the map in scenario editor. Before I click Expand on city window menu, I always demolish exit roads, so that city doesn't expand past that point. I noticed in last releases that now towns rebuild those missing parts of roads and expand beyond that point. I have to block those paths with objects to prevent that, even with correct settings (town build roads is disabled, also bridges, tunnels etc). I didn't have this issue on older releases.
Unfortunately the class assignments for the first and second definitions do not match for most of the stations specs in the marshalling yard class. They effectively end up in both classes at the same time, hence the awkward UI behaviour.
Probably the best solution is for the author to correct the GRF.
For Road Stops & Waypoints 4, the waypoints are marked as freight/lorry only by the GRF.
This was previously ignored, but is not ignored in vanilla. In the next release I'll set it to also ignore it for pre-vanilla/JGRPP-only GRFs.
The scenario editor behaviour was changed upstream: https://github.com/OpenTTD/OpenTTD/pull/11377
I originally didn't add this as what is a suitable set of types for one type of station isn't for another. It might be annoying if whenever you go between primarily rail and road stations you initially get a blank window until you remember to change it.Redirect Left wrote: 26 Sep 2024 23:15 How about this,
in a lot of my cities or towns & villages i accidentally turn into a hubs (cargodist), i often have trams running between the two stations, for a real life example Manchester's Piccadilly & Victoria plus Deansgate-Castlefield where the trams help passengers move between stations speedily and high(ish) capacity. When I open the upcoming departures list, it does not remember the previous status of my view lists, I usually prevent road vehicles (is a tram truly a road vehicle? something for me to ponder whilst trying to sleep tonight) showing up in lists, as trains are my priority. It'd be nice if these menus remember your selection in terms of displaying X & Y. Much like the buy menu does when you order by most capacity or cost, it remembers that next time you load the buy list. It feels a little odd (to me at least) that most menus remember selection, another example of that behaviour is if you display all [x type] vehicles, it remembers what you last used to organise them by, like most profit last year.
Here's a quick image in case you're lost as to what i refer to. It appears on the "departures" list. Even if you close this menu, and go back just seconds later, it has forgot what buttons you clicked to sort departures by.
I can look into it though.
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
- Redirect Left
- Tycoon
- Posts: 7431
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: JGR's Patch Pack
Perhaps an opportunity for another setting here. "Remember selection on/off" or "View most vehicle type by default".JGR wrote: 29 Sep 2024 18:22 I originally didn't add this as what is a suitable set of types for one type of station isn't for another. It might be annoying if whenever you go between primarily rail and road stations you initially get a blank window until you remember to change it.
I can look into it though.
Re: JGR's Patch Pack
Hello
Tschö, Auge
What is a freight/lorry only waypoint? Or, other way around, what is the feature by which the game recognises that such a waypoint should be excluded from the selection? I unfortunately found many road waypoints, that were greyed out on road types for common use (probably for the reason you described).JGR wrote: 29 Sep 2024 18:22 For Road Stops & Waypoints 4, the waypoints are marked as freight/lorry only by the GRF.
This was previously ignored, but is not ignored in vanilla. In the next release I'll set it to also ignore it for pre-vanilla/JGRPP-only GRFs.
Tschö, Auge
Re: JGR's Patch Pack
The property is for road stops (bus/lorry).Auge wrote: 30 Sep 2024 07:22 Hello
What is a freight/lorry only waypoint? Or, other way around, what is the feature by which the game recognises that such a waypoint should be excluded from the selection? I unfortunately found many road waypoints, that were greyed out on road types for common use (probably for the reason you described).JGR wrote: 29 Sep 2024 18:22 For Road Stops & Waypoints 4, the waypoints are marked as freight/lorry only by the GRF.
This was previously ignored, but is not ignored in vanilla. In the next release I'll set it to also ignore it for pre-vanilla/JGRPP-only GRFs.
Tschö, Auge
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
Re: JGR's Patch Pack
Hello
Your words are about waypoints and also the preview stills for ColdIce's videos show the build waypoint windows. I can't check it myself at the moment but I'm sure to have seen the greyed out items in the build waypoint window.
Tschö, Auge
That is confusing. You yourself wrote:JGR wrote: 30 Sep 2024 09:09The property is for road stops (bus/lorry).Auge wrote: 30 Sep 2024 07:22What is a freight/lorry only waypoint? Or, other way around, what is the feature by which the game recognises that such a waypoint should be excluded from the selection? I unfortunately found many road waypoints, that were greyed out on road types for common use (probably for the reason you described).JGR wrote: 29 Sep 2024 18:22 For Road Stops & Waypoints 4, the waypoints are marked as freight/lorry only by the GRF.
This was previously ignored, but is not ignored in vanilla. In the next release I'll set it to also ignore it for pre-vanilla/JGRPP-only GRFs.
Emphasis by me.JGR wrote: 29 Sep 2024 18:22 For Road Stops & Waypoints 4, the waypoints are marked as freight/lorry only by the GRF.
Your words are about waypoints and also the preview stills for ColdIce's videos show the build waypoint windows. I can't check it myself at the moment but I'm sure to have seen the greyed out items in the build waypoint window.
Tschö, Auge
Re: JGR's Patch Pack
Road stations and road waypoints are the same NewGRF feature, in the same way that rail stations and rail waypoints are the same.
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
Re: JGR's Patch Pack
Thank you for your response. I posted in Wallyweb's release page about the ISR bug.JGR wrote: 29 Sep 2024 18:22 For the modified ISR GRF, it seems that the modification involves redefining all the stations a second time when loaded in JGRPP, presumably with different/extra properties.
Unfortunately the class assignments for the first and second definitions do not match for most of the stations specs in the marshalling yard class. They effectively end up in both classes at the same time, hence the awkward UI behaviour.
Probably the best solution is for the author to correct the GRF.
For Road Stops & Waypoints 4, the waypoints are marked as freight/lorry only by the GRF.
This was previously ignored, but is not ignored in vanilla. In the next release I'll set it to also ignore it for pre-vanilla/JGRPP-only GRFs.
The scenario editor behaviour was changed upstream: https://github.com/OpenTTD/OpenTTD/pull/11377
For the other two, I will wait for a fix and for the other I will adapt.
Thank you very much for a fine job done over the years. You really changed the way we can all play this game. Now is as much difficult and real as we want. And that is amazing. Thank you
The rest is confetti!
Who is online
Users browsing this forum: No registered users and 0 guests