The usage of Ghosts in Forever (Tutorial – part 1)

Written by Alcator.

Trackmania Forever (both theΒ Nations and United version) enhances the MediaTracker Editor with a powerful new feature: “Import Ghosts”. This tutorial will provide you with all the information you need to successfully use this feature in your tracks.

First of all: “What is the ghost?”

This is not as simple as it may seem. All of you are surely familiar with “Replays” – the recordings of your attempts on TM tracks. You upload Replays to TMX to register a World Record or Personal Best on particular tracks, but Replays are just one version of Ghosts. The feature I’ll be tutoring you about here can use both standard Replay- and non-Replay- Ghosts, so you need to understand both properly.

A Ghost is a recording of a car’s positions, headings (pitch, roll, yaw), and eventually the horn and/or brake lights as well. What’s important to note is that the information about terrain and track tiles is completely MISSING from the Ghost file, which means that if you record a ghost, and then modify the track on which the ghost was recorded, the ghost may pass through obstacles (newly added tiles, raised terrain, etc.), or move through air (removed tiles, lowered terrain, etc.).

A Ghost can be recorded in two basic ways: By doing a standard run on a track, such as validating the track or playing it in solo mode, or by using the “Record a MediaTracker Ghost” function of the MT Editor first menu. In either case, after you successfully passed through all checkpoints and reached the finish, you will have the option (during the replay) to either Save the replay or Save the ghost.

Now, each Ghost file contains the car’s position/heading information from Start to about 5 seconds after Finishing, recorded at some “framerate”. When replaying a replay or ghost, the game tries to interpolate between the disjunct recorded positions to create a smooth movement illusion; however, if the load on the CPU is higher, you may (and probably will) notice certain jerkiness in the movement, or reduction of details on the ghost cars.

How do I create a ghost for … ?

The way in which you will record your ghosts for the use in MediaTracker clips is dependent on the purpose. What are you trying to achieve? Do you want to display the ghost as a “GPS” guidance? Or do you want it to suddenly drive in the opposite direction than the player is heading, scaring him? Or do you want the ghost to only show how to navigate the first 10 tiles of your tricky track, and then leave the player on his own?

There are probably dozens of possible ghost uses, each may require a different approach. But the general tips are:

  1. The Ghost does not have to come from the same track the player will be racing. If you need a ghost just for one middle section of your track, then remove temporarily all checkpoints, place a start tile and a finish tile before/after the section, and record a ghost that “jumps” into the race mid-way, and exits soon after.
  2. Swapping the start and finish tiles will allow you to create ghosts that run towards the player easily. There are other ways to achieve opposite driving, but this one may be the fastest/easiest.
  3. To provide the player with 3 “buddy” ghosts (Gold, Silver and Bronze) that will seemingly race against him and will allow him to see how well he’s doing, you just drive the track with intentional errors and save each of those runs as a separate ghost.
  4. You can use the same ghost several times in the same clip, so with clever planning, you may create an illusion of 50 car race with only 5 or 10 different ghosts. Each of the “clones” can have a different skin, and this can be changed during the MT work, you don’t need to re-skin your car every time you record a ghost.

A word of caution – Nadeo’s bugs strike again!

It wouldn’t be a TrackMania game if it was flawless πŸ™‚ Working with ghosts in the MediaTracker may be frustrating, because the MT editor may miscalculate the timing/position of the ghost. There are tricks that may reduce this to a minimum, but don’t be surprised if what you see in the MT editor is quite different from what you see in-game.

OK, enough theory, let’s do it!

For your first track using ghosts, I really recommend trying to provide a player with a virtual opponent on a simple track. By simple I mean a track that does not have any MT clips such as wallride cameras or loop cameras in it. Make a simple tech track with several chicanes and a jump or two, that should be enough.

After you have the track built, validated and saved, click on the mediatracker button (the camera symbol), and choose “Record MediaTracker ghost”. Race the track, and when you finish, click on “Save the ghost”, then type in the name for this ghost: “Virtual opponent”.

Next, exit the race (stay in the editor), click on the MT editor button, and chose “Edit in-game”. The first clip of the in-game MT should be pre-placed and you should be in the “Place trigger” mode. Place the trigger on the start tile – this will ensure that the clip gets run right when the “Go!” appears.

Next, exit from the “place trigger” mode (click on the cube frame icon in the lower left). Next, find the “Import ghosts…” button at the top left corner – it’s the “floppy disc” icon to the left from the small car symbol in the top row of icons. DON’T CONFUSE IT WITH “Import clip…”!

Choosing to import ghosts will open a “Open file” dialog. Locate the “Virtual opponent.Replay.Gbx” file. Click on it, then click Open.

Please notice that the Ghost has been imported into the Clip. As soon as this clip is triggered, the ghost will appear on Start* and will start moving along its recorded path.

*) notes: This is not actually generally correct; the ghost will appear at the position that is recorded in the ghost file as its starting location, so if you moved the start after recording the ghost, the ghost will still appear on its own starting location.

Since working in the in-game MT editor invalidates the track, you need to re-validate it to be able to race it in Solo mode. Exit the MT editor, validate the track (notice the opponent racing against you), then save it.

The next obvious step is to provide the racer with several opponents of different skill levels. This is especially great if different medals require significantly different paths and/or skills (shortcut jumps etc.).

The process is the same: You record the ghosts, save each of them under different name (“Virtual Opponent Gold/Silver/Bronze” may be a good naming, or just “[TrackName] G/S/B” will do as well), then enter the MT editor, select the clip that gets triggered as soon as the race starts, and import each of the ghosts (in any order) into the clip.


15 Responses to The usage of Ghosts in Forever (Tutorial – part 1)

  1. MasterGary says:

    Awesome Tutorial man !!!

    What a pity I already did the cams (18) for the outro on my Stadium-map :p

    I can’t wait to make a GPS or stuff like that πŸ˜‰

    smok3y did a marvelous GPS on “skunky I killed the noobs” like that πŸ™‚

    Cya on tmx (when it will be back!!!)


  2. MasterGary says:

    I meant 18 cams (stupid automatic smileys ^^)

  3. djoszee says:

    I used ghosts in an intro, it’s pretty cool πŸ™‚

  4. Alcator says:

    part two, Jozii?

  5. djoszee says:

    yeh, i was wondering as well πŸ™‚

  6. Dilay says:

    Thanks for the tutorial. But now i have one problem.
    i inserted 3 ghost (gold, silver, bronce(?)) into the game. and for loopings i use the inside car camera for a bedder driving in the loopings.
    At the first looping, the three ghost disapear. Can i use the ghost and the camera in the looping at the same time?

  7. Alcator says:

    Dilay, it’s not possible.

    As soon as you trigger another clip, the previous clip stops playing, and there is no way to “resume playing the clip”.

    • Red Scorpion says:

      I have the same problem like Dilay but it happens to me if i press ENTER to a checkpoint too.
      Ok Alcator, you said that is not possible.
      But how NADEO did it in the Tm Nations/United challenges ?? It is possible but how ???

  8. Jin says:

    Thx a lot for the tutorial..
    I’ve a little problem (sorry for my english but i’m italian.. :-S)
    I place the trigger and start the ghosth without any problem … But when i pass on a new trigger my ghosts stops.. 😦
    Can you help me?
    I need to use other triggers to change the cam..

    I use ghosts during the challange and not for replay..
    Thx again.. πŸ˜€

  9. Emilpes says:

    I wondering how to use the media Tracker (Camera switching).

  10. august says:

    This method works great for me on all but 1 enviroment. When I try this on rally, the ghost only appears and starts moving when i reverse backwards out of the starting square.:) Please help

  11. Blabam11 says:

    Is there a way to not make the ghost disappear after finishing?

  12. Sarkray says:

    Hey! thx for this tuto, I also have a problem, it’s not a big one but…

    I’d like to Make the player choose his opponent like in the Nadeo’s campain. Following your tuto just allows me to insert 3 ghosts in the same time on the track. it’s good, but if the player wants to race against one of them only it’s not possible. How can I make this option in the game?

    Thx for your answer

    • PD says:

      In Trackmania 2 (~ ManiaPlanet), you can embed ghosts to a custom campaign. There’s an in-game mechanism for this.

      What you are asking for isn’t possible in TM1.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: