Adding music to menus in Ryzom Core is a fairly simple exercise. You can define the loading music via the configuration file and you can define music to be played within the UI based upon conditions using action handlers.
There are a number of places where loading music is performed.
The default loading music is defined in the configuration file as SoundOutGameMusic and the default file name is "Main Menu Loop.ogg" You can simply replace this file or change the configuration file.
The SoundOutGameMusic configuration variable is a DEV variable - meaning it cannot be overridden when the client is in FINAL_VERSION. |
Within the net_manager.cpp file the teleport loading music is determined via the loading background:
While not strictly "loading music" the music that is played when a player dies is always "death.ogg".
<!-- SELECT SPECIE --> <proc id="proc_select_specie"> <!-- ... snipped out a lot of UI config --> <!-- Music playing --> <action handler="play_music_outgame" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,0)" params="name=Character Creation Fyros.ogg|async=1" /> <action handler="play_music_outgame" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,1)" params="name=Character Creation Matis.ogg|async=1" /> <action handler="play_music_outgame" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,2)" params="name=Character Creation Trykers.ogg|async=1" /> <action handler="play_music_outgame" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,3)" params="name=Character Creation Zorai.ogg|async=1" /> </proc> |
You can also play using using NeL commands defined within the client. The music command takes three arguments:
music test.ogg 0 1000 |