Difference between revisions of "PlayMusicMessage"

From SWGANH Wiki
Jump to: navigation, search
(Tags)
m (Changed protection level for "PlayMusicMessage" [edit=autoconfirmed:move=autoconfirmed])
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|PlayMusicMessage (04270D8A)}}
  
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
Line 6: Line 6:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
 +
|-
 +
|
 
{| class="wikitable"
 
{| class="wikitable"
 +
|{{short}}||'''Operand_Count'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''Operand_Count'''
+
|{{int}}||'''Opcode'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Opcode'''
+
|{{a_string}}||'''SoundFile String'''
 
|-
 
|-
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''SoundFile String'''
+
|{{long}}||'''00 00 00 00 00 00 00 00'''
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''INT'''||'''00'''
+
|{{int}}||'''00 00 00 00'''
|-
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''00'''
+
|-
+
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''00/01'''
+
|-
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''00'''
+
 
|-
 
|-
 +
|{{byte}}||'''00'''
 +
|}
 
|}
 
|}
  
Line 35: Line 34:
 
* '''Sound String''':
 
* '''Sound String''':
 
:string of location to .snd file to play example: sound/music_mission_complete.snd
 
:string of location to .snd file to play example: sound/music_mission_complete.snd
 
+
:ObjectID (always 00)
unknown int(s) and byte effect.
+
:boolean int?
 
|valign=top|
 
|valign=top|
  
Line 45: Line 44:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{75%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
Line 52: Line 51:
  
 
----
 
----
 
==Sample Code==
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
  
 
<pre>
 
<pre>
HEX:05 00 8A 0D 27 04 20 00 73 6F 75 6E 64 2F 6D 75 73 69 63 5F 61 63 71 5F 62 6F 75 6E 74 79 68 75 6E 74 65 72 2E 73 6E 64 00 00 00 00 00 00 00 00 01 00 00 00 00
+
05 00  
ASC:....'...sound/music_acq_bountyhunter.snd.............
+
8A 0D 27 04             // PlayMusicMessage
 +
20 00                   // sting count
 +
73 6F 75 6E 64 2F                               // sound/
 +
6D 75 73 69 63 5F 61 63 71 5F                   // music_acq_
 +
62 6F 75 6E 74 79 68 75 6E 74 65 72 2E 73 6E 64 // bountyhunter.snd
 +
00 00 00 00  
 +
00 00 00 00
 +
01 00 00 00 // might be a play loop or repeat flag or number of times to play
 +
00
 
</pre>
 
</pre>

Latest revision as of 14:33, 12 February 2008

Server Packet - PlayMusicMessage (04270D8A)

SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.


Struct


SHORT Operand_Count
INT Opcode
A_STRING SoundFile String
LONG 00 00 00 00 00 00 00 00
INT 00 00 00 00
BYTE 00

Variable Descriptions


Opperand_Count = 5

Opcode = 04270D8A


  • Sound String:
string of location to .snd file to play example: sound/music_mission_complete.snd
ObjectID (always 00)
boolean int?

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.


Sample Packet

05 00 
8A 0D 27 04              // PlayMusicMessage
20 00                    // sting count
73 6F 75 6E 64 2F                               // sound/
6D 75 73 69 63 5F 61 63 71 5F                   // music_acq_
62 6F 75 6E 74 79 68 75 6E 74 65 72 2E 73 6E 64 // bountyhunter.snd
00 00 00 00 
00 00 00 00
01 00 00 00  // might be a play loop or repeat flag or number of times to play
00