Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-28-2002, 08:08 PM
WoRlaNN2k WoRlaNN2k is offline
Registered User
Join Date: Oct 2001
Location: Ontario, Canada
Posts: 266
WoRlaNN2k is on a distinguished road
Send a message via ICQ to WoRlaNN2k Send a message via AIM to WoRlaNN2k Send a message via Yahoo to WoRlaNN2k
Music Help

Argh... I have forgotten how to put midis into levels . I know you used the play or playlooped command, but the file I want it to play isn't playing.
I seriously have forgotten what to do... this is what I have done but it doesn't seem to work.

if (created) {
play home.mid;
}

The above doesn't work, but alter it a bit...

if (created) {
play stef1.mid;
}

That one works. The home.mid is in the same directory as stef1.mid, and it is a valid MIDI file. What am I doing wrong?
__________________

A GOLD Dragon Lies Beneath!

I took the Inner Dragon online quiz and found out I am a Gold Dragon on the inside. My Inner Dragon is the most honorable of all. Golds are the third rarest of all the dragons (after Platinum and Chromatic dragons) and have a station in society that reflects their rarity. I am what one might call a Draconic Knight. Golds live by a strict code of chivalry and commitment. Remember Draco? Yep, Gold Dragon. My appearance is fearsome and all-mighty but I'd never stoop so low as to bring any harm to a human. I'm one of only two dragon types that are aligned "Lawful Good" and demonstrate great magical proficiency. My piety, beauty, wisdom, and inner strengrth are absolutely without parallel.

Of course, being a Gold Dragon isn't all high ethics and codes. I like to fly around scaring things, advise humans in their affairs, and shapeshift. Strike that, I LOVE to shapeshift. And I'm great at it. In fact, who's to say I'm not really a Gold Dragon after all? My favorable attributes are honor, truth, kindness, gold, wisdom, bravery, and trustworthiness. If anyone threatens or tries to kill me, I could strike back with my breath weapon - Fire. But then, no one's tried anything that stupid in the last couple thousand years. After all, I'm about 54 feet long.

Last edited by Python523; 06-29-2002 at 12:58 PM..
Reply With Quote
  #2  
Old 06-29-2002, 01:05 AM
Dragona2002 Dragona2002 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 105
Dragona2002 is on a distinguished road
Send a message via AIM to Dragona2002 Send a message via Yahoo to Dragona2002
is it good sound streaming ?


u cant play a midid if its to high sound graphical
__________________

Quote:
The Dark Nemesis begins.......
Reply With Quote
  #3  
Old 06-29-2002, 01:25 AM
WoRlaNN2k WoRlaNN2k is offline
Registered User
Join Date: Oct 2001
Location: Ontario, Canada
Posts: 266
WoRlaNN2k is on a distinguished road
Send a message via ICQ to WoRlaNN2k Send a message via AIM to WoRlaNN2k Send a message via Yahoo to WoRlaNN2k
what do you mean by too high sound graphical? I thought it said anything that Windows Media Player can play...

Here it is if you want to see if its too high quality.
Attached Files
File Type: zip house.zip (9.9 KB, 162 views)
__________________

A GOLD Dragon Lies Beneath!

I took the Inner Dragon online quiz and found out I am a Gold Dragon on the inside. My Inner Dragon is the most honorable of all. Golds are the third rarest of all the dragons (after Platinum and Chromatic dragons) and have a station in society that reflects their rarity. I am what one might call a Draconic Knight. Golds live by a strict code of chivalry and commitment. Remember Draco? Yep, Gold Dragon. My appearance is fearsome and all-mighty but I'd never stoop so low as to bring any harm to a human. I'm one of only two dragon types that are aligned "Lawful Good" and demonstrate great magical proficiency. My piety, beauty, wisdom, and inner strengrth are absolutely without parallel.

Of course, being a Gold Dragon isn't all high ethics and codes. I like to fly around scaring things, advise humans in their affairs, and shapeshift. Strike that, I LOVE to shapeshift. And I'm great at it. In fact, who's to say I'm not really a Gold Dragon after all? My favorable attributes are honor, truth, kindness, gold, wisdom, bravery, and trustworthiness. If anyone threatens or tries to kill me, I could strike back with my breath weapon - Fire. But then, no one's tried anything that stupid in the last couple thousand years. After all, I'm about 54 feet long.
Reply With Quote
  #4  
Old 06-29-2002, 01:35 AM
draygin draygin is offline
Telmont Bandit
draygin's Avatar
Join Date: Feb 2002
Location: Ohio
Posts: 2,550
draygin is on a distinguished road
Quote:
Originally posted by WoRlaNN2k
what do you mean by too high sound graphical? I thought it said anything that Windows Media Player can play...

Here it is if you want to see if its too high quality.
In my experince all you need is

play midiname.mid;

none of the other stuff.

But I have used

if (playerenters){play midiname.mid}

hmm I think I"ve seen it as set midi or something before.
__________________

I stole Spanky's gold!
Reply With Quote
  #5  
Old 06-29-2002, 10:31 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by WoRlaNN2k
what do you mean by too high sound graphical? I thought it said anything that Windows Media Player can play...

Here it is if you want to see if its too high quality.
Personally i've never made an npc that had to play a midi. :-(

But I do remember hearing graal could play anything windows media player could play.

Technically you could play .avi's
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #6  
Old 06-29-2002, 12:20 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
would giving it all small ".mid" help?
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #7  
Old 06-29-2002, 12:47 PM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
if (playerenters){
playlooped ***music.mid;
}

>:O
Reply With Quote
  #8  
Old 06-29-2002, 09:58 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Dragona2002
is it good sound streaming ?


u cant play a midid if its to high sound graphical
so thats why i dont here music (real music) !
Reply With Quote
  #9  
Old 06-29-2002, 10:10 PM
Dragona2002 Dragona2002 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 105
Dragona2002 is on a distinguished road
Send a message via AIM to Dragona2002 Send a message via Yahoo to Dragona2002
.........U CANT.....................
__________________

Quote:
The Dark Nemesis begins.......
Reply With Quote
  #10  
Old 06-29-2002, 10:23 PM
WoRlaNN2k WoRlaNN2k is offline
Registered User
Join Date: Oct 2001
Location: Ontario, Canada
Posts: 266
WoRlaNN2k is on a distinguished road
Send a message via ICQ to WoRlaNN2k Send a message via AIM to WoRlaNN2k Send a message via Yahoo to WoRlaNN2k
if graal can play any of those stef1-whatever.mid, then it definitely should be able to play the one I'm trying to use...
__________________

A GOLD Dragon Lies Beneath!

I took the Inner Dragon online quiz and found out I am a Gold Dragon on the inside. My Inner Dragon is the most honorable of all. Golds are the third rarest of all the dragons (after Platinum and Chromatic dragons) and have a station in society that reflects their rarity. I am what one might call a Draconic Knight. Golds live by a strict code of chivalry and commitment. Remember Draco? Yep, Gold Dragon. My appearance is fearsome and all-mighty but I'd never stoop so low as to bring any harm to a human. I'm one of only two dragon types that are aligned "Lawful Good" and demonstrate great magical proficiency. My piety, beauty, wisdom, and inner strengrth are absolutely without parallel.

Of course, being a Gold Dragon isn't all high ethics and codes. I like to fly around scaring things, advise humans in their affairs, and shapeshift. Strike that, I LOVE to shapeshift. And I'm great at it. In fact, who's to say I'm not really a Gold Dragon after all? My favorable attributes are honor, truth, kindness, gold, wisdom, bravery, and trustworthiness. If anyone threatens or tries to kill me, I could strike back with my breath weapon - Fire. But then, no one's tried anything that stupid in the last couple thousand years. After all, I'm about 54 feet long.
Reply With Quote
  #11  
Old 07-01-2002, 01:23 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Hmmm check if the file name is lower case, and that there is only one home.mid file in the Graal folders
Reply With Quote
  #12  
Old 07-01-2002, 05:14 AM
WoRlaNN2k WoRlaNN2k is offline
Registered User
Join Date: Oct 2001
Location: Ontario, Canada
Posts: 266
WoRlaNN2k is on a distinguished road
Send a message via ICQ to WoRlaNN2k Send a message via AIM to WoRlaNN2k Send a message via Yahoo to WoRlaNN2k
Its lower case and there is only one... argh its not working
__________________

A GOLD Dragon Lies Beneath!

I took the Inner Dragon online quiz and found out I am a Gold Dragon on the inside. My Inner Dragon is the most honorable of all. Golds are the third rarest of all the dragons (after Platinum and Chromatic dragons) and have a station in society that reflects their rarity. I am what one might call a Draconic Knight. Golds live by a strict code of chivalry and commitment. Remember Draco? Yep, Gold Dragon. My appearance is fearsome and all-mighty but I'd never stoop so low as to bring any harm to a human. I'm one of only two dragon types that are aligned "Lawful Good" and demonstrate great magical proficiency. My piety, beauty, wisdom, and inner strengrth are absolutely without parallel.

Of course, being a Gold Dragon isn't all high ethics and codes. I like to fly around scaring things, advise humans in their affairs, and shapeshift. Strike that, I LOVE to shapeshift. And I'm great at it. In fact, who's to say I'm not really a Gold Dragon after all? My favorable attributes are honor, truth, kindness, gold, wisdom, bravery, and trustworthiness. If anyone threatens or tries to kill me, I could strike back with my breath weapon - Fire. But then, no one's tried anything that stupid in the last couple thousand years. After all, I'm about 54 feet long.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.