Back To Top
  • Hey Guest,
    If you are interested in ghosting, the Ghosting Awards from February 2025 all the way up to June 2025 have just been announced:

    Statement regarding the delays

    Ghosting Awards for February 2025

    Ghosting Awards for March 2025

    Ghosting Awards for April 2025

    Ghosting Awards for May 2025

    Ghosting Awards for June 2025
    Dismiss Notice
  • A quick explanation on free rider code generation

    Discussion in 'Anything and everything Free Rider' started by fantomeblacktree, Jul 24, 2017.

    1. fantomeblacktree

      fantomeblacktree Active Member Official Author

      What I'll be describing here is maybe common knowledge for some of you, but I'll do a quick cover because whatever I'm bored

      When you save any free rider track (at least for free rider 2, canvas rider and free rider HD... free rider 1 works a bit differently but is pretty straightforward once you understand how the others work) you get a code like this one :
      Notice how the code is composed of 4 sections separated by a #
      Good. We will review those one by one a bit later.

      First let's introduce the concept of base system.
      Us humans are counting in base 10, which means we go
      ...-5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14...
      Free rider is a bit messy and counts in base 32, which means it goes
      ...-c -b -a -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e...

      Now the line section
      It is composed of a list of numbers written in base 32, separated either by a space or by a comma.
      A comma separates a succession of continuous lines, and a space separates two coordinates.
      There is an even number of coordinates between two comas because each coordinates accounts for a X coordinate or a Y coordinate alternately.


      For example the code for the following map :
      [​IMG]
      Would be

      0 0 0 2 2 2 1 1, 0 -2 2 -2###
      Got it ? You should be able to anticipate what the following map looks like...
      The scenery section works in exactly the same way, exept it creates scenery lines.

      The power up section is bit more tricky
      A comma separates each power up from one another.
      The first letter that comes at the beginning of a subsection indicates the nature of the power up.
      • a T means it is a star
      • a C means it is a checkpoint
      • an O means it is a bomb
      • an S means it is a slowmotion
      Those are followed by two numbers in base 32 : the X and the Y coordinates of the power-up.
      See this map for instance :
      • a B means it is a boost
      • a G means it is a gravity
      Those are followed by three numbers in base 32 : the X and the Y coordinates of the power-up, and its orientation.
      See this map for instance
      • a V means it is a vehicle power up (only in FRHD)
      It is followed by four numbers in base 32 : the X and the Y coordinates of the power-up, a "1" (meaning -I guess- the vehicle is an helicopter as there are no other option available right now), and the time you are allowed to stay in it. As FRHD isn't funny at all the editor won't let you put any other value that the one they have anticipated.
      The vehicle section
      "BMX" or "MTB", I don't feel the need to elaborate on that point.
      FRHD doesn't use this section, that is why your codes might have a "#" less compared to mines (I still use an hacked version of CR editor)

      Now you should be able to understand this code easily
      Now with that in mind, you can try to break FRHD editor by NOT following the implicit rules of the code generation, and by loading weird stuff in the editor.
      This is how I managed to create this unbeatable track for instance
      https://www.freeriderhd.com/t/460741-glitch-1
      You can also develop some script to draw perfect circles, or draw bitmap images on your tracks (some people have already done that back when CR was still a thing)
      ~~~
      Anyway I apologize for my terrible english.

      Happy hacking <3
       
      Last edited: Jul 24, 2017
    2. Skrampt

      Skrampt Well-Known Member Official Author

      Someone's posted this before
       
      Xcape likes this.
    3. fantomeblacktree

      fantomeblacktree Active Member Official Author

      Sh*t I didn't know.
      Btw, because I'm thinking of doing it too, has anyone already done it for ghost saving system ?
       
      Empire and NotVeryGood like this.
    4. Skrampt

      Skrampt Well-Known Member Official Author

      Don't think so
       
      fantomeblacktree likes this.
    5. Barcode111

      Barcode111 Casual Member Official Author

      nice English and explaining
       
      fantomeblacktree likes this.
    6. Zycerak

      Zycerak Lone Wolf Elite Author Team Truck Rotten Flesh Official Author

      Awarded Medals
      i'm sure i'll understand it when i'm older and i'm sure it's a great explanation :thumbsup:
       
      zeke15 likes this.
    7. Eryp

      Eryp foraminifera Staff Member Administrator Forum Moderator VIP Team Truck Official Author

      Awarded Medals
      is this why so many autos from other games break in FRHD?
       
    8. fantomeblacktree

      fantomeblacktree Active Member Official Author

      No.
      Despite the claims of Kano Games, the physics of FRHD is different than the physics of CR. That is why the autos from other games break.
      Edit : well I BELIEVE they claimed something that ridiculous at one point but maybe I'm wrong...?
       
      Empire and Eryp like this.
    9. zeke15

      zeke15 Well-Known Member Official Author

      Awarded Medals
      Good explanation. There have been some out for a while, but this one does a good job as well. In terms of generating tracks with perfect circles and the like, I actually have quite a bit of experience. I did quite a bit of work generating fractals earlier this year and other generation programs including a random track gen. Bitmap image generators are still only used by a select few but that trend has dropped off because of the hate people get for it. I have one, I just don't use it for tracks to publish.
       
    10. Ishu

      Ishu Well-Known Member Elite Author Official Author

      Awarded Medals
      The line physics are the same but the powerups have changed a bit
       
    11. Xcape

      Xcape Active Member Official Author

      Yeah, i made the same post a while ago. Also another user elaborated my post a bit
       

    Share This Page