First of all, you have done great job!

I quickly tested the latest file and found one bug - Thessaloniki metro 2014 has gap between firs and last wagon (screenhot attached). All other models seem working correct.
Moderator: Graphics Moderators
Thanks, nice spot. I created a bug report on the tracker, so that I remember to fix it at one point. I do need to find out where it goes wrong. I suspect the graphics file is incorrect, but I do need to confirm that.WLK wrote:Hello,
First of all, you have done great job!![]()
I quickly tested the latest file and found one bug - Thessaloniki metro 2014 has gap between firs and last wagon (screenhot attached). All other models seem working correct.
It is also misaligned when going south, but then the front part is aligned incorrectly.Voyager One wrote:Hmmm, haven't noticed this one... must have missed it... it seems it's misaligned in all directions except going south.
That sounds like it's not an 8/8 length vehicle but smaller - but using the 8/8 alignment offsetsTransportman wrote:Thanks, nice spot. I created a bug report on the tracker, so that I remember to fix it at one point. I do need to find out where it goes wrong. I suspect the graphics file is incorrect, but I do need to confirm that.WLK wrote:Hello,
First of all, you have done great job!![]()
I quickly tested the latest file and found one bug - Thessaloniki metro 2014 has gap between firs and last wagon (screenhot attached). All other models seem working correct.
It is also misaligned when going south, but then the front part is aligned incorrectly.Voyager One wrote:Hmmm, haven't noticed this one... must have missed it... it seems it's misaligned in all directions except going south.
I did mean the length and alignment info in the code, not the grapics file:)Voyager One wrote:It is a 6/8 long vehicle but my file seems aligned correctly... Dunno...
It is a 6/8 length vehicle, but the offsets are taking care of in the graphics file themselves. There are also several 7/8 vehicles using the same template, but those appear to be fine.planetmaker wrote:That sounds like it's not an 8/8 length vehicle but smaller - but using the 8/8 alignment offsets
No ****.andythenorth wrote:Having non-standard row offsets makes templating hard.
Unfortunately, IIRC, I wouldn't bet on that.Transportman wrote:Lets hope most of the uncoded MUs are just 8/8 vehicles
"most" MUs are, but there's still several which aren't, as well as some engines (including dual-headed engines and engines including B-units).Transportman wrote:Lets hope most of the uncoded MUs are just 8/8 vehicles, that is much simpler. Thank you all for pointing me in the right direction.
Code: Select all
template template_2cc_engines_general_1234(x, y) {
//[left_x, upper_y, width, height, offset_x, offset_y]
[x , y, 8, 24, -3, -12]
[x+9 , y, 22, 20, -14, -12]
[x+32 , y, 32, 16, -16, -12]
[x+65 , y, 22, 20, -6, -12]
}
template template_2cc_engines_general_5678(x, y) {
//[left_x, upper_y, width, height, offset_x, offset_y]
[x+88 , y, 8, 24, -3, -12]
[x+97 , y, 22, 20, -14, -12]
[x+120, y, 32, 16, -16, -12]
[x+153, y, 22, 20, -6, -12]
}
template template_2cc_engines_general(x, y) {
template_2cc_engines_general_1234(x, y)
template_2cc_engines_general_5678(x, y)
}
template template_2cc_engines_general_flipped(x, y) {
template_2cc_engines_general_5678(x, y)
template_2cc_engines_general_1234(x, y)
}
I expect no problems with engines where the second parts directly follows the first part. The problem with MUs happens because I code them as dual-headed (so front and back of the train) and use var[0xC8] to determine the graphics. For 8/8 it goes fine, but for shorter vehicles it gets the wrong alignments.Purno wrote:"most" MUs are, but there's still several which aren't, as well as some engines (including dual-headed engines and engines including B-units).Transportman wrote:Lets hope most of the uncoded MUs are just 8/8 vehicles, that is much simpler. Thank you all for pointing me in the right direction.
I was thinking about arranging them like this: The graphics keep the same order as the other 8/8 MUs and doesn't need additional code. Only the location in the blue boxes are changed. I think that is less work than the re-arrangement you propose.juzza1 wrote:If you are going to fix some sprites, my suggestion would be to re-arrange the sprites like this:
...
Of course this is a lot of boring grunt work graphics-wise.
That would work too. Only thing is it makes the templating system slightly harder to remember for the artists (moot point with this set, as it's already drawn?)Transportman wrote:The graphics keep the same order as the other 8/8 MUs and doesn't need additional code. Only the location in the blue boxes are changed. I think that is less work than the re-arrangement you propose.
It is already drawn, and if new vehicles are included at some point, it can always be considered to use a simpler template (from the artist's point of view) for those new vehicles.juzza1 wrote:That would work too. Only thing is it makes the templating system slightly harder to remember for the artists (moot point with this set, as it's already drawn?)Transportman wrote:The graphics keep the same order as the other 8/8 MUs and doesn't need additional code. Only the location in the blue boxes are changed. I think that is less work than the re-arrangement you propose.
The Oslo T1000 and MX3000 had the right alignment but the wrong order, so I fixed that and the sprites now have the same order as the other vehicles.Additionally, I didn't notice the sprite order in the original Oslo T1000 was already flipped. Edited my earlier "analysis" to reflect this.
Users browsing this forum: No registered users and 4 guests