The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Music not working
Author Message
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #1
Music not working
Basically, the midi files are not triggering upon entering certain areas, or periodically for that matter. I made a similar thread some time back, but was unable to arrive at a solution.

I recently bought a new laptop and decided to switched to the new Nightly Build and SCP, partly in hopes of correcting the issue. I also installed a new copy of the UO Classic Client (version 7.0.1.15.1). So, basically starting from scratch. I have not altered anything other than the Sphere.ini file, but there is still no music. I checked to make sure that the music is checked in Options, and that the volume is turned up. Footsteps and other sound effects seem to function, though the periodic sound effects seem to work only for some regions (only one dungeon area so far).

Here is the listing for Britain in Region.scp:

Quote:[REGIONTYPE r_brit t_rock]
// Sometimes Iron can be mined in the town of Britannia.
RESOURCES=60.0 mr_nothing
RESOURCES=40.0 mr_iron
ON=@Enter
SRC.MESSAGE Welcome to Britain <SRC.NAME>!
SRC.MESSAGE Lord British Guards are here to protect you!
SRC.MUSIC=midi_britain1,midi_britain2
ON=@CliPeriodic
SRC.MUSIC=midi_britain1,midi_britain2

When I enter Britain I receive both messages, but the music fails to play. I notice that the UO music folder contains MP3s as opposed to midis, but, unless I am wrong, this should not matter. Similarly, the periodic music for other regions and areas fails to play.

Anyone have any idea what I am doing wrong? Thanks in advance.
(This post was last modified: 01-24-2014 04:21 PM by Archaaz.)
01-24-2014 04:14 PM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #2
RE: Music not working
i guess the right form should be

src.music 9,10
or src.midilist 9,10
or src.music <def.britain_music1>,<def.britain_music2>
or src.midilist <def.britain_music1>,<def.britain_music2>

or combining numbers with defs, but... i've tried that and it doesn't work. Who broke it! (56c and 56b prerelease tested, neither worked)

The only thing that seems to work is
Code:
music/midilist 0,whatever
and it starts playing "terrifying" music (turfin.mp3).
(This post was last modified: 01-24-2014 04:55 PM by Alaric.)
01-24-2014 04:53 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: Music not working
Do you have this feature enabled in the sphere.ini ?

// FEATURE_LBR_SOUND 02 // MP3 instead of MIDI
01-24-2014 05:29 PM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #4
RE: Music not working
Yes, sir.
01-24-2014 11:49 PM
Find all posts by this user Like Post Quote this message in a reply
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #5
RE: Music not working
(01-24-2014 04:53 PM)Alaric Wrote:  i guess the right form should be

src.music 9,10
or src.midilist 9,10
or src.music <def.britain_music1>,<def.britain_music2>
or src.midilist <def.britain_music1>,<def.britain_music2>

or combining numbers with defs, but... i've tried that and it doesn't work. Who broke it! (56c and 56b prerelease tested, neither worked)

The only thing that seems to work is
Code:
music/midilist 0,whatever
and it starts playing "terrifying" music (turfin.mp3).

I have the same experience. These formats all trigger turfin.mp3, which I assume is the default. Turfin.mp3 is listed in my UO music\digital folder as mp3 number 66.

I tried src.music and src.midilist with some higher numbers (src.music 15 for example) but the result was no music at all.

I also tried SRC.MUSIC midi_britain1,midi_britain2 (as opposed to SRC.MUSIC= midi_britain1,midi_britain2) as well, as this is what is listed in sphere_defs, but it did not work either; no music at all.

(01-24-2014 05:29 PM)darksun84 Wrote:  Do you have this feature enabled in the sphere.ini ?

// FEATURE_LBR_SOUND 02 // MP3 instead of MIDI

Yes, indeed. I tried it both ways, with it enabled and without, and I get the same results.
01-25-2014 02:25 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: Music not working
@ENTER and @EXIT are not working here for both AREADEF and ROOMDEF.
When I use .music or .midilist the music plays fine.

Ahh, I'm using UO version 7.0.10.3.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
(This post was last modified: 01-25-2014 02:40 AM by Extreme.)
01-25-2014 02:39 AM
Find all posts by this user Like Post Quote this message in a reply
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #7
RE: Music not working
Thanks guys. Not sure what the issue is exactly. I tried downloading 7.0.10.3, but the result is the same. Basically there is either no music or turfin.mp3 plays. Will keep trying things I suppose. Thanks again.
(This post was last modified: 01-25-2014 05:29 AM by Archaaz.)
01-25-2014 05:28 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #8
RE: Music not working
I'm not sure when this was changed... but from what I see in the source, triggers don't work in AREADEF, only in REGIONTYPE that are defined in the AREADEF and ROOMDEF, and also in the sphere.ini setting EVENTSREGION.
With that said... I see no issues here. The triggers are working fine and like Extreme, music works fine for me too.

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
(This post was last modified: 01-25-2014 06:43 AM by Ben.)
01-25-2014 06:42 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #9
RE: Music not working
Guys, you must be wizzards.

How exactely are you testing it? It still doesn't work to me. Simply trying .music/.midilist 8,9 commands in game with no result. Sphere.ini flag switching with and without mp3 support. Changing clients. Nothing...
01-25-2014 08:35 PM
Find all posts by this user Like Post Quote this message in a reply
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #10
RE: Music not working
(01-25-2014 08:35 PM)Alaric Wrote:  Guys, you must be wizzards.

How exactely are you testing it? It still doesn't work to me. Simply trying .music/.midilist 8,9 commands in game with no result. Sphere.ini flag switching with and without mp3 support. Changing clients. Nothing...

Yep, same here. Not sure what exactly the problem is, but I am out of options.
01-26-2014 01:55 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 6 Guest(s)