Problem: Finding a way to sort out saved tracks

General Discussion about Trackmania Sunrise + Extreme.

Moderator: TM-Patrol

Post Reply
Ore4444
pedestrian
pedestrian
Posts: 5
Joined: 10 Nov 2009 20:25
Owned TM-games: Tms

Problem: Finding a way to sort out saved tracks

Post by Ore4444 » 10 Nov 2009 20:36

Hello everyone.
I could really use your help.

For the past months I started sorting out my collection of saved tracks which I downloaded years ago.
The way I did it was to play each track, see if I liked it, and if I did I wrote the track name in a Word document.

I thought that when I'll finish, I could go to the tracks folder and delete all the files I didn't want.

The problem was, the names of the actual files are all different than the track names..

Please help me find a way to solve the situation. I worked very hard on this list.

If I succeed on doing this, I'd upload the finished folder so that you'd all be able to enjoy it :)

Thanks in advance,
Ore

Xymph
Pit Crew
Pit Crew
Posts: 5695
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: Problem: Finding a way to sort out saved tracks

Post by Xymph » 10 Nov 2009 23:25

Many or all might be on TMX already.

One way to find out the in-game name of a track from a .gbx file is with my Extract GBX data script, which requires PHP and a command shell. Easy on Linux, possibly less so on Windows.
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

Ore4444
pedestrian
pedestrian
Posts: 5
Joined: 10 Nov 2009 20:25
Owned TM-games: Tms

Re: Problem: Finding a way to sort out saved tracks

Post by Ore4444 » 11 Nov 2009 06:19

Thanks a lot.
I really thought the situation was gloomier than that.

This is a lot of work though.
Is there an automatic way to do it?

Maybe someone can write a batch script that will work together with the php script?

Plus, the link you gave me was dead, but I found a mirror here:
http://www.kickedbyconsole.net/tm/index ... -%20Tools/

Xymph
Pit Crew
Pit Crew
Posts: 5695
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: Problem: Finding a way to sort out saved tracks

Post by Xymph » 11 Nov 2009 09:29

Ore4444 wrote:This is a lot of work though.
Is there an automatic way to do it?

Maybe someone can write a batch script that will work together with the php script?
Easy in shell:

Code: Select all

cd <your tracks directory>
for i in *
do
    echo -ne "$i\t\t"
    extractgbxdata.php "$i" | grep ^Stripped
done
Ore4444 wrote:Plus, the link you gave me was dead, but I found a mirror here:
My TMN site is absolutely not dead -- must have been networking issue somewhere.
That mirror carries obsolete versions of my scripts (and probably of the other tools there too), since all of them were updated after April 2008. Better get the extract script from my site when you can reach it again.
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

Ore4444
pedestrian
pedestrian
Posts: 5
Joined: 10 Nov 2009 20:25
Owned TM-games: Tms

Re: Problem: Finding a way to sort out saved tracks

Post by Ore4444 » 11 Nov 2009 23:43

Thanks a lot once again for the quick and informative replies.

Isn't the script you gave me for the Linux shell?
If so, I won't be able to use it, I guess.

I found a free web hoster that can execute php scripts.
I hope that if I upload the 2 files to there I would be able to use them.

Does batch handle the internet well?

Xymph
Pit Crew
Pit Crew
Posts: 5695
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: Problem: Finding a way to sort out saved tracks

Post by Xymph » 11 Nov 2009 23:53

I don't know, I have never done any scripting or other development in a Win* environment (apart from autoexec.bat & config.sys in the DOS days), and I don't intend to start now, or ever. :wink:
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

Post Reply