EoT

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

EoT

Post by McZapkie » 31 Mar 2019 00:21

I created small newgrf: End of Track - bumpers as objects.
Project is available on bananas: https://bananas.openttd.org/en
Source code: https://dev.openttdcoop.org/projects/eot/repository


You can place bumper on the tile adjacent to any tile with track, this bumper will try to adapt its orientation to this track.
four bumper layouts are available, for straight track, diagonal (v, h) track and double diagonal tracks:
example of EoT
example of EoT
example.png (188.87 KiB) Viewed 3150 times
In case of standard openttd, it is just eye-candy add-on.
But in case of infrastructure sharing patch, such objects can be used for securing attempt to your track by unauthorized companies.
Of course there already are bumpers in ISR station set, but making additional station is often not feasible (maintenance costs, town rating, label etc).
Bumpers as objects are also more convenient to use than station pieces (works like terrain property signs, but are cheaper and looks better if used as track terminals).
Last edited by McZapkie on 01 Apr 2019 00:32, edited 1 time in total.
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

Tony Pixel
Route Supervisor
Route Supervisor
Posts: 431
Joined: 14 Oct 2017 11:06
Location: Ukraine

Re: EoT

Post by Tony Pixel » 31 Mar 2019 07:45

Magnificent GRF, I think it's very userful for decoration of the map or screenshot competitions, nice work!
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.

michael blunck
Tycoon
Tycoon
Posts: 5273
Joined: 27 Apr 2005 07:09
Contact:

Re: EoT

Post by michael blunck » 31 Mar 2019 08:38

I don't think that "buffers as objects" is a sound concept since they're missing the tracks (vehicles will fall off the track before reaching those buffers).

Buffers as part of station grfs are providing the needed tracktype automagically.

regards
Michael
Image

User avatar
Erato
Route Supervisor
Route Supervisor
Posts: 434
Joined: 25 May 2015 09:09
Location: The Netherlands

Re: EoT

Post by Erato » 31 Mar 2019 12:18

Wow. This is really cool!

It's really nice to have the option to have diagonal buffers!
No pics no clicks. Seriously. Also stop using Modern Maglev Trains. Use RIMS instead.
ImageImageImageImageImageImage

McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

Re: EoT

Post by McZapkie » 31 Mar 2019 13:49

michael blunck wrote:I don't think that "buffers as objects" is a sound concept since they're missing the tracks (vehicles will fall off the track before reaching those buffers).
I don't get it, what do you mean "vehicles will fall off the track before reaching those buffers"? It is not possible in openttd to fall from the track.
Vehicles are stopping right before sand/ballast pile retarder:
example2.png
example2.png (29.38 KiB) Viewed 2964 times
Main flaw with buffer as station tiles is, that they are station tiles, thus:
- increase overall infrastructure maintenance payment
- can be built only along cardinal direction
- if placed separately, need to be part of existing station (problematic due to station spread limit) or 1-tile sized additional station (additional label, worse town rating)
- not convenient to remove during station expansion + risk of total station destruction during buffer stop removal.
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

SimYouLater
Chief Executive
Chief Executive
Posts: 676
Joined: 03 Apr 2016 20:19

Re: EoT

Post by SimYouLater » 31 Mar 2019 15:28

I really like this concept. I agree with michael that tracks should extend to the buffer, but that shouldn't be too hard to add and wouldn't need to replace the existing ones you made.
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.

michael blunck
Tycoon
Tycoon
Posts: 5273
Joined: 27 Apr 2005 07:09
Contact:

Re: EoT

Post by michael blunck » 31 Mar 2019 15:54

SimYouLater wrote:[...] I agree with michael that tracks should extend to the buffer, but that shouldn't be too hard to add and wouldn't need to replace the existing ones you made.
This is not possible since objects have no clue what particular track set would be in use. For "station buffers" this isn't a problem.

regards
Michael
Image

SimYouLater
Chief Executive
Chief Executive
Posts: 676
Joined: 03 Apr 2016 20:19

Re: EoT

Post by SimYouLater » 31 Mar 2019 16:00

michael blunck wrote:
SimYouLater wrote:[...] I agree with michael that tracks should extend to the buffer, but that shouldn't be too hard to add and wouldn't need to replace the existing ones you made.
This is not possible since objects have no clue what particular track set would be in use. For "station buffers" this isn't a problem.

regards
Michael
Then just make the tracks rusty.
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.

michael blunck
Tycoon
Tycoon
Posts: 5273
Joined: 27 Apr 2005 07:09
Contact:

Re: EoT

Post by michael blunck » 31 Mar 2019 16:25

SimYouLater wrote: Then just make the tracks rusty.
Didn't you talk about "incompatibilities"in that other thread?

regards
Michael
Image

User avatar
acs121
Tycoon
Tycoon
Posts: 1944
Joined: 03 Nov 2017 18:57
Location: Courbevoie, near Paris, France

Re: EoT

Post by acs121 » 31 Mar 2019 17:03

Well... I don't see the link ? Incompatibilities between trains that are made for X track width have nothing to do with buffers that don't match X track.

McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

Re: EoT

Post by McZapkie » 31 Mar 2019 17:44

SimYouLater wrote:I agree with michael that tracks should extend to the buffer
Seems that there is misunderstanding: in this version of track terminal rails should not extend to the buffers, because are covered by sand retarder:
http://forum.modelarstwo.info/attachmen ... pg.187322/

Michael is talking about other kind of buffers, these mounted directly on rails without sand retarder (sometimes there are hydraulic retarders attached, instead of sand) - such buffers are usually placed on terminal station, where is no place for long sand retarder - therefore his idea with buffers as station tiles is right here.
My idea is right for standalone track terminals.
Last edited by McZapkie on 31 Mar 2019 23:01, edited 1 time in total.
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

Diesel Power
Traffic Manager
Traffic Manager
Posts: 171
Joined: 18 Jun 2016 19:05

Re: EoT

Post by Diesel Power » 31 Mar 2019 21:51

Thank you!!! Having buffers as objects is perfect. I like to make junctions and sidings as realistic as possible so most have a dead end peice of track often miles from a station so an object buffer is perfect. Also this is the only diagonal buffer i know about.
Great work. :bow:

SimYouLater
Chief Executive
Chief Executive
Posts: 676
Joined: 03 Apr 2016 20:19

Re: EoT

Post by SimYouLater » 31 Mar 2019 22:41

McZapkie wrote:
SimYouLater wrote:I agree with michael that tracks should extend to the buffer
Seems that there is misunderstanding: in this version of track terminal rails should not extend to the buffers, because are covered by sand retarder:
Image

Michael is talking about other kind of buffers, these mounted directly on rails without sand retarder (sometimes there are hydraulic retarders attached, instead of sand) - such buffers are usually placed on terminal station, where is no place for long sand retarder - therefore his idea with buffers as station tiles is right here.
My idea is right for standalone track terminals.
I see! Never mind, I was wrong to assume anything here. Looking forward to a release!
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.

McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

Re: EoT

Post by McZapkie » 01 Apr 2019 00:29

Version 2 uploaded to bananas.
I added small train stop signal at the beginning of the sand heap, as seen at real picture above.
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

Re: EoT

Post by McZapkie » 05 Apr 2019 08:47

Version 4 uploaded to bananas.
Black stop signs have now bounding box to avoid clipping,
and sand pile is terrain-type aware.

There is one flaw: newgrf is checking, if adjacent tile is a "railroad" type - thus it is not possible to place bumper at the end of the station - only at the end of lone track. Not sure if I should fix it or leave as it is?
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

Diesel Power
Traffic Manager
Traffic Manager
Posts: 171
Joined: 18 Jun 2016 19:05

Re: EoT

Post by Diesel Power » 05 Apr 2019 22:59

I'd leave it as is. There are already lots of station tile buffers out there. That's why this grf is unique.


Edit: I've found a bug.

If you place the buffers above an existing line, they face in the wrong direction. See screenie.
Attachments
The Snow Shifters, 28th Apr 1906#1.png
(133.33 KiB) Not downloaded yet

McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

Re: EoT

Post by McZapkie » 15 Apr 2019 22:48

Because automatic adjustment is convenient in case of lonely track, but is fooled if there are other track congested around,
I decided to add another type of EoT objects: end of track for straight track, with 4 fixed views.
These can be placed also directly to station tile.
Version 5 was downloaded to bananas, and have two objects: automatic (4 view options for straight, vertical, horizontal and double diagonal)
and fixed straight (4 view options for NE, SE, SW, NW)
Attachments
eot5.png
eot5.png (91.62 KiB) Viewed 1936 times
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

Diesel Power
Traffic Manager
Traffic Manager
Posts: 171
Joined: 18 Jun 2016 19:05

Re: EoT

Post by Diesel Power » 16 Apr 2019 06:03

Thanks for the fix!

User avatar
Dave
Moderator
Moderator
Posts: 17209
Joined: 26 Dec 2005 20:19
Location: Harringay, North London
Contact:

Re: EoT

Post by Dave » 16 Apr 2019 07:35

Really smart!
Official TT-Dave Fan Club

Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr


Why be a song when you can be a symphony? r is a...

michael blunck
Tycoon
Tycoon
Posts: 5273
Joined: 27 Apr 2005 07:09
Contact:

Re: EoT

Post by michael blunck » 16 Apr 2019 07:52

Unfortunately, OTTD only returns 4 bits for a tile's landclass *type*. Since usually there's interest for more detailed information, and because there are still 4 bits free ("reserved for future use") in var60/62, it would be beneficial to return meaningful information by use of those 4 unused bits, depending on the landclass type. I.e., in case for class 1 (railway track), it could at least reveal bits 0/1 from L5 (track in x/y direction).

That would be smart.

regards
Michael
Image

Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 10 guests