
Restore track names
Moderator: English Moderator
-
- Posts: 30
- Joined: 14 Sep 2011, 10:17
Re: Restore track names
Thankyou very much Electron. An absolute tip-top little tool you have made there. 

Re: Restore track names
I added a switch to extract also the authors name:
Download: GbxRename.zip (17 KB)
Code: Select all
Gbx Rename v1.2 - Copyright (c) 2013 by Electron.
Renames a GameBox Challenge, Map or Replay file.
GBXRENAME [/A] [Drive:][Path]<Challenge>|<Map>|<Replay>.Gbx
/A Adds the author's name before the name of the Challenge/Map.
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.
-
- Posts: 30
- Joined: 14 Sep 2011, 10:17
Re: Restore track names
Wonderful work Electron.
May I be a trifle annoying and make a request? Could you please add the functionality to copy/move the renamed files into subdirectories? i.e. C:\Users\Foetus\Documents\ManiaPlanet\Maps\"Canyon or Stadium or Valley"
Thanks again for you nifty little app. If you can't be bothered adding this request, thankyou for your nifty little app

May I be a trifle annoying and make a request? Could you please add the functionality to copy/move the renamed files into subdirectories? i.e. C:\Users\Foetus\Documents\ManiaPlanet\Maps\"Canyon or Stadium or Valley"
Thanks again for you nifty little app. If you can't be bothered adding this request, thankyou for your nifty little app


Re: Restore track names
The copy/move to environment subfolder function would be indeed very useful.
But it doesn't fit to the usage logic of the app because it's only able to process one Gbx file at the same time (no wild card support).
In addition you have to test on every call if the Gbx file is already stored in an environment subfolder and, if not, create one if not already existing.
But I have added another argument switch /E that adds the environment name before the map (and optionally author name).
Now you can rename all challenges/maps again with the command, sort all files by filename in Windows Explorer, select the block of files belonging to one environment and move them all together in the corresponding subdirectory.
After this you can use the command to recursive rename all maps again including all subfolders (/R switch) without adding the environment name.
I tested it with ~3000 TMUF tracks. Was not much work.
Download: GbxRename.zip (17 KB)
But it doesn't fit to the usage logic of the app because it's only able to process one Gbx file at the same time (no wild card support).
In addition you have to test on every call if the Gbx file is already stored in an environment subfolder and, if not, create one if not already existing.
But I have added another argument switch /E that adds the environment name before the map (and optionally author name).
Now you can rename all challenges/maps again with the command
Code: Select all
for %f in (*.gbx) do GbxRename /A /E "%f"
After this you can use the command
Code: Select all
for /R %f in (*.gbx) do GbxRename /A "%f"
I tested it with ~3000 TMUF tracks. Was not much work.
Download: GbxRename.zip (17 KB)
-
- Posts: 30
- Joined: 14 Sep 2011, 10:17
Re: Restore track names
Electron! FREAKING amazing
Your modification and example have just made the dreaded chore of track maintenance a thing of the past.
Once again I thankyou for your spiffy app


Once again I thankyou for your spiffy app

-
- Posts: 24
- Joined: 14 Aug 2013, 07:54
Re: Restore track names
Hi,
I created the little tool on willemssoft.be (my website) for trackmania united nations / forever. I never thought on making it compatible with trackmania 2 since i thought it wasn't used much. Since i do own trackmania 2 and if i can find my source code again for the tool, i can probably very quickly make it compatible with trackmania 2 given there aren't too many changes in the gbx format. If there is enough interest i might have some time this weekend to have a look at it, unless the little command line tool (gbxrename) from electron is sufficient then i probably won't look at it... i quited making programs at home for a bout 2-3 years now, since i have enough programming to do during the weekdays at work
I created the little tool on willemssoft.be (my website) for trackmania united nations / forever. I never thought on making it compatible with trackmania 2 since i thought it wasn't used much. Since i do own trackmania 2 and if i can find my source code again for the tool, i can probably very quickly make it compatible with trackmania 2 given there aren't too many changes in the gbx format. If there is enough interest i might have some time this weekend to have a look at it, unless the little command line tool (gbxrename) from electron is sufficient then i probably won't look at it... i quited making programs at home for a bout 2-3 years now, since i have enough programming to do during the weekdays at work

-
- Posts: 30
- Joined: 14 Sep 2011, 10:17
Re: Restore track names
joyrider3774 wrote:Hi,
... If there is enough interest i might have some time this weekend to have a look at it, unless the little command line tool (gbxrename) from electron is sufficient then i probably won't look at it...
Hi joyrider3774,
I for one would be delighted if you updated your spiffy GUI based tool. As marvelous as electron's command line tool is, I am a pitiful for sucker for a GUI

I look forward to your new and improved version. If you don't receive enough support, I thank you for making the offer

PF
-
- Posts: 24
- Joined: 14 Aug 2013, 07:54
Re: Restore track names
Any idea where i can easily download a few 100 canyon maps / challenges / tracks in a single zip / rar file ? I can only seem to find download for a single map each time.
I managed to get the tool to compile again, and it could be it only needs a few small adjustments but i like to test it with a few 100 maps from canyon
I managed to get the tool to compile again, and it could be it only needs a few small adjustments but i like to test it with a few 100 maps from canyon

Re: Restore track names
Here's a pack of 358 Canyon tracks by different authors. There might even be some duplicates in there under different file names.
mapsforjoyrider3774.zip
mapsforjoyrider3774.zip
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
My tracks on: Mania Exchange (TM2) | TrackMania Exchange (TMUF)
For the devs: Ryzen 7 1800X / 32GB RAM / GTX 1080 (477.22) @ 3840x2160 / Win10 64bit
-
- Posts: 24
- Joined: 14 Aug 2013, 07:54
Re: Restore track names
Hi thanks,
just tested and it detected all the maps in the zip
i also tried it against my cache folder which was located under c:\programdata\maniaplanet\cache and it detected all tracks as well and copy / renamed them from their hashname to the original track name
(i had to copy the cache folder to another location to be able to access it cause it seems to be a hidden folder, which i can not select from within my tool)
i guess if it could detect all those tracks .. i'll see that i can release it, then you guys can test it as well and let me know problems.
i also added an extra check to check the type of gbx file it seems the type for track mania united / forever files are "challenge" and for canyone "map" this seems to be reflected in their filenames as well (name.challenge.gbx / name.map.gbx)
i'll let you guys know when it's uploaded to my website here, should not be too long
just tested and it detected all the maps in the zip

i also tried it against my cache folder which was located under c:\programdata\maniaplanet\cache and it detected all tracks as well and copy / renamed them from their hashname to the original track name

i guess if it could detect all those tracks .. i'll see that i can release it, then you guys can test it as well and let me know problems.
i also added an extra check to check the type of gbx file it seems the type for track mania united / forever files are "challenge" and for canyone "map" this seems to be reflected in their filenames as well (name.challenge.gbx / name.map.gbx)
i'll let you guys know when it's uploaded to my website here, should not be too long
Who is online
Users browsing this forum: No registered users and 1 guest