Skip to main content
Topic: [Bug] Glitch with city roads graphics (Read 9525 times) previous topic - next topic

[Bug] Glitch with city roads graphics

For some odd reason, there appear to be gaps/lines between the roads in towns, as in the following image:



This appears to be as a result of the road graphics being very slightly smaller than the pavement graphics.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: [Bug] Glitch with city roads graphics

Reply #1
It also only occurs on the non-standard zoom levels (i.e. not on the 1 tile = 128x128 pixels zoom) - I think it's someting to do with how the game re-scales images at different zoom levels.

Re: [Bug] Glitch with city roads graphics

Reply #2
Actually, for me, it occurs even at standard zoom levels (using the latest nightly of Simutrans-Standard, as well as the latest Simutrans-Expeirmental).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: [Bug] Glitch with city roads graphics

Reply #3
Regarding zooming, perhaps the cure might be extending the road "backwards", away from view, by at least two rows of pixels (****uming these are multiples of two and nearest neighbour is used, taking the top-left-most pixel).

I don't like it, but imho it is more of a systemic shortcoming than a bug... plus it's hard to do much about it.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: [Bug] Glitch with city roads graphics

Reply #4
Actually, for me, it occurs even at standard zoom levels (using the latest nightly of Simutrans-Standard, as well as the latest Simutrans-Expeirmental).

For me as well. This is a bug in the graphics, if it's not intended...



Re: [Bug] Glitch with city roads graphics

Reply #5
Hmm, I've never seen that at that zoom level on my setup before... I'm beginning to think somthing may be a bit suspect about my setup though as several people have reported bugs that just don't exist on my system!!!  These graphics haven't been changed since the release of 0.01 (>2 years ago!) so I'm really not sure why they are throwing up problems now...  Looks like it ought to be fixed at some point though.

Re: [Bug] Glitch with city roads graphics

Reply #6
Apparently, the sidewalk hides the edge of the road behind it, since the sidewalk is larger than the tile size... The size of sidewalk is 66 pix x 66 pix, although it should be 64 pix x 64 pix, if I counted correctly.

Re: [Bug] Glitch with city roads graphics

Reply #7
OK, definitely cannot reproduce this with nightly r2569 on Gentoo Linux, and the latest 1.02 pak128.Britain download.  What exes/OS are people with the problem using?  Should this even make a difference?

Re: [Bug] Glitch with city roads graphics

Reply #8
It shouldn't make a difference, but perhaps that is the issue. I am using Windows XP.

Edit: I have found that this occurs both in the GDI and SDL versions under Windows.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

 

Re: [Bug] Glitch with city roads graphics

Reply #9
I find the glitch on 1.02, pakBritain nightly from a few nights back and running Linux... No idea why...

Re: [Bug] Glitch with city roads graphics

Reply #10
Even more strange!  I've just done a fresh install of nightly r2605 and pak128.Britain 1.03 - no problem here.  Is my setup bugproof? :D

Re: [Bug] Glitch with city roads graphics

Reply #11
heh - i play with the gridlines on, so would never have seen this anyway!  ;D

Re: [Bug] Glitch with city roads graphics

Reply #12
On a related note, I am getting 1 pixels worth of 'dead space' (non-updated pixels) on both lower sides of a pavement square if it is against empty ground.
Is it possible that at some point in the development of 1.02 this sprite got moved up by 2 pixels, as such a situation would explain the recent appearance of both of the errors seen in this thread.

Re: [Bug] Glitch with city roads graphics

Reply #13
Still can't replicate any of these bugs.  And I haven't done anything to pavements/roads for several months...

Re: [Bug] Glitch with city roads graphics

Reply #14
I got the same bug, and I think yoshi's observation is right.
Parsley, sage, rosemary, and maggikraut.

Re: [Bug] Glitch with city roads graphics

Reply #15
Hmm, still doesn't explain why I don't get that bug on my system, but I'm willing to edit the pavement tiles to see if that fixes the problem for those that have it.

Here's a fixed png for the pavement - can someone who has had the problem try with this png? (you will need to makeobj extract BritWay.pak and replace the pavement).