A collection of my personal scripts and tools for Maniaplanet/Trackmania.
Most TM maps you’ll find download external resources like signs, sound effects, texture mods, etc. Eventually, these links die, permanently killing old community maps. If you want to help preserve data for a map to play it in perpetuity without relying on these links to remain available, you can download the external resources for your maps to your Maniaplanet user folder. This script helps automate that. Just download the file and save it as .ps1.
- Download and save
Download Map Dependencies.ps1somewhere. - Open the file with Notepad, and look for this section near the top:
$ManiaplanetDocuments = "". Edit it to look like this:$ManiaplanetDocuments = "C:\Users\<username>\Documents\Maniaplanet". You can copy the Maniaplanet folder path from the top of your Windows Explorer to find it. - Close the editor.
- Create a new text file right next to the script, called
download_depsordownload_deps.txt, if you have file extensions showing. - Open that file, and paste the
<dep>lines from your map here. - Close the file.
- Finally, right-click on the PowerShell script, and select "Run with PowerShell". The script will download all available data for the map and merge it into your Maniaplanet user data.
- Download and install GbxDump.
- Open your map file with GbxDump, look for the lines, and copy them.
- Paste them into
download_deps.txt.
The log file generated by the script is very small, and it's recommended to keep it, as if you ever need to help archive or restore map data, it can help you retrace which data belongs to which map.
If you're trying to play extremely old maps and your car is falling through the track or other parts of it look broken, you probably need to re-compute the shadows. This script helps with that.
- Download and save
Upgrade Maps to MP4.cmdsomewhere. - Open the file with a text editor, and modify the paths to point to your Maniaplanet install folder and game data (Documents) folder. DO NOT include quotes!!
- Temporarily move ALL maps OTHER than the ones you want to upgrade OUT of your maps folder.
- Close the game.
- Run the script.
- Once done, you can move your other maps back.
- The old map files will be permanently overwritten.
(MP4 just means Maniaplanet 4, the 4th version of the game engine. Also, there's normally no reason to change Lightmap quality unless you're having issues, in which case you can change to Medium or Low. Low is useful in the track editor for quickly computing large maps to play test them before re-computing as High and publishing.)