News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

Alignment/clipping sprite problem r6298

Started by Spacethingy, January 25, 2013, 02:58:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Spacethingy

Hi guys...  ;D


Some nasty sprite alignment problems seemed to have slipped in:






       
  • Windows SDL and GDI.
  • Only seems to effect pak64, although I haven't looked at any busy maps in other paks.
  • Found and examined in r6212, checked same in r6298+ pak64-1143
  • I don't know if it's just the shown vehicles this applies to, they seemed the most common though.

       
  • Found when convoys are created normally in single player, also found when logging onto multiplayer servers (a lot of above pictures found on entropy C server).
Hope this helps, thanks.

(BTW, I posted this here as I'm not 100% sure it's a just pak64 thing - sorry...)
Life is like a Simutrans transformer:

You only get one of them, and you can't have it on a slope.

Ters

The telescoping "bugs" have been in pak64 a long time (years). There used to be more of them. I'm not 100% sure about the gap bugs. (I also seen a bug where the last two wagons occupied the same space, but only as a one-off occurence so far.)

prissi

Those are usually engines aligned worngly and thus should be pak specific. I will check it.

Ters

I have seen gaps suddenly appearing in some cases, but they disappear the next time the train turns around. The BR234 is a chronic misalignment I've mentioned earlier.

My suggestion to allow multiple X2(000) sets has also caused an overlap bug when moving horizontally relative to the screen (diagonally relative to tiles). As the ends are shorter than the coaches (according to Wikipedia), compressing their graphics might be the right thing.

Václav

As I looked at those images, it is similar to matter of wrong alignment of my tram(s) for pak96.comic. When two vehicles of different length are together, one is aligned wrong - but following ones of the same length are aligned right - related to previous one. It is well visible in line 1 and 3 of image
.

I partly corrected this wrong alignment with using of additional alignment coded in dat file (offsets) - but it is not perfect.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

greenling

Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

paco_m

These problems normally are caused by one of the following issues

1) you draw views of the vehicle that
doesn't match exactly with the defined length, e.g. you draw actually
a length=7,5 vehicle and assign it as length=8 in the dat file = gap.

2) Another possibility is that the vehicle is just aligned in a wrong way,
in this case you can combine it correctly with other vehicles of same
length and alignment but not with vehicle that have other length definitions.

3) finally the "telescoped" engines:
pak64 uses a more realistic length for diagonal views (factor 1,4 = shorter) that was not
available in earlier Simutrans version. Some paksets like pak64.german and a lot
of addons still use the old factor=2 and appear much longer in diagonal views
Using this models in pak64 always produces overlaps

prissi

Most difficult is the alignment with four views (which also only works with lenght=8) maybe I did a mistake, since Ludmilla is lenght 9 I think.