Jump to content


Photo

Extended Music Script 3.5

music extended psf spc mod it

  • Please log in to reply
12 replies to this topic

#1 Zhek

Zhek

    Member

  • Members
  • 10 posts
  • Primarily UsesRMVX Ace
  • First LanguageSpanish

Posted 28 May 2012 - 03:22 PM

Extended Music Script 3.5



Introduction
This script allows you to play music formats like psf, spc, mod, it, etc in your game, just like mp3 or midi.

Features
New Features:
- Script compatible with RPG Maker VX Ace
I mostly rewrote the code that's indented. Everything else was written by either Mooshykris or Guillaume777 years ago.
Credit us if you want in your game. Please report any bugs you may encounter to zhek.pvm@gmail.com and I'll try to fix them.

Script allows you to play unusual formats ( .psf, .gym, .spc, it, mod, etc. ) if there is a winamp dll for it
Script works with multiple format/dlls and doesn't require a 'call script' ( just make it play like any BGM )
Script won't give error unless there is a music file requiring dll and dll is not there

How to Use
Make sure Winamp.dll, out_wave.dll and the music dlls are in a folder called 'DLL' in your game folder
If you use in_bass.dll you need to have bass.dll in your game folder.
Copy your music files to the BGM folder ( you can't import them via RPG VX/Ace )
If you use .minipsf don't forget to include the psflib !!
Just use an event to play the music like any regular BGM
The music files won't play in Sound Test, only in the real game
If you want loop music files you need to edit dlls in winamp and copy the configure files to the DLL folder

Script
Spoiler


FAQ
I'll be adding questions here as you guys ask them.

Credit and Thanks
- Zhek (me, VX Ace rewrite)
- Mooshykris (Improvements over original version)
- Guillaume777 (Original Script)

Author's Notes
This script has been tested with RPG Maker VX Ace. It might work in VX too, but I haven't tried it yet. Let me know if you use it successfully there!

Dlls needed to make this work are available to download here. I have already included in_psf.dll which is needed to play PSX (.psf, .minipsf) music files. If you want to play other files such as SNES', you need to download in_spc.dll and so on.

Edited by Zhek, 29 May 2012 - 04:46 AM.


#2 Shablo5

Shablo5

    Advanced Member

  • Members
  • 467 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 28 May 2012 - 10:06 PM

Ahhh my finger. Can you put the script in spoilers please?

Anywho, what is your intended effect with this script? What inspired you to make it, and for what purpose? If you don't mind me asking.

Posted Image


#3 Zhek

Zhek

    Member

  • Members
  • 10 posts
  • Primarily UsesRMVX Ace
  • First LanguageSpanish

Posted 29 May 2012 - 04:54 AM

Ahhh my finger. Can you put the script in spoilers please?

Anywho, what is your intended effect with this script? What inspired you to make it, and for what purpose? If you don't mind me asking.


Done.

I once found a really nice music formats like .psf (sounds very well in a few kBs) and realised that they could be useful for RPG Maker. This script already worked fine for RPG Maker XP (it was released in 2004, by Guillaume777, don't know whether he's still around the community or not) but I adapted it to VX Ace (because that's the maker I use).

#4 Gordon228

Gordon228

    Newbie

  • Members
  • 4 posts
  • Primarily UsesN/A

Posted 15 June 2012 - 10:12 PM

is there any way to update this for the cipamp plugin pack? i would try but i am not skilled in scripting.

Edited by Gordon228, 16 June 2012 - 01:07 PM.


#5 darmakwolf

darmakwolf

    Newbie

  • Members
  • 7 posts
  • Primarily UsesN/A
  • First LanguageEnglish

Posted 02 January 2013 - 10:24 PM

Sorry if this is a necro-post or something - but I NEED this script to work... I love SNES SPCs. I remember having this working in XP, I now have VX Ace. My problem is I get a "undefined method 'call' for nil:NilClass" error on line 272, which is where "handel" is defined.
return @Findwindow.call('RGSS Player',game_name.slice!(0,zeichen))

I think it's just failing to check if there's a nil value with ?nil, but I don't know how to implement that. I have all the proper DLLs in the DLL folder, and I downloaded in_snes.dll and popped that in there. What am I doing wrong? The same thing happens on a clean new project.

#6 Internetakias

Internetakias

    RPG Maker VX Ace Noob :P

  • Members
  • 59 posts
  • LocationP-1 Grand Prix
  • Primarily UsesRMVX Ace
  • First LanguageGreek

Posted 03 January 2013 - 04:58 AM

Is there any chance of you adding compatibillity for foobar dlls?
Posted Image

#7 darmakwolf

darmakwolf

    Newbie

  • Members
  • 7 posts
  • Primarily UsesN/A
  • First LanguageEnglish

Posted 04 January 2013 - 10:42 AM

Is there any chance of you adding compatibillity for foobar dlls?


Why not just use the winamp ones? Winamp can play just about any format with plugins. I am still having an issue where I get an error even though all my DLLs are in the right folder. I think I boiled it down to an issue in Windows 7 where FindWindow API from user32 does not initialize properly, causing it to return nil.

#8 Solarphantom

Solarphantom

    Member

  • Members
  • 10 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 06 January 2013 - 07:37 AM

im gonna need that. lol i have sooo many music files that wont need to be converted anymore.

but how do you get mp3s that wont work in RMVX Ace to work? like im trying to put in a song for the credits, but in the sound test it wont play...

Rolling time!

('-')  ([: )  (.-.)  ( :])  ('-')

 

 


#9 darmakwolf

darmakwolf

    Newbie

  • Members
  • 7 posts
  • Primarily UsesN/A
  • First LanguageEnglish

Posted 06 January 2013 - 12:24 PM

Solar, the special formats will not play in the actual RPG Maker test-play. The audio will be played in-game, because the script in the game is telling the winamp DLL to play the song. RPG Maker itself can only preview the formats it knows, like MP3 and OGG. You will need to know what song is what, then select it and run the game. They will play in the game.

I wish someone would help me with the error I get though... the script does not work for me even with the DLLs in the right folder and even on a clean project. (Using Windows 7 64-bit)

im gonna need that. lol i have sooo many music files that wont need to be converted anymore.

but how do you get mp3s that wont work in RMVX Ace to work? like im trying to put in a song for the credits, but in the sound test it wont play...



#10 darmakwolf

darmakwolf

    Newbie

  • Members
  • 7 posts
  • Primarily UsesN/A
  • First LanguageEnglish

Posted 06 January 2013 - 08:00 PM

I'd appreciate someone testing this with .SPC (super nintendo format) files on Windows 7 64-bit edition. I simply cannot get past an error it throws, so I'd like to know if it's just something I'm doing wrong...

#11 Mr. Bubble

Mr. Bubble

    Makes stuff.

  • Global Moderators
  • 763 posts
  • LocationPortland, Oregon
  • Primarily UsesRMVX Ace

User's Awards

     

Posted 06 January 2013 - 08:44 PM

darmakwolf, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

#12 darmakwolf

darmakwolf

    Newbie

  • Members
  • 7 posts
  • Primarily UsesN/A
  • First LanguageEnglish

Posted 11 January 2013 - 10:50 AM

[dpost]darmakwolf[/dpost]


Sorry! I have to post this - I found out what the problem is, and how anyone in the future can fix this! Look at this line:

return @Findwindow.call('RGSS Player',game_name.slice!(0,zeichen))

see that? That was the line I always got the error on. It took a LONG time to figure out this simple problem with the script, but I got it! I backtraced every little thing the script does, and boiled it down to "Hmm... where is Findwindow even defined in code?"

well look here:
@FindWindow = Win32API.new 'user32', 'FindWindowA', %w(p p), 'l'

see that? Findwindow... ISN'T defined. FindWindow IS! (Capital W)
literally all I had to do was lower-case it, and it works!!! I hope this helps anyone with this script in the future, because finding this was frustrating. DLLs in my folder are as follows:

in_snes.dll (646 kb)
out_wave.dll (14 kb)
plugin.ini ([SNESamp] Version=30304) (1 kb)
SNESamp.cnt (1 kb)
SNESAMP.HLP (42 kb)
SNESAPU.DLL (48 kb)
unrar.dll (160 kb) - actually DOES provide support for rar'd SPCs!
Winamp.dll (20 kb) (Version 1.0.0.0)

Why this script is awesome: Epic SNES music (there's THOUSANDS of tacks) and they're only a few kilobytes each... lower game file size, more music!!

Edited by darmakwolf, 11 January 2013 - 10:52 AM.


#13 ct_bolt

ct_bolt

    Creator

  • Members
  • 228 posts
  • LocationPlanet Earth
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 20 February 2013 - 02:24 AM

Awesome script!  :)  Now I can finally use all my favorite SNES tunes! Thank you for this! BD

Question though, how would I play a .nsf file? These files contain more than one song so I don't really know how to get that to work properly.
The problem is that it just brings up a slider bar and starts with the first song.

This is what it looks like:

Spoiler


Here is what I got so far:

Spoiler

 

The project is attached. Click here: Attached File  Custom Music.zip   1.98MB   1 downloads

To change the music press the arrow keys (or move the slider with the mouse) then press the activate key ("enter", "z", etc.) on the glowing orb.


Edited by ct_bolt, 20 February 2013 - 02:27 AM.

Holder needs our help. Please donate anything you can to to help.

Holder's Fundraising

Crohn's and Colitis UK because holder's wife struggles with this, there's no known cure

badge10.gif

...

ct_bolt_s_creations__anim_sml_by_ctbolt-






Also tagged with one or more of these keywords: music, extended, psf, spc, mod, it

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users