Restore track names

Discuss everything related to Trackmania 2.

Moderator: English Moderator

rameth
Posts: 6
Joined: 22 Sep 2011, 06:35

Restore track names

Post by rameth »

for track mania 1 there was a utility to restore track names from mangle file names, is there anything similar for TM2
i have a large pack of tracks but they dont have their proper names.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Restore track names

Post by TMarc »

Could you please explain more in detail what your intention is here?
Do you still have a link to the old tool, or the tool itself (what is its name) ?
metoxys
Translator
Translator
Posts: 1969
Joined: 15 Jun 2010, 20:45
Location: Germany
Contact:

Re: Restore track names

Post by metoxys »

TMarc wrote:Could you please explain more in detail what your intention is here?
Do you still have a link to the old tool, or the tool itself (what is its name) ?
What I think it is is that there perhaps used to be something to clear scrambled file names full of color codes and broken characters. Like $392__$s$i____.Track.Gbx or something.
User avatar
eyebo
Translator
Translator
Posts: 3493
Joined: 15 Jun 2010, 12:01
Location: Kansas, USA
Contact:

Re: Restore track names

Post by eyebo »

I think this was the tool. I used to use it a lot too.
http://www.willemssoft.be/index.php?mai ... ils&id=233
Former QC Manager at Ubisoft Nadeo.
My tracks on: Mania Exchange (TM2) | TrackMania Exchange (TMUF)

For the devs: Ryzen 7 1800X / 32GB RAM / GTX 1080 (477.22) @ 3840x2160 / Win10 64bit
PsychoticFoetus
Posts: 30
Joined: 14 Sep 2011, 10:17

Re: Restore track names

Post by PsychoticFoetus »

Thanks for the heads-up on this tool team. :1010
I have a few hundred tracks that desperately need this to make them more windows explorer friendly.
User avatar
eyebo
Translator
Translator
Posts: 3493
Joined: 15 Jun 2010, 12:01
Location: Kansas, USA
Contact:

Re: Restore track names

Post by eyebo »

This tool was made for TrackMania United Forever/TrackMania Nations Forever. I don't know if it's really compatible with TrackMania² tracks. Make sure you backup any tracks you have before trying it.
Former QC Manager at Ubisoft Nadeo.
My tracks on: Mania Exchange (TM2) | TrackMania Exchange (TMUF)

For the devs: Ryzen 7 1800X / 32GB RAM / GTX 1080 (477.22) @ 3840x2160 / Win10 64bit
PsychoticFoetus
Posts: 30
Joined: 14 Sep 2011, 10:17

Re: Restore track names

Post by PsychoticFoetus »

eyebo wrote:This tool was made for TrackMania United Forever/TrackMania Nations Forever. I don't know if it's really compatible with TrackMania² tracks. Make sure you backup any tracks you have before trying it.
Thanks for the caution. Out of 250+ tracks, 52 were able to be modified successfully with this tool. That may not seem like much, but that is now 52 I don't have to do by hand. :D

Is there a .gbx specification that outlines where the names are saved within the file and how long the name is? If there is, it would be quite trivial to write something to change the filename to a more human friendly format.
User avatar
Xymph
Posts: 1399
Joined: 15 Jun 2010, 20:35
Contact:

Re: Restore track names

Post by Xymph »

PsychoticFoetus wrote:Is there a .gbx specification that outlines where the names are saved within the file and how long the name is? If there is, it would be quite trivial to write something to change the filename to a more human friendly format.
http://en.tm-wiki.org/wiki/GBX, but that's very technical.

However, a PHP script based on the GBX Data Fetcher module, which already implements the above, should be trivial indeed.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
User avatar
Electron
Posts: 797
Joined: 15 Jun 2010, 18:02
Contact:

Re: Restore track names

Post by Electron »

I created a little utility for the command prompt.

Code: Select all

GbxRename v1.0 - Copyright (c) 2013 by Electron.
Renames a GameBox Challenge, Map or Replay file.

GBXRENAME [Drive:][Path]<Challenge>|<Map>|<Replay>.Gbx

The new name of a Challenge or Map is retrieved from the Gbx file.
Formatting characters are removed from the names of all other files.
Download: GbxRename.zip (16 KB)

Use the following command to rename all Gbx files in the current folder and all its subfolders:

Code: Select all

for /R %f in (*.gbx) do GbxRename "%f"
Change %f to %%f if you would like to use this command inside a batch file.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Restore track names

Post by TMarc »

Great, thanks Electron :thumbsup:
Post Reply

Return to “Trackmania 2”

Who is online

Users browsing this forum: No registered users and 1 guest