List in game, how to alphabetically sort the songs?

Help with using HLDJ
Post Reply
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

List in game, how to alphabetically sort the songs?

Post by A9i »

Hello.

I need a bit of help with this matter. I'm trying to get my song list organized. The problem is, i don't know why this happened, but suddenly when i type "la" in game, my song list is all messed up.

At first, to keep them in order, i used to add a number prefix, like this:
01_song
02_song
03_song
But it stopped working for some reason.

I deleted the prefix, expecting the list to be alphabetically sorted, but, that didn't happen either.

I tried to let HLDJ re-create the audio folder with no songs, but the same result.

What can i do to get them in alphabetical order?

Thanks!
xToxicPenguinx
Game DJ
Posts: 5
Joined: Sun Mar 11, 2012 2:54 am

Re: List in game, how to alphabetically sort the songs?

Post by xToxicPenguinx »

Well, I'm 90% sure HLDJ Isn't going to randomize the order of your songs everytime you use it. If that's the case, I don't really have a fix. If it stays the same, though, perhaps you can try looking for a pattern in the way the songs are listed, and then try to order them accordingly to that.

Sorry, I hope this helps.
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: List in game, how to alphabetically sort the songs?

Post by A9i »

Thanks for answering. No, it does not do that. It's random right now and it stays like that every time i open HLDJ, but i can't get it to order with a "logical" order.
xToxicPenguinx
Game DJ
Posts: 5
Joined: Sun Mar 11, 2012 2:54 am

Re: List in game, how to alphabetically sort the songs?

Post by xToxicPenguinx »

Throughout this problem have you continued to use HLDJ?

I thought HLDJ could be putting your most played songs lower down on the list or something like that.

It's very unlikely, but check for a pattern between where each song is every time you start up the game.
For Ex: 1st Time - Song A is 7th
2nd Time - Song A is 15th
3rd Time - Song A is 23rd

and so on and so forth... who knows, could work
There could be a simple console command to fix your problem, but I have experience with them.
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: List in game, how to alphabetically sort the songs?

Post by A9i »

Yes, no reason to stop using it.

They are in the same spot every time, but it's all random.

I tested removing a song, starting HLDJ and the game, closing game, pausing HLDJ, re-adding the same song with a different name, opening HLDJ and game, and the song was placed in another random position with no apparently sorting.

Regards
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: List in game, how to alphabetically sort the songs?

Post by Renegade »

after starting HLDJ, search for and open "hldj_listaudio.cfg" in your game folder, see if the order in that file is what you expect.

ultimately the order isn't guaranteed to be sorted, but in almost all cases it will be. If it's not you likely have your audio files stored in FAT format instead of NTFS:
FindNextFile wrote:The order in which this function returns the file names is dependent on the file system type. With the NTFS file system and CDFS file systems, the names are usually returned in alphabetical order. With FAT file systems, the names are usually returned in the order the files were written to the disk, which may or may not be in alphabetical order. However, as stated previously, these behaviors are not guaranteed.
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: List in game, how to alphabetically sort the songs?

Post by A9i »

Thanks Renegade. That was the problem, the audio directory along with the program, was stored in a NAS folder, which runs a Linux distribution, so, the HDD wasn't in NTFS or FAT.

I changed the complete directory to a local hard drive and now it's sorted alphabetically again.

Thanks!
Post Reply