Author Topic: Super Playlist Surf!  (Read 26271 times)

lavacano201014

  • Hero Member
  • *****
  • Posts: 1757
  • We're an underground revolution working overtime.
    • ICQ Messenger - 431938899
    • MSN Messenger - thatotherguy370@msn.com
    • AOL Instant Messenger - lavacano201014
    • Yahoo Instant Messenger - lavacano201014
    • View Profile
    • Email
Re: Super Playlist Surf!
« Reply #15 on: January 03, 2009, 12:18:24 pm »
I'm wondering if adding some sort of statistics log is worthwhile?
If you're not looking at the highscores in between each song it might be handy to have at the end.

Is anyone interested in me adding this?
Also could grab the highest current score from the Audiosurf scoreboards and put that in the file as well.

Yes to all, si vous plait.

Green = listening, red = surfing

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: Super Playlist Surf!
« Reply #16 on: January 03, 2009, 01:37:14 pm »
Ok. Planning a plain text format, XML and CSV.
Text should be easily readable.
XML and CSV should be easily parsable for anyone interested in that aspect.

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: Super Playlist Surf!
« Reply #17 on: January 26, 2009, 11:18:55 am »
Statistics added with highscore downloader.
This has been working for me all afternoon so I'm marking it as working, any problems please report!

Added:
 - Statistics output in text, CSV or XML format.
 - Highscores downloaded and added to above statistics.
 - Options saving / loading on starting / quitting program including the playlist that was open.
 - Cleaned up the code moving the playlist, statistics and downloader parts into their own APIs for future use.
 - Uses new "Windows key" method to minimise Audiosurf as a workaround to Audiosurf not minimising properly.
 - Marginal UI clear up (tab order is now sensible).

DarkDragon

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Super Playlist Surf!
« Reply #18 on: February 05, 2009, 01:21:16 pm »
I'm getting a crash when I start audiosurf after importing my (admittedly, huge) playlist from winamp.

It gives me a "C++ Runtime Error - This application has requested that the runtime terminate it in an unusual way" error.

I'm running on Windows XP Pro.

The odd thing is, it worked once, played one song, then when it went to play a different song it gave the error. From then on I get the error anytime I try to start a song using this program.

Really too bad.

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: Super Playlist Surf!
« Reply #19 on: February 05, 2009, 01:41:33 pm »
Hmm, odd. Especially since there's no C++ in it at all. :P

Firstly, do you know which song caused it?
Secondly, to get it running again try deleting C:\Documents and Settings\username\Local Settings\superplaylistsurfoptions.xml

Not really sure what caused it, but if you can pinpoint it to one particular song (or an element common to several songs) I'd like to hear about it please and I'll try and fix it.

DarkDragon

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Super Playlist Surf!
« Reply #20 on: February 05, 2009, 08:36:26 pm »
I have no idea what song caused it because Audiosurf doesn't display the song when it dies.

I think it's Audiosurf that's crashing, and not your program. Your program is still running in the background.

I thought at first it was crashing because of a song title with spaces (the common unicode problem) - but the one time it worked it loaded a song w/spaces in it's title (and filename).

That, and I can load songs w/spaces in their titles/filenames w/o using your program in Audiosurf just fine.

But sadly I don't know what song it's trying to load because it never shows the title in audiosurf.

I'll try deleting the file you suggested.

EDIT - FYI the file was located in C:\Documents and Settings\username\Local Settings\Application Data\ and not the path you specified. Not a big deal, I found it fine.

EDIT - It still crashed. The first song it picked worked again, then when it selected the next song audiosurf crashed while it was trying to load it.

Could it have something to do with me having songs on multiple harddrives on this playlist? My music is spread out between 2 main directories on 2 different harddrives.


EDIT - Ok, I figured it out.

My winamp playlist was not listing the full path to all the files as it was saved in my music directory. I re-saved it with a different player outside my music directory so it would read the full path to all the music files. It works now. It was throwing the error because it couldn't find the files it was suppose to be playing.
« Last Edit: February 05, 2009, 11:13:28 pm by DarkDragon »

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: Super Playlist Surf!
« Reply #21 on: February 06, 2009, 12:45:09 am »
Right, ok, thanks.
Audiosurf doesn't currently accept Unicode filenames through WM_COPYDATA, but Dylan has said he'll add this, so that's something we'll just have to wait on.

I couldn't remember exactly where the options file was in XP, I use Vista primarily. :)

Could you recreate a playlist that doesn't show the full path please? With just 5 songs and attach it?
I've not managed to persuade WinAMP to replicate that behaviour (What version are you using?) but I'd like to make a work-around for it.

DarkDragon

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Super Playlist Surf!
« Reply #22 on: February 06, 2009, 10:56:25 am »
Right, ok, thanks.
Audiosurf doesn't currently accept Unicode filenames through WM_COPYDATA, but Dylan has said he'll add this, so that's something we'll just have to wait on.

I couldn't remember exactly where the options file was in XP, I use Vista primarily. :)

Could you recreate a playlist that doesn't show the full path please? With just 5 songs and attach it?
I've not managed to persuade WinAMP to replicate that behaviour (What version are you using?) but I'd like to make a work-around for it.

I haven't updated winamp in ages, I have winamp 5.24.

That could very well be the problem as well.

In any case, here's a quick playlist for example's sake.

The playlist was saved in my C:\Music directory, which is the root folder for all my music.

The folder structure listed in the playlist is just Nightwish\ALBUM\filename

It doesn't save the full path for some stupid reason. Probably just need to update winamp. I just rarely bother to update media players unless a problem occurs.


EDIT - I should mention that your app is working for me now that I saved the playlist correctly. (with the full paths instead of partial paths) Even with 90% of my directories/files containing spaces (spaces are still considered unicode right?) Audiosurf plays random songs from my playlist now with no problem.

Thanks for the app. :)
« Last Edit: February 06, 2009, 10:58:27 am by DarkDragon »

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: Super Playlist Surf!
« Reply #23 on: February 06, 2009, 12:14:50 pm »
Ahhh, thanks for that, I see now.
I don't think updating WinAMP will change it, that's how playlists are supposed to behave with a relative path instead of an absolute one, I'd just forgotten about that behaviour, thanks for picking it up for me!

Spaces aren't necessarily Unicode, they can be represented in the standard ASCII set. I mentioned Unicode because any paths in the playlist that ARE Unicode will always cause Audiosurf to crash at the moment.

I'll update my code anyway with the relative paths so those playlists will work in the next release, although that in itself isn't worth another release right now I don't think. I'll wait for Dylan to fix the Unicode path problem and release another version then, as I know it will require some changes to be made.

David_VI

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Re: Super Playlist Surf!
« Reply #24 on: February 11, 2009, 08:46:34 am »
This is cool, but I have the Issue above with my winamp playlists..

Also when it does work, it doesn't seem to go onto another song.. what do I have to do?

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: Super Playlist Surf!
« Reply #25 on: February 11, 2009, 09:19:50 am »
This is cool, but I have the Issue above with my winamp playlists..

Also when it does work, it doesn't seem to go onto another song.. what do I have to do?

I suspect the latest update might have broken it, but I've not tested yet.
I'll get on it and fix things over the next few days anyway.

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: Super Playlist Surf!
« Reply #26 on: February 11, 2009, 01:00:25 pm »
Also when it does work, it doesn't seem to go onto another song.. what do I have to do?

As a workaround, start Audiosurf first, then wait until you're at the character screen, then start Super Playlist Surf.
Hopefully I'll be able to resolve this properly shortly.

nhex

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Super Playlist Surf!
« Reply #27 on: March 02, 2009, 12:17:33 am »
Not super essential or anything, but could you include an icon for the program in your next version? I hate looking at that generic white box on my desktop shortcut.

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: Super Playlist Surf!
« Reply #28 on: March 02, 2009, 04:52:22 am »
Not super essential or anything, but could you include an icon for the program in your next version? I hate looking at that generic white box on my desktop shortcut.

I can't draw at all. :P
I'm reluctant to include Dylan's icon because I've released SPS as free software on sourceforge, which means all its components must have some sort of open source licence, including things like pictures etc. Plus I'd need permission.

You could always use Windows' feature to change the shortcut icon: Right-click -> Properties -> Change Icon.

QuickSurf uses Audiosurf's icon for the system tray by looking for Steam and Audiosurf on the system then pulling it out from there at runtime, which is why there's no conflict there (no Audiosurf on the system and you get the standard icon).

I might use one of the Picol icons (http://www.picol.org/) in the next release or if anyone wants to draw me one I'll use that instead.
But seriously, I can't draw at all. :P

Edit: As a final suggestion you could download the source code and Visual Studio Express 2008 and add your own icon. ;)

floppybelly

  • Newbie
  • *
  • Posts: 12
  • Everybody lies.
    • MSN Messenger - floppybellyoh@yahoo.com
    • AOL Instant Messenger - floppeebelly
    • Yahoo Instant Messenger - floppybellyoh
    • View Profile
    • my webpage
    • Email
Re: Super Playlist Surf!
« Reply #29 on: March 09, 2009, 06:42:50 am »
I've been trying out the mod these past few days, it's good stuff!