Author Topic: DEVELOPERS: (mod info) WM_COPYDATA command interface  (Read 37771 times)

Lavos^

  • Hero Member
  • *****
  • Posts: 2251
    • View Profile
    • Email
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #45 on: May 20, 2008, 09:58:20 am »
Dylan is back, Dylan is back, rejoice, for Dylan is back!

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #46 on: May 20, 2008, 09:26:00 pm »
it'd be nifty if audiosurf could send the filename of the .ash for the song it's playing. right now i can kind of hack it together, but it's not entirely reliable.

HAH! I just managed to fix this permanently. Thanks to quite a few undocumented API's I can now reliably lock onto which actual song file is being played in audiosurf and from there determine the correct .ash file and location.

LennardF1989

  • Full Member
  • ***
  • Posts: 113
  • That's しナード to you mister!
    • MSN Messenger - lennardfonteijn@hotmail.com
    • View Profile
    • LennardF1989.com
    • Email
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #47 on: May 22, 2008, 01:27:51 pm »
Hey Dylan,

I actually found some bugs when working on MyAudioSurf.

1. "asreport songcomplete <score>" gets spammed when you are in any tab on the scoreboard, except when AudioSurf doesn't have focus.
2. When you send two commands after eachother, AudioSurf will discard the first one and immediatly move to the second, instead of queuing them.
3. For some reason, when you force AudioSurf to the right side of an other screen than the primary, AudioSurf will just move back to the upperleft on the Primary, with the default resolution (800x600).
« Last Edit: May 24, 2008, 02:05:10 pm by LennardF1989 »



Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #48 on: May 24, 2008, 04:30:06 pm »
Audiosurf only accepts one command per frame. If you send two commands right after each other, Audiosurf is only capable of accepting the second one anyway. Add in a small delay between the two.

LennardF1989

  • Full Member
  • ***
  • Posts: 113
  • That's しナード to you mister!
    • MSN Messenger - lennardfonteijn@hotmail.com
    • View Profile
    • LennardF1989.com
    • Email
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #49 on: May 25, 2008, 05:34:13 am »
Audiosurf only accepts one command per frame. If you send two commands right after each other, Audiosurf is only capable of accepting the second one anyway. Add in a small delay between the two.
Yea, that's what Dylan told me ;) Though, using the sleep function is soo bad, but if it fixes it I can live with it :/



Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #50 on: May 25, 2008, 04:23:00 pm »
Heh a sleep wouldn't be too bad if it was a very small 10ms delay. The user would never notice. Alternatively, use a timer or add a new thread to do it. Which is easier? The sleep :P

LennardF1989

  • Full Member
  • ***
  • Posts: 113
  • That's しナード to you mister!
    • MSN Messenger - lennardfonteijn@hotmail.com
    • View Profile
    • LennardF1989.com
    • Email
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #51 on: May 26, 2008, 11:28:53 am »
I would like to request the following report:

- asreport vehicle mono/pointman/etc.

And perhaps
- asreport bonusses match7/match11/match21/cleanfinish/ironmode/etc.



enticore

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #52 on: June 28, 2008, 09:42:15 am »
It would be great if you could add a command like "asquery title" and "asquery artist" to get the title and artist on demand (and possibly other info like character, song length, progress on current song,...).

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #53 on: September 27, 2008, 02:49:14 am »
Noticed quite a few bugs wuilst experimenting with these:
After sending a song, if you take control manually of Audiosurf, that is play it "normally", whenever you select a song it jumps through the rollercoaster screen without a continue button. Also there's no "replay" etc buttons on the score table like there usually is. Maybe this is intentional? Thought it worth mentioning anyway.

Minimize and Maximize have a number of issues when Audiosurf is fullscreen. It looks like things are fighting for control.
On Minimize this means you sometimes get stuck in Audiosurf's screen mode instead of the desktop screen mode until you click somewhere. Perhaps the input focus isn't being changed?
On Maximize this means you move to the Audiosurf screen mode, see all the graphics but whenever you click you're actually clicking on the desktop or another application, so Windows gets very confused, flicks screen mode several times then you get presented with the same screen again with the same issue on the next click. The only (sane) way out of this I've found is to alt-F4 until the Audiosurf graphics stop responding at which point the start bar will redraw itself from mouse-overs and you can kill Audiosurf.

These are very nice features, would be nice to see them working properly. :)

Lavos^

  • Hero Member
  • *****
  • Posts: 2251
    • View Profile
    • Email
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #54 on: April 04, 2009, 05:04:55 pm »
How is the data sent back? Because I'm only getting gibberish:



Or this:



HA! I got it.

God damn PAnsiChar!



Anyway, woooo. Now I can finally continue.
« Last Edit: April 04, 2009, 06:08:10 pm by Lavos^ »

Lavos^

  • Hero Member
  • *****
  • Posts: 2251
    • View Profile
    • Email
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #55 on: April 06, 2009, 03:39:26 pm »
Dylan: Please add a command on the song load screen. Any command I don't care what it is, it can be a dummy command, just something. I need to do some pre-loading before a song starts to get accurate results.

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #56 on: April 06, 2009, 04:30:12 pm »
Dylan: Please add a command on the song load screen. Any command I don't care what it is, it can be a dummy command, just something. I need to do some pre-loading before a song starts to get accurate results.

What exactly are you trying to do? Just curious. :)

Lavos^

  • Hero Member
  • *****
  • Posts: 2251
    • View Profile
    • Email
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #57 on: April 06, 2009, 10:07:29 pm »
I need to populate a large array from a file, it's quicker to write the array into memory than it is to load the whole thing and then execute it, giving me different lengths of time needed for writing/reading, which is screwing everything up.

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #58 on: April 06, 2009, 10:21:50 pm »
I need to populate a large array from a file, it's quicker to write the array into memory than it is to load the whole thing and then execute it, giving me different lengths of time needed for writing/reading, which is screwing everything up.

I meant generally with Audiosurf. Or is it a secret?

If you're using .NET, it has horrible performance when dealing with large arrays. There's not a lot you can do about it though unfortunately. Could try unsafe code, might speed things up a little, but as the name suggests, it's unsafe. ;) (no array bounds checks, pointers can be wild, few other things)

Lavos^

  • Hero Member
  • *****
  • Posts: 2251
    • View Profile
    • Email
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #59 on: April 06, 2009, 10:38:43 pm »
You'll take my idea and do it before me, so it's a secret for now. :P

But, I'm using Delphi/Pascal, and that's why I'm putting it into an array at the start, it's faster than reading from a file ~10000 times. But that's why I want something on the load screen, so I can already start loading it into memory before the song even starts.