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
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
Post Reply 


Messages In This Thread
Help with music - john2260 - 07-13-2013, 10:59 AM
RE: Help with music - dagger4k - 07-13-2013, 01:09 PM
RE: Help with music - john2260 - 07-14-2013, 10:59 PM
RE: Help with music - Archaaz - 11-19-2013, 02:52 PM
RE: Help with music - Archaaz - 11-21-2013 09:50 PM
RE: Help with music - Avatar - 12-10-2013, 10:54 PM

Forum Jump:


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