Hey guys, I am trying to learn how to add decorations to my .TED file, can someone help me?
Get 010 Editor and the template for the location you are using (see the
Course Maker Toolbox thread).
Decorations are placed at the end of the file, and each item is 24 bytes:
Bytes 0-7: The decoration ID (this is a long number, but don't worry, they are all in the template)
Bytes 8-11: Rotation flag (integer: 0 or 1)
Bytes 12-15: Start position (in meters)
Bytes 16-19: End position (in meters)
Bytes 20-23: Lateral position on the track (integer: 0 to 7)
There are 8 different slots for the lateral position:
0 = Left A
1 = Left B
2 = Left AB
3 = Right A
4 = Right B
5 = Right AB
6 = Left curb
7 = Right curb
Each decoration belongs to a specific slot by default (see
@Mr Grumpy 's road and decoration codes in the Toolbox thread), I don't think it's possible to move an item from a slot A to a slot B. What you can do is to flip the decoration to the other side of the road, e.g. moving a Left A item to Right A, or Left curb to Right curb. To flip the side you need to toggle the rotation flag (set it to 1 instead of 0), which will rotate the entire object by 180 degrees.
This means that when you are placing a decoration consisting of a start, middle and an end section (usually rocks or banked forest), and you want to move it to the other side of the road, you need to reverse the order as well, so that the end section comes first, then the middle section and finally the start section. Otherwise they will be facing away from each other.
@eran0004 Is there any way to extract the location of the theme's decorations and place em on the height map?
That way we don't have roads with trees in the middle of them and we can build roads around the villages better.
The borders from the TPE app should be possible to locate somewhere, but I have no idea how. The exact location of the decorations is probably not available.