Audiosurf: Ride Your MusicAudiosurfAddonsContext menu: Play with Audiosurf
Pages: [1] 2
Print
Author Topic: Context menu: Play with Audiosurf  (Read 5558 times)
ANOON
Jr. Member
**
Posts: 56


View Profile
« on: April 10, 2008, 05:42:30 AM »

Hi,

I've created a little program program that adds a "Play with Audiosurf" context menu to your audio files. For this to work with AS you need the latest beta patch: http://www.audio-surf.com/forum/index.php/topic,2789.0.html






Download it here: www.audio-surf.nl/downloads/AudiosurfContextMenu.zip

Installation:
Unzip(!!!) the file somewhere on your disk and run it.
It will ask you if you want to install, press yes.
Leave the file where it is and open your music folder, right click a file and tadaa! Tongue

It's just a beta thing, tell me if you like it
« Last Edit: April 10, 2008, 02:05:29 PM by ANOON » Logged
Dark-Sonik
Jr. Member
**
Posts: 70


Just your little rodent in blue~

tachykusanagi@hotmail.de
View Profile WWW Email
« Reply #1 on: April 10, 2008, 06:58:46 AM »

Pretty sweet! Gonna test it out. n.n

€dit1: Found some bugs which are kinda odd:

-When trying to play a song on "Eraser Elite", the game loads the file with the infobox saying "Eraser Elite", but on the track it's only "Eraser" (blocks disappear faster, powerups from Eraser normal, other block-layout ect.)

I can't tell if that's either a problem with the context menu or with the new Beta feature (wrong labelling of the command)

€dit2: Seems to be a bug in the commands. Playing on "Eraser" (from the context menu) shows Eraser-Characterinfo, but the track is like on "Eraser Elite". I'm gonna report that bug in the Beta-Topic.
« Last Edit: April 10, 2008, 07:06:36 AM by Dark-Sonik » Logged

勝くん
Sr. Member
****
Posts: 327


Nooooooooeees

supervdz@dolfijn.nl
View Profile Email
« Reply #2 on: April 10, 2008, 10:58:48 AM »

Nice. Some suggestions, though:
1) Allow us to choose the character directly from the context menu. Right-click -> Audiosurf -> Mono Pro.
2) Not everybody will like #1. Here's when a settings app comes in: You open the app to configure stuff like whether it uses the program menu or the context menu menu. An option to completely turn off the Audiosurf-in-context-menu would be nice as well.
3) It would be nice if the program auto-detects whether or not Audiosurf has started yet.
4) This is on Dylan's side: It would be nice if it would receive the commands immediately when Audiosurf is running. If you use the application while Audiosurf is on the loading or seizure notice-screen, Audiosurf just ignores it.
Logged

Dylan
Developer
Administrator
Hero Member
*****
Posts: 978



View Profile WWW Email
« Reply #3 on: April 10, 2008, 11:04:13 AM »

Awesome. I've been wanting this forever.

It's not selecting Casual characters correctly, but I think that's my bug. Working on it now.
Logged
ANOON
Jr. Member
**
Posts: 56


View Profile
« Reply #4 on: April 10, 2008, 11:23:13 AM »


Nice. Some suggestions, though:
1) Allow us to choose the character directly from the context menu. Right-click -> Audiosurf -> Mono Pro.

Yes, I want this myself too Cheesy working on it

2) Not everybody will like #1. Here's when a settings app comes in: You open the app to configure stuff like whether it uses the program menu or the context menu menu. An option to completely turn off the Audiosurf-in-context-menu would be nice as well.

That's a good idea

3) It would be nice if the program auto-detects whether or not Audiosurf has started yet.

Yes this would be easy to build in if Dylan could make it send a ready status with a WM_COPYDATA (like Pwntastic said in the other topic)

4) This is on Dylan's side: It would be nice if it would receive the commands immediately when Audiosurf is running. If you use the application while Audiosurf is on the loading or seizure notice-screen, Audiosurf just ignores it.

It doesn't work at the loading screen but it does sometimes work at the seizure notice. Also working on that
Logged
LOL DYLAN BANNED ME
Hero Member
*****
Posts: 971


View Profile Email
« Reply #5 on: April 10, 2008, 12:16:06 PM »

3) It would be nice if the program auto-detects whether or not Audiosurf has started yet.

Yes this would be easy to build in if Dylan could make it send a ready status with a WM_COPYDATA (like Pwntastic said in the other topic)

Just on this note, you can already do this, I use it.

Here's what my code looks like in Delphi, you should be able to convert it to C++:

Code:
// See if Audiosurf is running
    AudiosurfHandle := FindWindow(nil, 'Audiosurf');
    if AudiosurfHandle <> 0 then
      begin
        Text := 'ascommand reloadtextures';
        copyDataStruct.dwData := 0; //use it to identify the message contents
        copyDataStruct.cbData := 1 + Length(Text);
        copyDataStruct.lpData := PChar(Text);
        SendMessage(Audiosurfhandle, WM_COPYDATA, 0, LongInt(@copyDataStruct));
      end;

The first 2 lines really... set the handle, and if the handle actually has some data, i.e it got the window, then run the code.
Logged
ANOON
Jr. Member
**
Posts: 56


View Profile
« Reply #6 on: April 10, 2008, 12:34:53 PM »

Cody900 That is not what I mean, I already use WM_COPYDATA but WM_COPYDATA does not send me when as is loaded, the only thing it sends is when a ride is finished (see Dylans topic)
Logged
LOL DYLAN BANNED ME
Hero Member
*****
Posts: 971


View Profile Email
« Reply #7 on: April 10, 2008, 12:41:28 PM »

Cody900 That is not what I mean, I already use WM_COPYDATA but WM_COPYDATA does not send me when as is loaded, the only thing it sends is when a ride is finished (see Dylans topic)

Yeah, but the above code shows when Audiosurf is running, that's basically the same thing.
Logged
Pwntastic
Roffles The Mighty
Global Moderator
Hero Member
*****
Posts: 1797


rofflesthemighty@hotmail.com LordDosk
View Profile WWW Email
« Reply #8 on: April 10, 2008, 12:46:48 PM »

Almost, but not. Because when audiosurf is still loading, it won't take any input and there's no way of accurately knowing when the program is fully loaded and ready to take inputs. Just because the application is running doesnt mean its ready
Logged


Quote from: John Carmack
it’s not “oh just thread your application”.  Anyone that says that is basically an idiot, not appreciating the problems.
ANOON
Jr. Member
**
Posts: 56


View Profile
« Reply #9 on: April 10, 2008, 01:22:12 PM »

1) Allow us to choose the character directly from the context menu. Right-click -> Audiosurf -> Mono Pro.



Tadaaa Tongue
and yes it really does work Cheesy
Logged
Pwntastic
Roffles The Mighty
Global Moderator
Hero Member
*****
Posts: 1797


rofflesthemighty@hotmail.com LordDosk
View Profile WWW Email
« Reply #10 on: April 10, 2008, 01:25:48 PM »

I certainly hope you didnt include that blah portion in the menu system Shocked
Hehe nice duder Smiley
Logged


Quote from: John Carmack
it’s not “oh just thread your application”.  Anyone that says that is basically an idiot, not appreciating the problems.
ANOON
Jr. Member
**
Posts: 56


View Profile
« Reply #11 on: April 10, 2008, 02:00:51 PM »

New version with context menu is ready:
Download it here: www.audio-surf.nl/downloads/AudiosurfContextMenu.zip (yes same url)

The UninstallContextMenu.exe removes the old menu and the new menu if present. So run it before you install the new one or you will have 2 Play With Audiosurf options Wink

If you want to move or delete my app please run the Uninstall app first

Please say if you like it (or not Tongue) and report bugs to me TNX Cheesy

PS. And no, the blah text is not part of the menu, it was just me being creative with paint  Grin
« Last Edit: April 10, 2008, 02:03:14 PM by ANOON » Logged
Dylan
Developer
Administrator
Hero Member
*****
Posts: 978



View Profile WWW Email
« Reply #12 on: April 10, 2008, 03:27:47 PM »

I love this.

Edit: I need to set this up so you can launch the game and get the user into their song without clicking anything.
« Last Edit: April 10, 2008, 03:34:08 PM by Dylan » Logged
LOL DYLAN BANNED ME
Hero Member
*****
Posts: 971


View Profile Email
« Reply #13 on: April 10, 2008, 04:15:56 PM »

I love this.

Edit: I need to set this up so you can launch the game and get the user into their song without clicking anything.

That's what I'm waiting for before I go into having to register the window and all that stuff.
Logged
勝くん
Sr. Member
****
Posts: 327


Nooooooooeees

supervdz@dolfijn.nl
View Profile Email
« Reply #14 on: April 10, 2008, 11:34:56 PM »

Again, a suggestion that Dylan would have to code for it to work: Allowing us to start in ironmode as well. A simple checkbox in that same menu, if checked it plays <character> ironmode, if unchecked it just normally plays that character.
Logged

Pages: [1] 2
Print
Jump to:  


Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Rhett design by Crip | XHTML | CSS