News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

[Bug] Glitch with city roads graphics

Started by jamespetts, July 12, 2009, 10:53:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

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.

The Hood

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.

jamespetts

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.

VS

Regarding zooming, perhaps the cure might be extending the road "backwards", away from view, by at least two rows of pixels (assuming 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!

yoshi

Quote from: jamespetts on July 13, 2009, 08:06:46 AM
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...



The Hood

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.

yoshi

#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.

The Hood

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?

jamespetts

#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.

kierongreen

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

The Hood

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

AP

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

mjhn

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.

The Hood

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

Dwachs

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

The Hood

#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).