Jump to content

Checkpoint reorderererer


Recommended Posts

Posted

Did you ever create this Aeron? I asked if you could/would some time back but forgot all about it until wanting to reverse the checkpoints on a couple of races earlier tonight.

To jog your memory it was a script/app to take the checkpoints in a particular race and reverse thier order entirely.

Posted

First of all, is checkpoint order in race, the same as the order as they appear in the .map file?

If so, then it should be quite easy to reverse the checkpoint order...

You still need to move the spawnpoints tho

Posted
First of all, is checkpoint order in race, the same as the order as they appear in the .map file?

Doesn't it have to be the same?

Posted

Bump's memory has holes:

alias invert {
 var %a = 1,%b = $lines($1-),%c,%d = 0,%e,%f = $remove($1-,.map) $+ _inv.map
 while (%a <= %b) {
   %c = $read($1-,nt,%a)
   if (      if (%d == 0) %d = $lines(%f)
     %e = 0
     !write -il $+ %d $+(",%f,") %c
     !inc %a
     while (%c != ) {
       !inc %e
       %c = $read($1-,nt,%a)
       !write -il $+ $calc(%d + %e) $+(",%f,") %c
       !inc %a
     }
   }
   else {
     !write $+(",%f,") %c
   }
   !inc %a
 }
}

Usage:

/bumpy 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...