The International Simutrans Forum

PakSets and Customization => Pak64 => Pak64 Bug Reports => Topic started by: Spacethingy on January 25, 2013, 02:58:03 PM

Title: Alignment/clipping sprite problem r6298
Post by: Spacethingy on January 25, 2013, 02:58:03 PM
Hi guys...  ;D


Some nasty sprite alignment problems seemed to have slipped in:


(http://i.imgur.com/viFJLyO.jpg)


Hope this helps, thanks.

(BTW, I posted this here as I'm not 100% sure it's a just pak64 thing - sorry...)
Title: Re: Alignment/clipping sprite problem r6298
Post by: Ters on January 25, 2013, 04:26:15 PM
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.)
Title: Re: Alignment/clipping sprite problem r6298
Post by: prissi on January 25, 2013, 04:59:56 PM
Those are usually engines aligned worngly and thus should be pak specific. I will check it.
Title: Re: Alignment/clipping sprite problem r6298
Post by: Ters on January 25, 2013, 06:46:23 PM
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.
Title: Re: Alignment/clipping sprite problem r6298
Post by: Václav on January 25, 2013, 08:41:49 PM
As I looked at those images, it is similar to matter of wrong alignment of my tram(s) for pak96.comic (http://forum.simutrans.com/index.php?topic=11070.0). 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
(http://i.imgur.com/viFJLyO.jpg).

I partly corrected this wrong alignment with using of additional alignment coded in dat file (offsets) - but it is not perfect.
Title: Re: Alignment/clipping sprite problem r6298
Post by: greenling on January 25, 2013, 09:55:03 PM
Yes those problems must we go!
Title: Re: Alignment/clipping sprite problem r6298
Post by: paco_m on February 01, 2013, 08:29:01 AM
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
Title: Re: Alignment/clipping sprite problem r6298
Post by: prissi on February 01, 2013, 09:15:38 AM
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.