Aquaduct GRF for nightly r1498.

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

User avatar
JGR
Tycoon
Tycoon
Posts: 2604
Joined: 08 Aug 2005 13:46
Location: Ipswich

Post by JGR »

After some fiddling and the Windows Magnifier I've cornered the first bug, I will investigate and report back some time later.

JGR
User avatar
SuperTycoon
Chief Executive
Chief Executive
Posts: 733
Joined: 24 Jun 2004 20:05

Post by SuperTycoon »

The aqaduct seems to lack enough depth for a boat to go through it? Maybe make the bridge a little thicker and then prohibit single tile height aqueducts being built? Is that even possible?
User avatar
Caelan
Route Supervisor
Route Supervisor
Posts: 412
Joined: 23 Dec 2005 12:56
Location: Haarlem, Netherlands

Post by Caelan »

If its possible, it sounds like a good solution, i already build most of my bridges at two tiles higher anyway for realism
Image
User avatar
Carlo Ghega
Engineer
Engineer
Posts: 92
Joined: 07 Jan 2007 19:37
Location: Vienna

Post by Carlo Ghega »

Anyway: Thanks a lot for that very nice featurure!

Best regards

CG
E pur si muove!
User avatar
JGR
Tycoon
Tycoon
Posts: 2604
Joined: 08 Aug 2005 13:46
Location: Ipswich

Post by JGR »

The first bug is now fixed, see next nightly.
Issue was mostly due to my badly written code which overwrote the value to be tested just before testing it :oops:
I will now bash my head against the screen to determine the cause of the second bug...

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

Post by michael blunck »

16:49 Changeset [1536] by JGR
trunk/patches/hbridges.asm: Fix bug with sprite sorting/clipping of vehicles under aqueducts due to …
In r1536 there´s a problem with showing middle parts of canal bridges (aka aqueducts) correctly, see attachment. I´m using your .grf here (only slightly modified), which does indeed work under r1518.

I´m using the DOS version, BTW.

regards
Michael
Attachments
SCR445.png
SCR445.png (6.93 KiB) Viewed 5235 times
Image
User avatar
JGR
Tycoon
Tycoon
Posts: 2604
Joined: 08 Aug 2005 13:46
Location: Ipswich

Post by JGR »

Michael:
It may take me a while to work out why the DOS version isn't working...

The second previosu bug, with vehicles below and above aqueducts should now be fixed in the latest nightly.

JGR
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

hmm, have you checked via idb if the windows & dos version fragments will need the same size?
User avatar
JGR
Tycoon
Tycoon
Posts: 2604
Joined: 08 Aug 2005 13:46
Location: Ipswich

Post by JGR »

Yes, they are the same size, and the fragment in question already existed for higher bridges. It was more sensible to integrate the code into higher bridges.
I will have a thorough look at this sometime later...
I am off to school soon...

JGR
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

I thought it might be prudent to post this here as well as in the River waterside (riverbanks) thread:
wallyweb wrote:The rivers are built by clicking on the canal icon while holding the Ctrl (control) key.
The aqueducts are built by clicking on the canal icon while holding the Ctrl (control) key.
If you are building rivers, you must press the Ctrl key continuously.
If you are building aqueducts, you must release the Ctrl key.
User avatar
ISA
Tycoon
Tycoon
Posts: 3384
Joined: 17 Oct 2005 20:56
Location: Estonia

Post by ISA »

Little question.
Maybe someone know why Windows version viaduct seems same as Michel's one above picture?
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

I just noticed this with the ttdpbase[w].grf that Lakie just released that now includes the aqueduct grf.
The problem might go back to the standalone jaquaduct.grf but I now have no way to test it without the old ttdpbase[w].grf.
With higher bridge where the land (not water) underneath is at sea level, the abutments display a bit of the beach and the waves breaking on it.

You might want to check with Oskar to see if his changes to the canal code might have something to do with this.
Attachments
Red circles highlight beaches.
Red circles highlight beaches.
sea_level.png (32.21 KiB) Viewed 4183 times
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

The nfo code is the same in both grfs, so it must be an internal issue.

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

Lakie wrote:The nfo code is the same in both grfs, so it must be an internal issue.

~ Lakie
I agree.
I just found the prior ttdpbase[w].grf without the aquaduct so I tested with jaquaduct.grf as a stand alone file. I also went to nightly r1568 that does not include Oskar's changes. The issue is still there.
Your turn JGR :wink:
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Well the code for trying to guess if a coastline gets drawn was never that good, as you see on my code comments in selectgroundforbridge...maybe it's now totally broken..
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
m3henry
Tycoon
Tycoon
Posts: 1985
Joined: 15 Feb 2006 12:00
Location: Hampshire

Post by m3henry »

that sometime happens for me on other bridges. although it seems to happen only when the height of the bridge is 8 or if the bridge crosses land of 0 height
The occasional look back at your past can teach you a great many things...
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

m3henry wrote:that sometime happens for me on other bridges. although it seems to happen only when the height of the bridge is 8 or if the bridge crosses land of 0 height
That's where these occur.
User avatar
m3henry
Tycoon
Tycoon
Posts: 1985
Joined: 15 Feb 2006 12:00
Location: Hampshire

Post by m3henry »

oops, didnt read the whole post properly :P
The occasional look back at your past can teach you a great many things...
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

m3henry wrote:oops, didnt read the whole post properly :P
That's ok ... I didn't notice that the problem also exists for road and rail bridges too. :wink:
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Google [Bot] and 23 guests