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]](proxy.php?image=https%3A%2F%2Fimg15.hostingpics.net%2Fpics%2F945100tyto.jpg&hash=3c8702047967ff38229c135591b86136)
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
Click to expand...