Page 1 of 3
Restore track names
Posted: 31 May 2013, 14:23
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.
Re: Restore track names
Posted: 03 Jun 2013, 22:15
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) ?
Re: Restore track names
Posted: 03 Jun 2013, 23:42
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.
Re: Restore track names
Posted: 04 Jun 2013, 01:29
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
Re: Restore track names
Posted: 04 Jun 2013, 06:42
by PsychoticFoetus
Thanks for the heads-up on this tool team.
I have a few hundred tracks that desperately need this to make them more windows explorer friendly.
Re: Restore track names
Posted: 04 Jun 2013, 06:57
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.
Re: Restore track names
Posted: 05 Jun 2013, 02:56
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.
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.
Re: Restore track names
Posted: 05 Jun 2013, 06:42
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.
Re: Restore track names
Posted: 06 Jun 2013, 23:41
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.
Re: Restore track names
Posted: 07 Jun 2013, 23:49
by TMarc
Great, thanks Electron
