News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

Penalty oddities

Started by Duplode, March 23, 2021, 02:57:35 AM

Previous topic - Next topic

Duplode

A while ago, GTAMan pointed out a penalty time glitch that cropped up in one of Marco's lives (here is a direct link). It indeed is a new one for me; AFAIK it hadn't been documented yet. Here's the glitch: if the final track element is a split (and not a rejoin) connected to the finish line through the straight path, three seconds of penalty are always given, as if the final track element had been skipped. I guess it took so long for anyone to notice it because the only non-decorative reason for having a split immediately before the finish line is if you are making a Le Stunts track, and in the case no one will actually cross the finish line during the race.

This glitch joins a list of known penalty time oddities, one in which all entries so far have to do with splits and multi-way tracks:

  • Instant finish: if the first element after the start line is a dual way split, the entire track can be cut without penalty by driving back to it. Exploiting this one is generally forbidden through rules and precedents (Z85 was one race in which the issue had to be raised), though competitions relying on a checkpoint system independent from penalty time have on occasion accepted it. Two examples I know of are Funny (SDR-RH 2007) and FTT0111 (FTT 2008).
  • Three-element cut: a split doesn't count for penalty checking if the track is rejoined through the non-straight path. I had forgotten about this one until watching my recent USL round 3 lap and noticing that I fully skipped the split at the 180° turn, by a gap of a few metres. Given what we know about the penalty algorithm, I suspect this one is closely related to the glitch in Marco's live.
  • Dual way switching: Quoting the Wiki, "on tracks where the road splits, it is possible to leave one of the paths and re-enter the track through any point of the other one without penalty time, provided at least one track element is crossed before the paths rejoin". Examples abound; entire classes of track designs are shaped by this one.

Then there's Nagasaki, an USC 2014 track full of splits and crossroads which featured bizarre shortcuts skipping large parts of the track. I still have no clue about what was going on there.

Cas

Oh!  I didn't know that one!  I do remember that, if you make a path that goes around the start/finish line, then sometimes you can't go past the first split because the race is over and other times, you can, but then, when you want to watch the replay, it just stops there. These two things may be related as well.
Earth is my country. Science is my religion.

Duplode

Though it's not strictly about penalty time, the issue noticed by Erik the other day feels related enough to be worth mentioning here. Summing it up: in at least some circumstances, choosing a broken path on a dual-way split will make it impossible to complete a lap even if you move back to a winning path. That presumably happens due to the lack of a dual-way rejoin to signal the return to the track proper. I conjecture this bug only happens when the broken path is the alternative one (that is, not the straight one) at the split, though that still has to be confirmed through additional experiments.

Cas

It looks like the bug occurs always. I have just tested with this very simple track I just made and you can see in the image. I went straight and then followed the rest of the track. It didn't give me any penalty or wrong way warnings or arrows at any time and when I went through the start/finish line, it just went on. I used the LOLA, but I don't think that makes any difference. Just mention it just in case.
Earth is my country. Science is my religion.

dreadnaut

That's quite nice, makes for great LeStunts tracks!

Duplode

There's plenty of potential indeed! Thanks for testing that, @Cas  :)

Duplode

I have found another penalty oddity while trying out PG cuts for CCC Round 2 (deadline is tomorrow, BTW -- go there and race!). If you do a three-element shortcut and rejoin the track through a bridge crossroad from below, you will get 15 seconds penalty rather than the usual 18. A demo track is attached below. The off-road paths indicated in the map cut 3, 4 and 5 elements, and give 15, 18 and 21 seconds penalty respectively. If you switch the direction of the rejoin on the north of the track, though, so the bridge with the crossroad is no longer part of the track, the penalties become 18, 18 and 21 seconds. It remains to be tested whether the same happens with regular crossroads, and if the track is rejoined through the bridge.

You cannot view this attachment.

P.S.: Cartography code for the map annotations:

Arrow @17.5 3.5 *1 ^45 >0.075 #lightpink "5" {*0.75 'S}
Arrow @19.5 2.5 *1 ^90 >0.075 #palegoldenrod "4" {*0.75 'W}
Arrow @20.5 3.5 *1 ^45 >0.075 #paleturquoise "3" {*0.75 'S}
Arrow @22.5 5 *1.25 ^45 >0.075 #yellow "Rejoin" {*0.75 'E}

Cas

Uhm... why?   WHYY?  It looks like there are many things that, until we have fully translated the core engine to high level, we won't fully understand
Earth is my country. Science is my religion.

Daniel3D

I think that it can't tell to which path a crossing belongs. It's a schrodinger element. It belongs to 2 different track sections at the same time. So it isn't counted at all..

Maybe 🤔
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Duplode

Quote from: Daniel3D on April 11, 2023, 10:15:03 PMI think that it can't tell to which path a crossing belongs. It's a schrodinger element. It belongs to 2 different track sections at the same time. So it isn't counted at all..

It's not quite as bad as that, but from what I know I think your explanation isn't too far from the mark. The path finding algorithm involves sorting the track elements in a linear order, staring with the main path and followed by the alternates (trackdatas 01, 02 and 17 are involved in that). For that to work, splits, rejoins and crossroads have to be handled specially, and I believe that makes then behave differently when it comes to the penalty time calculation.