Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Var 9E bit 3 not applied to ARVs #2553

Closed
DorpsGek opened this issue Jan 19, 2009 · 9 comments
Closed

Var 9E bit 3 not applied to ARVs #2553

DorpsGek opened this issue Jan 19, 2009 · 9 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

George opened the ticket and wrote:

R15141
The distance between parts in horizontal view is larger on the map,than in vehicle view.
The similar situation for trains should be solved with bit 3 of global var 9E (http://wiki.ttdpatch.net/tiki-index.php?page=ActionD: 3 8 Display train vehicles with full width of 32 pixels in depot window (instead of 29 pixels)), but it is not applied for ARVs.

Please provide a possibility to do the same for ARVs

Attachments

Reported version: trunk
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/2553
@DorpsGek
Copy link
Member Author

George wrote:

eGRVTS

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2553#comment5373

@DorpsGek
Copy link
Member Author

DorpsGek commented Jun 6, 2009

andythenorth wrote:

Can confirm that this is a right pain in the arse when coding ARVs. Have spent quite some hours trying different vehicle widths to try and address this, but the result is always a sub-standard compromise :(


This comment was imported from FlySpray: https://bugs.openttd.org/task/2553#comment6177

@DorpsGek
Copy link
Member Author

DorpsGek commented Jun 7, 2009

andythenorth wrote:

sorry annoying double post, browser-refresh screwup by me :(


This comment was imported from FlySpray: https://bugs.openttd.org/task/2553#comment6178

@DorpsGek
Copy link
Member Author

frosch wrote:

So, now I have a working patch for this :)

But some things are left:

  1. Just to note: The default width for RV is 28, not 29 as for trains. Whatever TTDP guys intended with that... However due to compatibility I guess it is not acceptable to just default to 32 pixels.
  2. So there is a need for some bit to activate it. This bit will be grf local (just as the train bit will be in near future). However, shall there be a separate bit (i.e. bit 6) for RV, or shall just the same bit (i.e. bit 3) be used as for trains?

This comment was imported from FlySpray: https://bugs.openttd.org/task/2553#comment6318

@DorpsGek
Copy link
Member Author

George wrote:

IMHO, there are no sets that have both RVs and trains, so if the bit is GRF based, then it can be the same bit.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2553#comment6319

@DorpsGek
Copy link
Member Author

frosch wrote:

Hmm, well. Attached is a patch and a win32 binary, which should work with the language files of nightly 16943.

It adds var 9E bit 6 to enable 32pixel view for roadvehicles (local per grf).
However, I am not that sure whether 32 pixels is the correct length here. RV are only shown horizontally/vertically in corners. and there two RV are never in a row (though maybe for shorter parts). So it is hard to tell, but 32 pixels seems a bit long to me. OTOH 32 is dividable by 8 which is useful for the n/8 length on straight road.

So maybe someone wants to test this, and figure out whether 32 pixels is suitable for various 1/8-8/8 vehicle lengths, or whether there is a better length :)

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2553#comment6383

@DorpsGek
Copy link
Member Author

frosch wrote:

Just for reference:
http://www.tt-forums.net/viewtopic.php?f=68&t=47057


This comment was imported from FlySpray: https://bugs.openttd.org/task/2553#comment7619

@DorpsGek
Copy link
Member Author

DorpsGek commented Jun 7, 2012

frosch closed the ticket.

Reason for closing: Implemented

in r24332


This comment was imported from FlySpray: https://bugs.openttd.org/task/2553

@DorpsGek DorpsGek closed this as completed Jun 7, 2012
@DorpsGek
Copy link
Member Author

DorpsGek commented Jun 7, 2012

frosch wrote:

The length of RV is now always 32 pixels independent of any flag.
A detailed analyses showed that 32 pixels is the correct length in inner and outer road corners: This can be seen for short articulated parts following each other in corners when they have both the horizonal orientation for a short time.

Since this also looks fine for most old GRFs, this has been made the default without any switch. (And those which do not look fine, also looked wrong before.)


This comment was imported from FlySpray: https://bugs.openttd.org/task/2553#comment11280

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Articulated labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant