Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Tue Apr 23, 2019 3:09 am

All times are UTC




Post new topic  Reply to topic  [ 20 posts ] 
Author Message
 Post subject: EoT
PostPosted: Sun Mar 31, 2019 12:21 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 1148
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:

Attachment:
File comment: example of EoT
example.png
example.png [ 188.87 KiB | Viewed 1559 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).

_________________
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.
Addicted to freeciv longturn.


Last edited by McZapkie on Mon Apr 01, 2019 12:32 am, edited 1 time in total.

Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 7:45 am 
Offline
Route Supervisor
Route Supervisor
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 391
Location: Mariupol, Ukraine.
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.


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 8:38 am 
Offline
Tycoon
Tycoon

Joined: Wed Apr 27, 2005 7:09 am
Posts: 5260
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


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 12:18 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Mon May 25, 2015 9:09 am
Posts: 355
Location: The Netherlands
Wow. This is really cool!

It's really nice to have the option to have diagonal buffers!

_________________
No pics no clicks. Seriously.
ImageImageImageImageImageImage


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 1:49 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 1148
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:
Attachment:
example2.png
example2.png [ 29.38 KiB | Viewed 1373 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.
Addicted to freeciv longturn.


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 3:28 pm 
Offline
Director
Director

Joined: Sun Apr 03, 2016 8:19 pm
Posts: 520
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.


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 3:54 pm 
Offline
Tycoon
Tycoon

Joined: Wed Apr 27, 2005 7:09 am
Posts: 5260
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


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 4:00 pm 
Offline
Director
Director

Joined: Sun Apr 03, 2016 8:19 pm
Posts: 520
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.


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 4:25 pm 
Offline
Tycoon
Tycoon

Joined: Wed Apr 27, 2005 7:09 am
Posts: 5260
SimYouLater wrote:
Then just make the tracks rusty.

Didn't you talk about "incompatibilities"in that other thread?

regards
Michael

_________________
Image


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 5:03 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1831
Location: Courbevoie, near Paris, France
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.

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 5:44 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 1148
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/attachments/dscf8392-jpg.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.

_________________
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.
Addicted to freeciv longturn.


Last edited by McZapkie on Sun Mar 31, 2019 11:01 pm, edited 1 time in total.

Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 9:51 pm 
Offline
Engineer
Engineer

Joined: Sat Jun 18, 2016 7:05 pm
Posts: 96
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:


Top
   
 Post subject: Re: EoT
PostPosted: Sun Mar 31, 2019 10:41 pm 
Offline
Director
Director

Joined: Sun Apr 03, 2016 8:19 pm
Posts: 520
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.


Top
   
 Post subject: Re: EoT
PostPosted: Mon Apr 01, 2019 12:29 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 1148
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.
Addicted to freeciv longturn.


Top
   
 Post subject: Re: EoT
PostPosted: Fri Apr 05, 2019 8:47 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 1148
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.
Addicted to freeciv longturn.


Top
   
 Post subject: Re: EoT
PostPosted: Fri Apr 05, 2019 10:59 pm 
Offline
Engineer
Engineer

Joined: Sat Jun 18, 2016 7:05 pm
Posts: 96
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
Top
   
 Post subject: Re: EoT
PostPosted: Mon Apr 15, 2019 10:48 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 1148
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 345 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.
Addicted to freeciv longturn.
Top
   
 Post subject: Re: EoT
PostPosted: Tue Apr 16, 2019 6:03 am 
Offline
Engineer
Engineer

Joined: Sat Jun 18, 2016 7:05 pm
Posts: 96
Thanks for the fix!


Top
   
 Post subject: Re: EoT
PostPosted: Tue Apr 16, 2019 7:35 am 
Offline
Moderator
Moderator
User avatar

Joined: Mon Dec 26, 2005 8:19 pm
Posts: 17192
Location: Harringay, North London
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...


Top
   
 Post subject: Re: EoT
PostPosted: Tue Apr 16, 2019 7:52 am 
Offline
Tycoon
Tycoon

Joined: Wed Apr 27, 2005 7:09 am
Posts: 5260
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 20 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2019 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2019.
Hosted by Zernebok Hosting.