Difference between revisions of "Game Opcodes:Set Music"
From FFXIV Classic Wiki
(→Music Modes) |
m (0x02 mode confirmed. 0x03 is still....weird with how it layers a music. Like it's bringing back in the previous one, but then how to shut it up after without disrupting the current actual music...) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Changes the current background music playing on the client. | Changes the current background music playing on the client. | ||
− | :; Opcode - | + | :; Opcode - 0x00C |
:; Data Size - 8 bytes | :; Data Size - 8 bytes | ||
:; Requirements - None | :; Requirements - None | ||
Line 14: | Line 14: | ||
! style="text-align: center; font-size: 14px;" | Description | ! style="text-align: center; font-size: 14px;" | Description | ||
|- | |- | ||
− | | 0x00 || uint16 || 2 Bytes || | + | | 0x00 || uint16 || 2 Bytes || musicID || The [[music]] to play on the client. |
|- | |- | ||
| 0x04 || uint16 || 2 Bytes || mode|| See Music Modes below. | | 0x04 || uint16 || 2 Bytes || mode|| See Music Modes below. | ||
Line 21: | Line 21: | ||
== Music Modes == | == Music Modes == | ||
− | {| class="wikitable sortable | + | {| class="wikitable sortable" |
! width="25px" style="text-align: center; font-size: 14px;" | Mode | ! width="25px" style="text-align: center; font-size: 14px;" | Mode | ||
! width="200px" style="text-align: center; font-size: 14px;" | Description | ! width="200px" style="text-align: center; font-size: 14px;" | Description | ||
Line 27: | Line 27: | ||
| 0x01 || Immediately changes the music. | | 0x01 || Immediately changes the music. | ||
|- | |- | ||
− | | 0x02 || Crossfade the current BGM to the new one. | + | | 0x02 || Crossfade the current BGM to the new one. |
|- | |- | ||
| 0x03 || Layer the current BGM with the new one. (Needs Confirming) | | 0x03 || Layer the current BGM with the new one. (Needs Confirming) | ||
Line 33: | Line 33: | ||
| 0x04 || Fade out the current BGM and fade in the new one. | | 0x04 || Fade out the current BGM and fade in the new one. | ||
|- | |- | ||
− | | 0x05 || Switches the current BGM music to channel one. (Only works with multilayered music) | + | | 0x05 || Switches the current BGM music to channel one. (Only works with multilayered music) |
|- | |- | ||
− | | 0x06 || Switches the current BGM music to channel two. (Only works with multilayered music) | + | | 0x06 || Switches the current BGM music to channel two. (Only works with multilayered music) |
|} | |} | ||
Latest revision as of 11:43, 31 January 2022
Changes the current background music playing on the client.
- Opcode - 0x00C
- Data Size - 8 bytes
- Requirements - None
Data
Offset | Data Type | Length | Variable | Description |
---|---|---|---|---|
0x00 | uint16 | 2 Bytes | musicID | The music to play on the client. |
0x04 | uint16 | 2 Bytes | mode | See Music Modes below. |
Music Modes
Mode | Description |
---|---|
0x01 | Immediately changes the music. |
0x02 | Crossfade the current BGM to the new one. |
0x03 | Layer the current BGM with the new one. (Needs Confirming) |
0x04 | Fade out the current BGM and fade in the new one. |
0x05 | Switches the current BGM music to channel one. (Only works with multilayered music) |
0x06 | Switches the current BGM music to channel two. (Only works with multilayered music) |
Notes
- Retail used musicID 7 for instance loading screens to silence the client.
- MultiTrack mode can only be used for musicID 20. Switches between "The Dark's Embrace" and "The Dark's Kiss".