Skip to content

XertroV/tm-autosave-ghosts

Repository files navigation

Autosave Ghosts

This plugin requires MLHook -- you must install that, too.

This plugin will autosave a playable .Replay.gbx file for all ghosts that you generate, even in online servers. This includes runs that are not PBs, but the run must be completed (it does not save partial runs). To save partial runs (that aren't able to be played against), see Autosave Replays for MediaTracker.

Works in:

  • Ranked
  • COTD Quali and KO
  • Local campaign (note: was previously unreliable, please report any bugs; if you need an alternate solution, see Replay Recorder)

Does not work in:

  • Royal

Save path: Trackmania\Replays\AutosavedGhosts\<MapName>\<Date>-<MapName>-<Nickname>-<RaceTime>.Replay.gbx

How it works: When you complete a run, even in online servers, a ghost is generated in app.Network.ClientManiaAppPlayground.DataFileMgr.Ghosts. Calling app.Network.ClientManiaAppPlayground.DataFileMgr.Replay_Save on these ghosts will generate a valid replay (valid meaning: there is 1 ghost and you can is it via 'Play > Local > Against Replay'). AFAIK, you can't save these ghosts using DataFileMgr.Replay_Save from AngelScript. (Actually, I think you can; a future version will be refactored to do this.) If you call DataFileMgr.Save_Replay from ManiaLink, then it does generate a playable replay. This plugin automatically detects new ghosts, filters out duplicates (like your PB ghost) and external ghosts (e.g., the WR ghost), and saves the remaining ghosts.

Propz to @Orange for asking the question that lead to this plugin: ghost CP times in MLFeed.

License: Public Domain

Authors: XertroV

Suggestions/feedback: @XertroV on Openplanet discord

Code/issues: https://github.com/XertroV/tm-autosave-ghosts

GL HF

About

Openplanet plugin for Trackmania 2020. Save the ghost of every run you finish, even online. Generates playable replays.

Resources

License

Stars

Watchers

Forks

Packages

No packages published