STM Ghost Inject

A plugin by Mebe12

STM Ghost Inject
Downloads 466
Updated 1 year ago
Released 2 years ago
Created 2 years ago
Numeric ID 357
Min. Openplanet 1.25.37
Signed
Game Maniaplanet 4
Game Trackmania Turbo

Within Trackmania Turbo, players strive to collect STM's (Super Track Masters). These times are driven by some of the best players within their respective games at the time of release (2016). However, one key issue with this is that the replays were driven externally to the map therefore their ghost data is not embedded into the map and therefore is not selectable to verse when hunting. What this plugin does is allows you to overwrite a downloaded ghost from the leaderboard with that map's STM ghost so you can see in real time how well you compare.

How it works

In order to use this plugin, all you need to do is the following steps:

  1. Load a map
  2. Select/Download a ghost from the friends leaderboard
  3. Click F3 -> Scripts and find Discovered Ghosts
  4. Click Swap on the replay you want to inject
  5. Select the ghost file from the UI selector and click select
  6. After the map reloads, re-download the same replay you swapped

After following these steps, you will be able to see that it worked as the name of the ghost and splits will be that of the STM. When you load up the game, all ghosts will be reset and their default, so you will need to follow the steps each time you load the map. But the process is basically just as quick as selecting the WR in the first place. If you don't close the game, you will be able to view that changed replay as STM even if you race another ghost and come back. Without closing the game, if you want to unhook the STM from that ghost, simply open the included Discovered Ghosts UI which will allow you to unhook ghosts that are currently swapped with STM within that game launch.

Troubleshooting

-----------------------------------------------------------------------------------------------------------------------------------------------

What to do if ghost is not appearing?

If you have downloaded a replay you wish to swap and it has not shown in the Discovered Ghosts UI, it means the replay is already downloaded and cached. For MP4, this means that you can find it somewhere in the list of discovered replays but for turbo, it means you will need to delete your cache and restart the game.

I deleted my cache however all the ghosts are still here.

When you close the game, the game scans your cache and writes to a file which tells what file is what. If you close the game via Alt+F4, Task Manager or Exit in openplanet, these process will be skipped resulting in the file not updating. Let the game close naturally and next time you launch it will be correct.

------------------------------------------------------------------------------------------------------------------------------------------------

Under settings, there is an option to disable the scan for downloaded ghosts to swap which if disabled will stop any downloaded ghost from being swapped with the STM ghost.

If you discover any bugs or have potential feature ideas, feel free to message me on discord. My name is: Mebe12#2959

Changelog

1.4.0 - 1 year ago

Huge MP4 Update!

When you download a file or ghost, it gets saved in your cache folder. The name is unintelligible and requires parsing to know what file it is. Luckily the game saves a file that does exactly that. With this update, we know what every file in your cache is. From this, you can now have all your discovered ghosts shown when launching the game. In addition to this, you can reliably swap ghosts and be able to swap back after many game closures. All updates include the following:

  • Cache decoded and ghost files added to the list at launch
  • Added titlepack and column id to the table
  • Table can now be sorted via its attributes
  • Added colour to the buttons to make them easily distinguishable

Small side note: clearing the files in C:\Users\[name]\Openplanet4\STMGhostInject\OriginalReplays is recommended as leaving can cause false flags for overwritten replays.

1.3.0 - 2 years ago

Updated to how the plugin works in turbo:

  • Turbo now follows the exact same method for overwriting and unhooking ghosts as MP4. Whenever you download a ghost in turbo now, it will be saved and stored within the Discovered Ghosts UI where you can select any ghost in the list and overwrite that selected ghost. However, unlike MP4, you now have two extra replay options; STM and RTM.
  • Fixed bug with script exception when the cache is empty.

1.2.0 - 2 years ago

  • Added support for MP4
  • Fixed bug in turbo with maps not reloading on every 10th track
  • Fixed the plugin not working when you haven't finished the track

View all changelogs