Author Topic: Audiosurf Mod Manager  (Read 24671 times)

Dylan

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
    • Audiosurf
    • Email
Re: Audiosurf Mod Manager
« Reply #30 on: April 09, 2008, 10:49:41 am »
Nice :)

I'm working on an Audiosurf command system that works by sending WM_COPYDATA messages. This should be easy to interact with from c/c++ and also from python.

ANOON

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: Audiosurf Mod Manager
« Reply #31 on: April 09, 2008, 11:24:16 am »
Ha. Dylan look what I've managed to do.... set the title text. :P

Not a lot, but making some progress.

Yeah, I like the button1 idea ;)

But changing the title isn't very hard :P Something that was harder to make was a script that sets my xfire status to the song I play in audiosurf

Cody900

  • Hero Member
  • *****
  • Posts: 953
    • View Profile
    • Email
Re: Audiosurf Mod Manager
« Reply #32 on: April 09, 2008, 11:32:24 am »
Ha. Dylan look what I've managed to do.... set the title text. :P

Not a lot, but making some progress.

Yeah, I like the button1 idea ;)

But changing the title isn't very hard :P Something that was harder to make was a script that sets my xfire status to the song I play in audiosurf

That was just a test button, I didn't want to click Set Active every time to test. :P

I've never done any changing of external applications before, so it was a "YAY IT WORKED!" moment. :P

Faxmachinen

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Audiosurf Mod Manager
« Reply #33 on: April 09, 2008, 12:18:54 pm »
I'm working on an Audiosurf command system that works by sending WM_COPYDATA messages. This should be easy to interact with from c/c++ and also from python.
You'd have to get the win32api addon for Python to be able to send window messages. To be honest, I'd rather write a tiny C++ application and just launch it from Python.

Dylan

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
    • Audiosurf
    • Email
Re: Audiosurf Mod Manager
« Reply #34 on: April 09, 2008, 12:24:07 pm »
Google says you can do it with ctypes:
http://blog.buffis.com/?p=29

I'll try it soon.

Cody900

  • Hero Member
  • *****
  • Posts: 953
    • View Profile
    • Email
Re: Audiosurf Mod Manager
« Reply #35 on: April 09, 2008, 10:50:35 pm »
Ok, version 1.0 released!!

Many changes and fixes. I suggest you delete your current Variables/texturemod/soundmods files and let the program re-create them.

xairu

  • Global Moderator
  • Full Member
  • *****
  • Posts: 208
  • <3 audiosurf
    • View Profile
Re: Audiosurf Mod Manager
« Reply #36 on: April 09, 2008, 11:02:48 pm »
Woohoo! In the credits three times!

I'm so glad to see version 1.0 of this out.. So long has Cody been complaining in IRC about not being able to do something, yet finally does it :P


Add me, PSN: Xairu
GTAIV! yo

Cody900

  • Hero Member
  • *****
  • Posts: 953
    • View Profile
    • Email
Re: Audiosurf Mod Manager
« Reply #37 on: April 09, 2008, 11:51:27 pm »
Woohoo! In the credits three times!

I'm so glad to see version 1.0 of this out.. So long has Cody been complaining in IRC about not being able to do something, yet finally does it :P

Can finally settle down and watch the 3 films I managed to download while working on it. :P

Faxmachinen

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Audiosurf Mod Manager
« Reply #38 on: April 10, 2008, 11:19:28 am »
Google says you can do it with ctypes:
http://blog.buffis.com/?p=29

I found that article too, and it mentions that
Quote
To get this running you need the win32 modules (win32con, win32gui, win32api) as well as ctypes.

But upon further investigation of ctypes, it appears that you are correct.
Code: [Select]
from ctypes import *
SendMessage = windll.user32.SendMessageA
HWND_BROADCAST = c_int(0xFFFF)
WM_SETTEXT = c_uint(0x0C)
SendMessage(HWND_BROADCAST, WM_SETTEXT, c_void_p(None), c_char_p("All your window are belong to us"))

Edit: Fixed code again and actually tested that it works this time
« Last Edit: April 11, 2008, 05:50:28 pm by Faxmachinen »

Cody900

  • Hero Member
  • *****
  • Posts: 953
    • View Profile
    • Email
Re: Audiosurf Mod Manager
« Reply #39 on: April 10, 2008, 12:13:34 pm »
Just quickly uploaded a new release. I FINALLY(!!!!) found out why the first run was screwing up, apparently every time you open a dialog box, it changes the current directory, so it was trying to read and create files in the wrong place.

Anyway, it's fixed now, so you no longer have to restart.

Laserrobotics

  • Robot Overlord
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3464
  • Beep boop everyone.
    • View Profile
    • Steam ID
Re: Audiosurf Mod Manager
« Reply #40 on: April 10, 2008, 12:16:19 pm »
Google says you can do it with ctypes:
http://blog.buffis.com/?p=29

I found that article too, and it mentions that
Quote
To get this running you need the win32 modules (win32con, win32gui, win32api) as well as ctypes.

But upon further investigation of ctypes, it appears that you are correct.
Code: [Select]
from ctype import *
SendMessage = ctype.user32.SendMessageA
HWND_BROADCAST = c_int(0xFFFF)
WM_SETTEXT = c_uint(0x0C)
SendMessage(HWND_BROADCAST, WM_SETTEXT, 0, c_char_p("All your window are belong to us"))
but i want my window
Note to self:  1/24/12 Awawayabeft

sub7th

  • Jr. Member
  • **
  • Posts: 88
  • Brown Chicken Brown Cow
    • View Profile
    • Email
Re: Audiosurf Mod Manager
« Reply #41 on: May 27, 2008, 02:07:36 pm »
This app rocks!

Anychance it will also change tiles.png and tileflyup.png in the future?
All of my mods use these textures.


Nice work!
Bibbidy Bobbidy Boo!

Lavos^

  • Hero Member
  • *****
  • Posts: 2251
    • View Profile
    • Email
Re: Audiosurf Mod Manager
« Reply #42 on: May 27, 2008, 02:20:50 pm »
Well I can't edit my post anymore because I'm banned. I can't really be much bothered with carrying on with it, but if you know Delphi you're welcome to the source.

sub7th

  • Jr. Member
  • **
  • Posts: 88
  • Brown Chicken Brown Cow
    • View Profile
    • Email
Re: Audiosurf Mod Manager
« Reply #43 on: May 27, 2008, 02:41:40 pm »
AH, bummer.
No delphi here, I'm a multimedia artist.
 :'(
Bibbidy Bobbidy Boo!