Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> World's Most Newbie-ish Audio Question, Namely, how do I get it to work... ?
TheBen
post Dec 14 2011, 05:40 PM
Post #1


Intolerable Noob
Group Icon

Group: Revolutionary
Posts: 344
Type: Developer
RM Skill: Beginner




If history has taught us anything, it's that I'm a terrible scripter, and if sanity has taught me anything, it's that I'm going to need your help to remedy my shortcoming. Now, I've been writing a script for RPGVX that randomizes various things such as Cursor SE, Battle BGM, etc. and I've figured out something very odd: the snippet
CODE
#Play one of a random array of SE files
  def self.play_random_sound(sounds_list)
    sound = sounds_list[rand(sounds_list.size)]
    Audio.se_play("Audio/SE/"+sound[0], sound[1], sound[2])
    #sound[0] = filename
    #sound[1] = volume
    #sound[2] = pitch
  end

Doesn't work for me, even though it's practically copied and pasted from the help manual itself. When I try to play, for example, "Confirm.ogg", I'm told that the game's "Unable to find Audio/SE/Confirm.ogg". I'm pretty much at a loss here - I've also tried making the SE files in the module and then using the play() method in-game, which actually makes more sense, now that I think about it, but I've gotten the same error.

Thanks in advance for the mockery help and criticism, which is always welcome... at least on a good day, but give it to me anyway.
biggrin.gif


__________________________
QUOTE
Great people talk about IDEAS
Average people talk about THINGS
Small people talk about OTHER PEOPLE

- A plaque on a BBQ restaurant in VA
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Dec 15 2011, 01:18 AM
Post #2


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Are you sure the file even exists in your project? (It doesn't in the RTP, by the way).


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
TheBen
post Dec 15 2011, 06:09 PM
Post #3


Intolerable Noob
Group Icon

Group: Revolutionary
Posts: 344
Type: Developer
RM Skill: Beginner




... Oh. Now I feel like an idiot. pinch.gif
Thanks, Kread. I should be fine now.


__________________________
QUOTE
Great people talk about IDEAS
Average people talk about THINGS
Small people talk about OTHER PEOPLE

- A plaque on a BBQ restaurant in VA
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 07:12 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker