Halftile foundations (in trunk since r11321)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Halftile foundations :)

Post by FooBar »

Awesome!

This patch really deserves a place in my 'best features ever'-list.

Thanks to everyone who made this possible! Finally we can have some realistic construction in those mountains!
Attachments
Thanks-for-this-great-feature-screenshot-with-advertisement-for-updated-New-Tram-Tracks ;)
Thanks-for-this-great-feature-screenshot-with-advertisement-for-updated-New-Tram-Tracks ;)
Darnpool Bridge Transport, 22nd Mar 1950.png (36.74 KiB) Viewed 5744 times
User avatar
Ben_K
Tycoon
Tycoon
Posts: 1166
Joined: 01 Jun 2006 15:15
Location: Sydney, AUS

Re: Halftile foundations :)

Post by Ben_K »

That looks excellent! Well done Frosch!! 8)
Scia
Traffic Manager
Traffic Manager
Posts: 155
Joined: 02 Aug 2005 19:46
Location: The Netherlands

Re: Halftile foundations :)

Post by Scia »

This will really take mountain routes to a new level. Good work! :D
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Halftile foundations :)

Post by frosch »

Thanks everyone for the nice feedback. I would also like to thank some (alphabetically):

Acerbus: As Roujin pointed out: The anti-zig-zag foundations would never have been created, if you had not created that mock-up. Initially I though of drawing some extra graphics for all slopes, but that was way too much work. You showed me a way to create a nice looking foundation with the existing graphics. :D

Rubidium: Thanks for the lot of work reviewing the patch as well as giving nice feedback. And finally thanks for updating the NewGrfSpecs Wiki. I was going to insert a paragraph this morning, but it was already done :D

About NewGrf: I was asked how the NewGrf support works in detail. Last friday I quietly placed an example newgrf in the second post, that demonstrates the usage. Basically 16 sprites got appended at the end of the usual Action5 block. However to tell the truth I could not be bothered to draw 16 most identical sprites. I only drew the horizontal bar (last sprite if you decode the example grf), the rest is automatically generated out of that.
So if you want to draw new halftile-foundations, you may only have to draw that horizontal bar. Then you can send me your sprite and I will simply pipe it in my small tool to generate the rest. :D
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
m3henry
Tycoon
Tycoon
Posts: 1985
Joined: 15 Feb 2006 12:00
Location: Hampshire

Re: Halftile foundations (in trunk since r11321)

Post by m3henry »

Yay! :D
A idea I had in 2006, has come around successfully and been proven worthwhile!
The occasional look back at your past can teach you a great many things...
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Re: Halftile foundations (in trunk since r11321)

Post by Wolf01 »

for the "who had the idea for first" contest
an idea i had in 2005, with the basetunnels too: http://www.tt-forums.net/viewtopic.php? ... 377&hilit=
:P
User avatar
NukeBuster
Traffic Manager
Traffic Manager
Posts: 222
Joined: 04 Jan 2006 18:16
Location: Alphen aan den Rijn, The Netherlands
Contact:

Re: Halftile foundations :)

Post by NukeBuster »

Roujin wrote:very nice :) if only different tracktypes were allowed on one tile, we could build a nice trace for monorail/maglev :lol:

ok, we can, but not in curves with the new halftiles. only if it were the same track type :P
Frosch, I think you read over this post. Do you think it would be hard to do something like this? As you also made a patch that will allow you to build on the other side of the track while a train runs over it...

A link to an example...
http://www.tt-forums.net/download.php?id=79324
NukeBuster

Transport Empire: The Transport Empire Linux effort
Join the Transport Empire IRC channel: [url]irc://irc.oftc.net/transportempire[/url] !

OpenTTD patch(es): Password at join
sir_msgs
Engineer
Engineer
Posts: 10
Joined: 12 Jun 2007 10:03

Re: Halftile foundations :)

Post by sir_msgs »

NukeBuster wrote:
Roujin wrote:very nice :) if only different tracktypes were allowed on one tile, we could build a nice trace for monorail/maglev :lol:

ok, we can, but not in curves with the new halftiles. only if it were the same track type :P
Frosch, I think you read over this post. Do you think it would be hard to do something like this? As you also made a patch that will allow you to build on the other side of the track while a train runs over it...

A link to an example...
http://www.tt-forums.net/download.php?id=79324
And same applies to building a track on a halftile already owned by a different company...

EDIT screenshot
Attachments
screen.png
screen.png (39.05 KiB) Viewed 3848 times
Image
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

Re: Halftile foundations (in trunk since r11321)

Post by Mchl »

I suppose this one would be much more difficult. A tile can have only one owner at the moment, and only one rail type assigned IIRC. I think that map array is a limitation here.

Anyway, these features would be useful indeed ;)
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Re: Halftile foundations (in trunk since r11321)

Post by Darkvater »

Wolf01 wrote:for the "who had the idea for first" contest
an idea i had in 2005, with the basetunnels too: https://www.tt-forums.net/viewtopic.php? ... 377&hilit=
:P
Euhm; 2003 August 13 :P

New foundation graphics for diagonal tracks?

Image

/me vanishes
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Re: Halftile foundations (in trunk since r11321)

Post by Wolf01 »

and the winner is.... "Darkvater"

ehm, where have you been hidden?
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Halftile foundations (in trunk since r11321)

Post by frosch »

Lol. I did not knew how often this was suggested, and to be honest I cannot remember if I ever browsed the TTDP Suggestion Forum (the OTTD one was boring enough after some weeks). But I want to quote one of my lecturers: If you search long enough, you will discover everything to be written earlier by someone.

More interesting for me: Who suggested first to extent the clipping of sprites at viewport boundaries to generally draw rectangular parts of sprites? :D

About building different railtypes of different companies on one tile:
First you will have to define how the elrail/normal-rail conversion tool should work on such tiles.
About the coding: The sprite drawing is easy. Everything can be created from the existing sprites with the above technique (also note that this will therefore not break any newgrf).
The main task is to find a nice way to store everything in the map array. Btw. you can then extent this to also allow different grass growth on the halftiles. At a first glance there are plenty of free bits in the rail tiles. But at a second: Every patch that deals with railways like Routemarkers, grass growth on unused tracks, ... wastes nearly all of them. As they are all nice features you will need to find a way, which nicely combines them.

Overall I think it would be an easy task to code something that works, but it is a bit harder to find something nice.

The bad news for you: I will not code it as I am not really interested in it. So you have to find someone else. :P
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: Halftile foundations (in trunk since r11321)

Post by athanasios »

:( That's bad news.

Darkvater: With your long absence from the forums I though you were abducted! :mrgreen: So you are still around.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Re: Halftile foundations (in trunk since r11321)

Post by Ameecher »

I thought I'd let you guys know that there is now a brick foundation grf that works with the anti-zig-zag patch. Congratulations to frosch on this patch, it looks very good.

One thing I do request is that someone takes a screenshot of the .grf file in use on a _ build on slope so that I can add it to my site, (I'm a TTDP user so can't do this myself). Thanks very much and enjoy :)
Image
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests