Narrow Gauge rails - updated release!

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
OzTrans
Tycoon
Tycoon
Posts: 1680
Joined: 04 Mar 2005 01:07

Post by OzTrans »

Coxx wrote:It seems to have something to do with this Nightly, ...
what nightly ? Nightlies have a release ID, like r10145. I've tried yesterday with r10145 and had it working properly, although with many more sets loaded. But now it does not work anymore with the 2 selections of yours.
... With the warning with the cansetw.grf, wich is about `tracktypecostdiff`, ...
You can ignore these warnings and the triangle. If it does not disable the set it will work. The warning relates to TTDPatch and that is not relevant in OpenTTD.
... let's try again ...
Why NGRails gets disabled I don't know, but there seams to be a bug in NGRails anyway. Adding Pikka's Viaduct to the list makes it work, but gets you an incorrect message. Ignore that message.

Make sure your set list looks like below ... Don't forget the parameter. Also, you must access the NewGRF settings window from the title screen and not in game. Once you have a disabled set you cannot fix the problem from within a game; at least I cannot.

BTW, if nobody objects, I'll have a look at NGRails maybe an update is required.
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

OzTransLtd wrote:
... let's try again ...
BTW, if nobody objects, I'll have a look at NGRails maybe an update is required.
mart3p is your man. He did the last update. :wink:
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post by Wile E. Coyote »

I've allready reported similar problem to mart3p:
My post to mart3p wrote:...
Some problems occur: Narrow Gauge rails are disabling under various Nightly versions. I tried them under Nightly from 9946 to 10048.
...
NG GRF is with red square, and Serbian set is with green square and triangle, so it's not disabled, but instead NG rails, there are Maglev rails.
Under Patch everything is OK.
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.


Runner-up in "Best avatar Forums award" for years 2006 and 2010!
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1732
Joined: 30 Mar 2005 09:43

Post by peter1138 »

Uh, mart3p isn't actually a developer.

http://bugs.openttd.org/
He's like, some kind of OpenTTD developer.
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

peter1138 wrote:Uh, mart3p isn't actually a developer.

http://bugs.openttd.org/
Fair enough, but his name is on this file. Should it be removed and replaced by "developer"? The end users do not know wherein lies the problem and the first line of contact usually is the author who's name appears on a file. If the author feels that his code may not be the issue but rather lies with the application on top of which his code runs, then would it not be up to the author to communicate with the developers?
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

wallyweb wrote:
peter1138 wrote:Uh, mart3p isn't actually a developer.

http://bugs.openttd.org/
Fair enough, but his name is on this file. Should it be removed and replaced by "developer"? The end users do not know wherein lies the problem and the first line of contact usually is the author who's name appears on a file. If the author feels that his code may not be the issue but rather lies with the application on top of which his code runs, then would it not be up to the author to communicate with the developers?
or ask the original bug reporter to submit a report themselves.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

robotboy wrote:
wallyweb wrote:
peter1138 wrote:Uh, mart3p isn't actually a developer.

http://bugs.openttd.org/
Fair enough, but his name is on this file. Should it be removed and replaced by "developer"? The end users do not know wherein lies the problem and the first line of contact usually is the author who's name appears on a file. If the author feels that his code may not be the issue but rather lies with the application on top of which his code runs, then would it not be up to the author to communicate with the developers?
or ask the original bug reporter to submit a report themselves.
... as in kick it back and say "Its not my problem. Try the shop down the hall." ?
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

Not necessarily. They reported the bug so they should be the one to report it, and they may know more about the bug than the grf author.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

robotboy wrote:Not necessarily. They reported the bug so they should be the one to report it, and they may know more about the bug than the grf author.
in which case it logically would not be a grf bug but something that also affects other files, in which case the devs would, I agree, be the proper route to get a resolution. However, if a bug is first observed with a particular grf, then that grf's author is most definitely the first recourse for resolution. Until the author confirms that the problem lies outside his works, the problem belongs to him. If the devs determine that the author messed up, I am sure that they would send it back forthwith, a step in the route to resolution that could have been avoided.
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1732
Joined: 30 Mar 2005 09:43

Post by peter1138 »

Ok, I just wasn't aware that mart3p had anything to do with the GRF (Yes, I can't read...)
He's like, some kind of OpenTTD developer.
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post by Wile E. Coyote »

It seems no, because it worked with older RCs and Nighties.

EDIT: I've just tested with OTTD Nightly r10183 and all is OK. :D
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.


Runner-up in "Best avatar Forums award" for years 2006 and 2010!
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Wile E. Coyote wrote:I've just tested with OTTD Nightly r10183 and all is OK. :D
Yes, it was fixed by maedhros at r10178. :)

A second (non-critical) problem still occurs though. As shown in OzTransLtd's screenshot, the message "Error: ngrails.grf must be loaded after pb_viaduct.grf" is shown even when the files are loaded in the correct order. I think this is also an OTTD bug, it was working ok and it works in TTDPatch. I will investigate this further and post a bug report.
Image
User avatar
OzTrans
Tycoon
Tycoon
Posts: 1680
Joined: 04 Mar 2005 01:07

Post by OzTrans »

mart3p wrote: ... A second (non-critical) problem still occurs though. As shown in OzTransLtd's screenshot, the message "Error: ngrails.grf must be loaded after pb_viaduct.grf" is shown even when the files are loaded in the correct order. I think this is also an OTTD bug, it was working ok and it works in TTDPatch. ...
Looking at that code :

Code: Select all

  531 * 9      09 88 04 0A 44 44 02 01 00
  532 * 9      09 88 04 06 44 44 02 01 01
  533 * 54     0B 02 1F FF "ngrailsw.grf must be loaded after pb_viaduct.grf." 00
I would say, sprite 531 should not skip the grf, but skip number of remaining sprites instead. That was the problem we first had and although this is now fixed with R10178.

Sprite 532, seems to be the problem it does not skip the message, which points to a bug in OpenTTD. However, I would say, checking during initialisation is incorrect, as at that stage the viaduct grf is not (yet) activated. I did change it to an action-07, but it did not correct the problem either.

My 2 cents ...
User avatar
Carlo Ghega
Engineer
Engineer
Posts: 92
Joined: 07 Jan 2007 19:37
Location: Vienna

Post by Carlo Ghega »

Not a very acute problem any more, as OzTransLtd was so kind to offer a hotfix for the Canadian Station Set in record time, and this seems to be the only GRF implementing snow in temperate at the moment to my knowledge.

Still it might be helpful to have it in the right thread: While anything seems to work perfectly well in the arctic climate, NG-Rails and snow in the temperate climate don't work together. The rails turn into maglev ones as soon as they reach the snowline.

First noticed in r1599, reproduced and the same result in 2.5 beta 9 and 2.6 alpha r1590 by OzTransLtd.


Occures even when the only two entries in newgrf.cfg are ngrailsw.grf and canstnw.grf.

ttdpatch.cfg here: http://www.tt-forums.net/download.php?id=73159

Some more info and the hotfix (solving the problem for the Canadian Station Set) in grf-format can be found here: http://www.tt-forums.net/viewtopic.php?p=600213#600212

NG-rails work with snow in temperate already by replacing the NG-Rails-GRF by the hotfix. To get the Serbian-Narrow-Gauge-Set working proper, it needs putting both, (the hotfix should be above) in the newgrf.cfg - what also get's Pikkas stonebridge to work in the patch.

Best regards,

Carlo
Attachments
ngrails_bugged_939.png
ngrails_bugged_939.png (17.76 KiB) Viewed 12744 times
E pur si muove!
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

Ben_K needs permission to use the narrow gauge rails so that he can do a narrow gauge version of his BKTunnels.

Can somebody help him with this? :wink:
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Re: Narrow Gauge rails - updated release!

Post by mart3p »

New Version of Narrow Gauge Rails (v0.93)

I’ve done some updates to the Narrow Gauge Rails grf; download the new version from here.

New features
  • - Support for TTRS3 added. Narrow gauge level crossings for all TTRS3 road types.
    - German translations added.
    - French translations added.
Bug fixes
  • - When used with grfs that add snow in the temperate climate, snowy tiles where shown with the wrong track type.
    - Sprite offset problem with some bridge ramps fixed.
    - Sprite offset problem with NW facing long depot fixed.
OpenTTD support
  • - Narrow gauge button and cursor sprites for OpenTTD are now working again. Note, requires version 0.6.0 r11433 or greater.
    - Adjusted rail costs now working for OpenTTD. Note, requires version 0.6.0 r11265 or greater.
I've not been able to test the DOS version (ngrails.grf), could someone let me know if it works?

Thanks to Zimmlock for the TTRS3 narrow gauge level crossing sprites and Csaboka for information on their usage. Thanks to Carlo Ghega and wallyweb for the translations and for testing. :)
Attachments
Thanks to wallyweb for the savegame from which this screenshot was taken
Thanks to wallyweb for the savegame from which this screenshot was taken
wallyweb_1.png (97.02 KiB) Viewed 13252 times
Last edited by mart3p on 22 Jan 2008 11:45, edited 1 time in total.
Image
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Re: Narrow Gauge rails - updated release!

Post by MJS »

Very nice! Do you have a list which sets use or are compatible with the NG rails? (I can only think of the Canadian and US sets, but there might be more.)
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Re: Narrow Gauge rails - updated release!

Post by Ameecher »

Serbian set is good for NG stuff too.
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Re: Narrow Gauge rails - updated release!

Post by mart3p »

MJS wrote:Very nice!
Thanks :)
MJS wrote:Do you have a list which sets use or are compatible with the NG rails? (I can only think of the Canadian and US sets, but there might be more.)
The Canadian train set has narrow gauge rails built-in and does not require this grf. It is possible though, to load ngrailsw.grf after the Canadian set to use some of the extra features (viaduct bridge, ttrs3 support act.).

The US set afaik, does not use narrow gauge rails.

The only set that currently needs ngrails.grf is the Serbian Narrow Gauge set (as Ameecher said).

There is also the UK Narrow Gauge set but I don't believe it has been released, apart from some test versions.

Other sets planning to include narrow gauge trains are the French set and the Swiss set .
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Re: Narrow Gauge rails - updated release!

Post by mart3p »

I found a couple of bugs:
  • 3rd parameter of TTRS3 was ignored, causing TTRS3 road crossings to appear even when TTRS3 roads were disabled.
    Incorrect operation with the grf parameter =1. As no currently released train sets use this setting, I doubt that anyone has noticed. ;)
I have corrected these problems and posted an update: ngrails(w).grf v0.93a.
Image
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: GarryG and 61 guests