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
Help with music
Author Message
john2260
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2013
Reputation: 0



Post: #1
Help with music
No music plays on my server even if I use the .music 38 nothing. The music is ticked active on the options menu.
07-13-2013 10:59 AM
Find all posts by this user Like Post Quote this message in a reply
dagger4k
Journeyman
*

Posts: 194
Likes Given: 1
Likes Received: 12 in 12 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: Help with music
You have a client issue there... I suggest looking at your game settings to make sure you have the music sound up and switched on. If you are using a patched version they might have turned it off in the UO config.

the music files should be UO/music
07-13-2013 01:09 PM
Find all posts by this user Like Post Quote this message in a reply
john2260
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2013
Reputation: 0



Post: #3
RE: Help with music
Ok i have done all that but still no music.
07-14-2013 10:59 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: #4
RE: Help with music
I am having the same issue, no music. Other sounds functions just fine, as does the opening music. I am using version 7.0.15.1 (Patch 51). I checked the options in the character profile and the Music section is checked, music turned all the way up.

Likewise I have set FeatureLBR = 02, as the files in the client folder are MP3 (not sure if this matters).

The contents of my client config file:

Quote:0 turfin,loop
1 turfin,loop
2 turfin,loop
3 turfin,loop
4 turfin,loop
5 turfin,loop
6 turfin,loop
7 turfin,loop
8 stones1
9 britainpos,loop
10 britain1
11 bucsden,loop
12 jhelom
13 lbc
14 linelle
15 newmagincia,loop
16 minocpos,loop
17 valoriapos,loop
18 ambrosia,loop
19 stones
20 scarabreapos,loop
21 trinsicpos,loop
22 vesper1
23 yew1
24 yewpos,loop
25 dungeon
26 dragonshi,loop
27 citynightedit,loop
28 walking,loop
29 citynightedit,loop
30 walking,loop
31 citynightedit,loop
32 boattravel
33 citynightedit,loop
34 tavern1
35 tavern2
36 tavern3
37 pubtune,loop
38 goodevil,loop
39 humanoids,loop
40 gargoyles,loop
41 turfin,loop
42 deathtune
43 victory
44 overlordv2
45 nujelm
46 dragonslo,loop
47 cove,loop
48 moonglowpos,loop
49 zento,loop
50 tokunodungeon,loop
51 taiko,loop
52 dread_horn_area,loop
53 elf_city_1,loop
54 grizzle_dungeon,loop
55 melisandes_lair,loop
56 paroxysmus_lair,loop
57 ConversationWithGwenno.mp3
58 GoodEndGame.mp3
59 GoodVsEvil.mp3
60 GreatEarthSerpentsTheme.mp3
61 HumanoidsU9.mp3
62 MinocNegative.mp3
63 Paws.mp3
64 SelimsBar.mp3
65 UltimaVIISerpentIsleCombat.mp3
66 ValoriaShips.mp3
67 TheWanderer.mp3
68 Castle.mp3
69 Festival.mp3
70 Honor.mp3
71 Medieval.mp3
72 BattleOnStones.mp3
73 Docktown.mp3
74 GargoyleQueen.mp3
75 GenericCombat.mp3
76 Holycity.mp3
77 HumanLevel.mp3
78 LoginLoop.mp3,loop
79 NorthernForestBattleonStones.mp3
80 PrimevalLich.mp3
81 QueenPalace.mp3
82 RoyalCity.mp3
83 SlasherVeil.mp3
84 StygianAbyss.mp3
85 StygianDragon.mp3
86 Void.mp3
87 CodexShrine.mp3

Any solutions would be be much appreciated. Thanks in advance.
11-19-2013 02:52 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: Help with music
Okay, after some attempts at troubleshooting, I noticed that music did indeed play, but only in Britain. I had misnamed midi_britain2 to midi_britain.

Quote:[REGIONTYPE r_townBritain]
ON=@ENTER
SRC.MUSIC=midi_britain

ON=@CliPeriodic
SRC.MUSIC=midi_britain

Each time the CliPeriodic triggered, I received a sphere_backward_compatibility error as the midi def did not exist, but it did trigger 0 turfin,loop (the first file in my UO Client config, and a sort of default I suspect). After changing midi_britain to midi_britain2, no music plays at all.

For the sake of clarity, the REGIONTYPE in my region.scp for Britain reads:

Quote:[REGIONTYPE r_townBritain]
ON=@ENTER
SRC.MUSIC=midi_britain2

ON=@CliPeriodic
SRC.MUSIC=midi_britain2

The AREADEF of Britain in Map0 is:

Quote:[AREADEF a_townBritain]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass,r_townBritain
NAME=Britain
GROUP=Britain
FLAGS=region_flag_nobuilding|region_flag_globalname|region_flag_guarded
P=1495,1629,10,0
RECT=1410,1517,1691,1778,0
RECT=1436,1494,1670,1517,0
RECT=1522,1778,1641,1798,0
RECT=1691,1532,1721,1595,0
RECT=1388,1697,1410,1766,0
TAG.GUARDOWNER=the city


I have likewise used this same method for each of the towns and some other areas where I want music. Additionally, music does not trigger for any of the previously existing REGIONTYPES (the ones not altered by me).

The music files of the client I am using are MP3. The midi defs in my sphere_def file are:

Quote:[DEFNAME midis]
// midi music defs
midi_oldult01 0
midi_create 1
midi_dragflit 2
midi_oldult02 3
midi_oldult03 4
midi_oldult04 5
midi_oldult05 6
midi_oldult06 7
midi_stones2 8
midi_britain1 9
midi_britain2 10
midi_bucsden 11
midi_jhelom 12
midi_lbcastle 13
midi_linelle 14
midi_magincia 15
midi_minoc 16
midi_ocllo 17
midi_samlethe 18
midi_serpents 19
midi_skarabra 20
midi_trinsic 21
midi_vesper 22
midi_wind 23
midi_yew 24
midi_cave01 25
midi_dungeon9 26
midi_foresta 27
midi_intown01 28
midi_junglea 29
midi_mountaina 30
midi_plains 31
midi_sailing 32
midi_swampa 33
midi_tavern01 34
midi_tavern02 35
midi_tavern03 36
midi_tavern04 37
midi_combat1 38
midi_combat2 39
midi_combat3 40
midi_approach 41
midi_death 42
midi_victory 43
midi_btcastle 44
midi_nujelm 45
midi_dungeon2 46
midi_cove 47
midi_moonglow 48

midi_zento 49
midi_tokunodungeon 50
midi_taiko 51
midi_dread_horn_area 52
midi_elf_city_1 53
midi_grizzle_dungeon 54
midi_melisandes_lair 55
midi_paroxysmus_lair 56
midi_Gwenno 57
midi_GoodEndGame 58
midi_GoodVsEvil 59
midi_GreatEarthSerpent 60
midi_HumanoidsU9 61
midi_MinocNegative 62
midi_Paws 63
midi_SelimsBar 64
midi_SICombat 65
midi_valoriaShips 66
midi_theWanderer 67
midi_Castle 68
midi_Festival 69
midi_Honor 70
midi_Medieval 71
midi_BattleOnStones 72
midi_Docktown 73
midi_GargoyleQueen 74
midi_GenericCombat 75
midi_Holycity 76
midi_HumanLevel 77
midi_LoginLoop 78
midi_ForestStones 79
midi_PrimevalLich 80
midi_QueenPalace 81
midi_RoyalCity 82
midi_SlasherVeil 83
midi_StygianAbyss 84
midi_StygianDragon 85
midi_Void 86
midi_CodexShrine 87

The function in backward compatibility is:

Quote:[FUNCTION music]
IF (<ISCHAR>)
IF (<ISPLAYER>)
MIDILIST <ARGS>
endif
endif

Anyone have any ideas as to where I am going wrong? Something to do with midis and MP3 perhaps?
11-21-2013 09:50 PM
Find all posts by this user Like Post Quote this message in a reply
Avatar
Journeyman
*

Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5

The North Shield

Post: #6
RE: Help with music
It seems fine. I have the same configurations, and it is playing the music in towns. I did not see any mistake. Defnames are correct and your usage of regiontype and the function on the triggers are okay.

Have you check is there any multiple music function ? Maybe you just forget it to remove with the new ones.

Just look for "[FUNCTION music]" in search. To search in an easy way, just download "Agent Ransact" which is i guess the best tool for looking around text based stuff.

Or you can just try this one by sending packet to client to call music.

[function music]
IF (<ISCHAR>)
IF (<ISPLAYER>) && (<ISONLINE>)
SENDPACKET 06D W<HVAL <ARGN1>>
ENDIF
ENDIF

For instance, you should use this like "src.music 10" ==> referred to Britain_midi from defnames
(This post was last modified: 12-10-2013 11:15 PM by Avatar.)
12-10-2013 10:54 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Avatar's post
Post Reply 


Forum Jump:


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