Difference between revisions of "SuiCreatePageMessage"

From SWGANH Wiki
Jump to: navigation, search
(Variable Descriptions)
(Sample Packet)
Line 98: Line 98:
  
 
----
 
----
==Sample Packet==
+
02 00                                            //WORLDUPDATE
 +
59 72 4B D4                                      //SuiCreatePageMessage
 +
83 52 02 00                                      //UI Window ID
 +
0F 00                                            //String Size(15)
 +
53 63 72 69 70 74 2E 69 6E 70 75 74 42 6F 78    //Script.inputBox
 +
0C 00 00 00                                      //# of Variable Updates
  
<pre>
 
02 00  //SUB_OPCODE = 'WORLDUPDATE
 
59 72 4B D4  //CRC = 'SuiCreatePageMessage
 
83 52
 
02 00
 
  
0F 00  //String Size(15)
+
//--------------------cmbInput Is Created Here----------------------------------
53 63 72 69 70 74 2E 69 6E 70 75 74 42 6F 78  //'Script.inputBox'
+
05 00 00 00                                   //List Size
 
+
0C 00 00 00
+
 
+
 
+
------------------------------------------------------------
+
05 00 00 00   //'Component Count
+
 
00  
 
00  
 
07 00 00 00  
 
07 00 00 00  
Line 119: Line 113:
 
01 00  
 
01 00  
 
09  
 
09  
 +
19 00                                        //String Size(25)
 +
6F 6E 47 75 69 6C 64 43 72 65 61 74 65 4E
 +
61 6D 65 52 65 73 70 6F 6E 73 65              //onGuildCreateNameResponse
 +
08 00                                        //String Size(8)
 +
74 78 74 49 6E 70 75 74                      //txtInput
 +
09 00                                        //String Size(9)
 +
4C 6F 63 61 6C 54 65 78 74                    //LocalText
 +
08 00                                        //String Size(8)
 +
63 6D 62 49 6E 70 75 74                      //cmbInput
 +
0C 00                                        //String Size(12)
 +
53 65 6C 65 63 74 65 64 54 65 78 74          //SelectedText
  
 
+
//-----------------------cmbInput Is Created Here-------------------------------------------
 
+
05 00 00 00                                   //List Size
19 00  //String Size(25)
+
6F 6E 47 75 69 6C 64 43 72 65 61 74 65 4E 61 6D 65 52 65 73 70 6F 6E 73 65  //'onGuildCreateNameResponse'
+
08 00  //String Size(8)
+
74 78 74 49 6E 70 75 74  //'txtInput'
+
09 00  //String Size(9)
+
4C 6F 63 61 6C 54 65 78 74  //'LocalText'
+
08 00  //String Size(8)
+
63 6D 62 49 6E 70 75 74  //'cmbInput'
+
0C 00  //String Size(12)
+
53 65 6C 65 63 74 65 64 54 65 78 74  //'SelectedText'
+
 
+
--------------------------------------------------------------------------------------
+
05 00 00 00 //'Component Count
+
 
00  
 
00  
 
07 00 00 00  
 
07 00 00 00  
Line 140: Line 132:
 
01 00  
 
01 00  
 
0A  
 
0A  
19 00 //String Size(25)  
+
19 00                                         //String Size(25)  
6F 6E 47 75 69 6C 64 43 72 65 61 74 65 4E 61 6D 65 52 65 73 70 6F 6E 73 65 //'onGuildCreateNameResponse'
+
6F 6E 47 75 69 6C 64 43 72 65 61 74  
08 00   //String Size(8)
+
65 4E 61 6D 65 52 65 73 70 6F 6E 73 65       //onGuildCreateNameResponse  
74 78 74 49 6E 70 75 74 //'txtInput'
+
08 00                                         //String Size(8)
09 00 //String Size(9)  
+
74 78 74 49 6E 70 75 74                       //txtInput
4C 6F 63 61 6C 54 65 78 74 //'LocalText'
+
09 00                                         //String Size(9)  
08 00 //String Size(8)  
+
4C 6F 63 61 6C 54 65 78 74                   //LocalText  
63 6D 62 49 6E 70 75 74   //'cmbInput'
+
08 00                                         //String Size(8)  
0C 00   //String Size(12)
+
63 6D 62 49 6E 70 75 74                       //cmbInput
53 65 6C 65 63 74 65 64 54 65 78 74 //'SelectedText'
+
0C 00                                         //String Size(12)
 
+
53 65 6C 65 63 74 65 64 54 65 78 74           //SelectedText  
-------------------------------------------------------------------
+
03 //Component Type?
+
01 00 00 00 //Component count
+
19 00 00 00  //UNICODE STRING SIZE(25)
+
40 00 67 00 75 00 69 00 6C 00 64 00 3A 00 63 00 72 00 65 00
+
61 00 74 00 65 00 5F 00 6E 00 61 00 6D 00 65 00 5F 00 70 00
+
72 00 6F 00 6D 00 70 00 74 00 //UNICODE ('@guild:create_name_prompt')
+
 
+
 
+
---------------------------------------------
+
02 00 00 00 //'Component Count
+
10 00  //String Size(16)
+
50 72 6F 6D 70 74 2E 6C 62 6C 50 72 6F 6D 70 74  //'Prompt.lblPrompt'
+
04 00  //String Size(4)
+
54 65 78 74  //'Text'
+
 
+
-----------------------------------------------------
+
03 //Component Type?
+
01 00 00 00 //'Component Count
+
18 00 00 00  //UNICODE STRING SIZE(24)
+
40 00 67 00 75 00 69 00 6C 00 64 00 3A 00 63 00 72 00 65 00
+
61 00 74 00 65 00 5F 00 6E 00 61 00 6D 00 65 00 5F 00 74 00
+
69 00 74 00 6C 00 65 00 //UNICODE ('@guild:create_name_title' )
+
 
+
-----------------------------------------------------------
+
02 00 00 00 //'Component Count
+
13 00  //String Size(19)
+
62 67 2E 63 61 70 74 69 6F 6E 2E 6C 62 6C 54 69 74 6C 65  //'bg.caption.lblTitle'
+
04 00  //String Size(4)
+
54 65 78 74  //'Text'
+
 
+
-----------------------------------------------------------
+
 
+
03 //Component Type?
+
01 00 00 00 //'Component Count
+
07 00 00 00  //UNICODE STRING SIZE(7)
+
40 00 63 00 61 00 6E 00 63 00 65 00 6C 00 //UNICODE ('@cancel')
+
  
-----------------------------------------------------------
+
//------lblPromp's Text Is changed to string/en/guild.stf StringName:create_name_prompt-----------
 +
03                                            //Change Type
 +
01 00 00 00                                  //List Size
 +
19 00 00 00                                  //UNICODE STRING SIZE(25)
 +
40 00 67 00 75 00 69 00 6C 00 64 00
 +
3A 00 63 00 72 00 65 00 61 00 74 00
 +
65 00 5F 00 6E 00 61 00 6D 00 65 00
 +
5F 00 70 00 72 00 6F 00 6D 00 70 00 74 00    //UNICODE (@guild:create_name_prompt)
  
02 00 00 00 //'Component Count
+
02 00 00 00                                   //List Size
09 00 //String Size(9)  
+
10 00                                         //String Size(16)  
62 74 6E 43 61 6E 63 65 6C //'btnCancel'
+
50 72 6F 6D 70 74 2E 6C 62 6C 50
04 00 //String Size(4)  
+
72 6F 6D 70 74                                //Prompt.lblPrompt
54 65 78 74 //'Text'
+
04 00                                         //String Size(4)
 +
54 65 78 74                                   //Text  
  
-----------------------------------------------------------
+
//-------------Title is changed to @guild:create_name_title-----------------------------------
 +
03                                            //Change Type
 +
01 00 00 00                                  //List Size
 +
18 00 00 00                                  //UNICODE STRING SIZE(24)
 +
40 00 67 00 75 00 69 00 6C 00 64 00 3A 00
 +
63 00 72 00 65 00 61 00 74 00 65 00 5F 00
 +
6E 00 61 00 6D 00 65 00 5F 00 74 00 69 00
 +
74 00 6C 00 65 00                            //UNICODE (@guild:create_name_title )
  
03 //Component Type?
+
02 00 00 00                                   //List Size
01 00 00 00 //'Component Count
+
13 00                                         //String Size(19)  
+
62 67 2E 63 61 70 74 69 6F 6E 2E 6C 62 6C
03 00 00 00 //UNICODE STRING SIZE(3)  
+
54 69 74 6C 65                                //bg.caption.lblTitle
40 00 6F 00 6B 00 //'@ok'
+
04 00                                         //String Size(4)
 +
54 65 78 74                                  //Text
  
-----------------------------------------------------------
+
//------------Set Cancel Button to string/en/sui.stf StringName cancel------------
 +
03                                            //Change Type
 +
01 00 00 00                                  //List Size
 +
07 00 00 00                                  //UNICODE STRING SIZE(7)
 +
40 00 63 00 61 00 6E 00 63 00 65 00 6C 00    //UNICODE (@cancel)
  
02 00 00 00 //'Component Count
+
02 00 00 00                                   //List Size
05 00   //String Size(5)
+
09 00                                         //String Size(9)  
62 74 6E 4F 6B  //'btnOk'
+
62 74 6E 43 61 6E 63 65 6C                    //btnCancel
04 00   //String Size(4)
+
04 00                                         //String Size(4)  
54 65 78 74 //'Text'
+
54 65 78 74                                   //Text  
  
-----------------------------------------------------------
+
//----------Set Ok Button to string/en/sui.stf StringName ok-----------------------
03 //Component Type?
+
03                                           //Change Type
01 00 00 00 //'Component Count
+
01 00 00 00                                   //List Size
04 00 00 00   //String Size(4)
+
03 00 00 00                                   //UNICODE STRING SIZE(3)  
74 00 72 00 75 00 65 00 //'true'
+
40 00 6F 00 6B 00                             //@ok
  
------------------------------------------------------
+
02 00 00 00                                   //List Size
02 00 00 00 //'Component Count
+
05 00                                         //String Size(5)
08 00   //String Size(8)
+
62 74 6E 4F 6B                                //btnOk
74 78 74 49 6E 70 75 74  //'txtInput'
+
04 00                                         //String Size(4)
07 00 //String Size(7)  
+
54 65 78 74                                   //Text
45 6E 61 62 6C 65 64  //'Enabled'
+
--------------------------------------------------------
+
03 //Component Type?
+
01 00 00 00 //'Component Count
+
04 00 00 00 //UNICODE STRING SIZE
+
74 00 72 00 75 00 65 00 //UNICODE ('true')
+
  
 +
//---------------This Enables the Input Field-----------------------------------------
 +
03                                          //Change Type
 +
01 00 00 00                                  //List Size
 +
04 00 00 00                                  //String Size(4)
 +
74 00 72 00 75 00 65 00                      //true
  
-----------------------------------------------------------
+
02 00 00 00                                  //List Size
02 00 00 00 //'Component Count
+
08 00                                        //String Size(8)
08 00   //String Size(8)
+
74 78 74 49 6E 70 75 74                      //txtInput
74 78 74 49 6E 70 75 74  //'txtInput'
+
07 00                                        //String Size(7)
07 00   //String Size(7)
+
45 6E 61 62 6C 65 64                        //Enabled
56 69 73 69 62 6C 65  //'Visible'
+
//-------------This Makes the Input Field Visable--------------------------------------
 +
03                                          //Change Type
 +
01 00 00 00                                 //List Size
 +
04 00 00 00                                  //UNICODE STRING SIZE(4)
 +
74 00 72 00 75 00 65 00                      //UNICODE (true)
  
------------------------------------------------------------
+
02 00 00 00                                  //List Size
 +
08 00                                        //String Size(8)
 +
74 78 74 49 6E 70 75 74                      //txtInput
 +
07 00                                        //String Size(7)
 +
56 69 73 69 62 6C 65                        //Visible
  
03 //Component Type?
+
//------------This disables The DropDown Box-----------------------------------------------
01 00 00 00 //'Component Count
+
03                                         //Change Type
05 00 00 00 //UNICODE STRING COUNT (5)
+
01 00 00 00                                 //List Size
66 00 61 00 6C 00 73 00 65 00 //UNICODE ('false')
+
05 00 00 00                                 //UNICODE STRING COUNT (5)
 +
66 00 61 00 6C 00 73 00 65 00               //UNICODE (false)
  
----------------------------------------------------------------
+
02 00 00 00                                 //List Size
02 00 00 00 //'Component Count
+
08 00                                       //String Size(8)
08 00   //String Size(8)
+
63 6D 62 49 6E 70 75 74                     //cmbInput  
63 6D 62 49 6E 70 75 74 //'cmbInput'
+
07 00                                       //String Size(7)
07 00   //String Size(7)
+
45 6E 61 62 6C 65 64                       //Enabled
45 6E 61 62 6C 65 64   //'Enabled'
+
  
-------------------------------------------------------------------
+
//------------This Removes the DropDown Box-------------------------------------------------
 +
03                                        //Change Type
 +
01 00 00 00                                //List Size
 +
05 00 00 00                                //UNICODE STRING SIZE(5)
 +
66 00 61 00 6C 00 73 00 65 00              //UNICODE (false)
  
03  //Component Type?
+
02 00 00 00                                //List Size
01 00 00 00 //'Component Count
+
08 00                                     //String Size(8)
05 00 00 00 //UNICODE STRING SIZE(5)
+
63 6D 62 49 6E 70 75 74                    //cmbInput
66 00 61 00 6C 00 73 00 65 00 //UNICODE ('false')
+
07 00                                     //String Size(7)
 +
56 69 73 69 62 6C 65                       //Visible
  
----------------------------------------------------------------------
+
//------------Sets The Max Char Count to 127---------------------------------------------------
02 00 00 00 //'Component Count
+
03                                        //Change Type
08 00   //String Size(8)
+
01 00 00 00                               //List Size
63 6D 62 49 6E 70 75 74  //'cmbInput'
+
03 00 00 00                               //UNICODE STRING SIZE (3)
07 00   //String Size(7)
+
31 00 32 00 37 00                          //UNICODE (127)
56 69 73 69 62 6C 65  //'Visible'
+
  
-----------------------------------------------------------------------
+
02 00 00 00                               //List Size
03 //Component Type?
+
08 00                                     //String Size(8)
01 00 00 00 //'Component Count
+
74 78 74 49 6E 70 75 74                    //txtInput
03 00 00 00 //UNICODE STRING SIZE (3)
+
09 00                                     //String Size(9)
31 00 32 00 37 00 //UNICODE ('127')
+
4D 61 78 4C 65 6E 67 74 68                //MaxLength
  
------------------------------------------------------------------------
+
//-------------Sets cmbInput's Max Chat Count to 127----------------------------------  
02 00 00 00 //'Component Count
+
03                                        //Change Type
08 00   //String Size(8)
+
01 00 00 00                               //List Size
74 78 74 49 6E 70 75 74  //'txtInput'
+
03 00 00 00                                //UNCIDE STRING SIZE (3)
09 00   //String Size(9)
+
31 00 32 00 37 00                          //UNICODE (127)
4D 61 78 4C 65 6E 67 74 68  //'MaxLength'
+
  
-----------------------------------------------------------------------
+
02 00 00 00                               //List Size
03 //Component Type?
+
08 00                                     //String Size(8)
01 00 00 00 //'Component Count
+
63 6D 62 49 6E 70 75 74                    //cmbInput
03 00 00 00  //UNCIDE STRING SIZE (3)
+
09 00                                     //String Size(9)  
31 00 32 00 37 00  //UNICODE ('127')
+
4D 61 78 4C 65 6E 67 74 68                //MaxLength
-----------------------------------------------------------------------
+
  
02 00 00 00 //'Component Count
 
08 00  //String Size(8)
 
63 6D 62 49 6E 70 75 74  //'cmbInput'
 
09 00  //String Size(9)
 
4D 61 78 4C 65 6E 67 74 68  //'MaxLength'
 
  
------------------------------------------------------------------------
 
  
00 00 00 00 //unk DATA 1
+
00 00 00 00                               //unk DATA 1
00 00 00 00 //unk DATA 1
+
00 00 00 00                               //unk DATA 2
00 00 00 00 //unk DATA 1
+
00 00 00 00                               //unk DATA 3
00 00 00 00 //unk DATA 1
+
00 00 00 00                               //unk DATA 4
00 00 00 00 //unk DATA
+
00 00 00 00                               //unk DATA 5
</pre>
+

Revision as of 07:34, 8 April 2007

Struct


SHORT Opperand Count
INT opcode
A_STRING UI Script Name
INT List Size

<Redefine Variable count=List Size>

BYTE Variable Type
INT List Size


<New Variable Values count=List Size>
INT Unicode String Size
U_STRING New Variable Value
<New Variable Values/>


INT List Size
<Variable Being Changed count=List Size>
INT Unicode String Size
U_STRING Variable Location
INT Unicode String Size
U_STRING Variable To Be Changed
<Variable Being Changed/>


<Redefine Variable/>


INT ??
INT ??
INT ??
INT ??
INT ??

Variable Descriptions


Operand_Count = 2

Opcode = D44B7259


  • Script Name = Name of the \ui\*.inc UI files
  • List Size = Number of Changed Variables
  • Variable Type = So far only seen as "03"
  • New Variable Value = Unicode String of what the new value should be... this is always Unicode no matter variable type
  • Variable Location = In the .inc File you see <page Name="page1"> you would send page1. In the case of the variable being in a nested page tag EX: <page name="Page1"><page name="SubPage1"></page><page name="SubPage2"></page></page>Then you'd send Page1.SubPage1 or Page1.SubPage2
  • Variable To Be Changed = Variable at above location that is being modified.
  • @STF:StringName = This seems to use the format to get strings from stringfiles. EX: @guild:create_name_prompt is @string/en/guild.stf:create_name_prompt.
  • NOTE: There is more to this packet to explore!!!

Tags


S→C This packet originates on the server.

75% This packet has been partially reversed.


02 00 //WORLDUPDATE 59 72 4B D4 //SuiCreatePageMessage 83 52 02 00 //UI Window ID 0F 00 //String Size(15) 53 63 72 69 70 74 2E 69 6E 70 75 74 42 6F 78 //Script.inputBox 0C 00 00 00 //# of Variable Updates


//--------------------cmbInput Is Created Here---------------------------------- 05 00 00 00 //List Size 00 07 00 00 00 00 00 01 00 09 19 00 //String Size(25) 6F 6E 47 75 69 6C 64 43 72 65 61 74 65 4E 61 6D 65 52 65 73 70 6F 6E 73 65 //onGuildCreateNameResponse 08 00 //String Size(8) 74 78 74 49 6E 70 75 74 //txtInput 09 00 //String Size(9) 4C 6F 63 61 6C 54 65 78 74 //LocalText 08 00 //String Size(8) 63 6D 62 49 6E 70 75 74 //cmbInput 0C 00 //String Size(12) 53 65 6C 65 63 74 65 64 54 65 78 74 //SelectedText

//-----------------------cmbInput Is Created Here------------------------------------------- 05 00 00 00 //List Size 00 07 00 00 00 00 00 01 00 0A 19 00 //String Size(25) 6F 6E 47 75 69 6C 64 43 72 65 61 74 65 4E 61 6D 65 52 65 73 70 6F 6E 73 65 //onGuildCreateNameResponse 08 00 //String Size(8) 74 78 74 49 6E 70 75 74 //txtInput 09 00 //String Size(9) 4C 6F 63 61 6C 54 65 78 74 //LocalText 08 00 //String Size(8) 63 6D 62 49 6E 70 75 74 //cmbInput 0C 00 //String Size(12) 53 65 6C 65 63 74 65 64 54 65 78 74 //SelectedText

//------lblPromp's Text Is changed to string/en/guild.stf StringName:create_name_prompt----------- 03 //Change Type 01 00 00 00 //List Size 19 00 00 00 //UNICODE STRING SIZE(25) 40 00 67 00 75 00 69 00 6C 00 64 00 3A 00 63 00 72 00 65 00 61 00 74 00 65 00 5F 00 6E 00 61 00 6D 00 65 00 5F 00 70 00 72 00 6F 00 6D 00 70 00 74 00 //UNICODE (@guild:create_name_prompt)

02 00 00 00 //List Size 10 00 //String Size(16) 50 72 6F 6D 70 74 2E 6C 62 6C 50 72 6F 6D 70 74 //Prompt.lblPrompt 04 00 //String Size(4) 54 65 78 74 //Text

//-------------Title is changed to @guild:create_name_title----------------------------------- 03 //Change Type 01 00 00 00 //List Size 18 00 00 00 //UNICODE STRING SIZE(24) 40 00 67 00 75 00 69 00 6C 00 64 00 3A 00 63 00 72 00 65 00 61 00 74 00 65 00 5F 00 6E 00 61 00 6D 00 65 00 5F 00 74 00 69 00 74 00 6C 00 65 00 //UNICODE (@guild:create_name_title )

02 00 00 00 //List Size 13 00 //String Size(19) 62 67 2E 63 61 70 74 69 6F 6E 2E 6C 62 6C 54 69 74 6C 65 //bg.caption.lblTitle 04 00 //String Size(4) 54 65 78 74 //Text

//------------Set Cancel Button to string/en/sui.stf StringName cancel------------ 03 //Change Type 01 00 00 00 //List Size 07 00 00 00 //UNICODE STRING SIZE(7) 40 00 63 00 61 00 6E 00 63 00 65 00 6C 00 //UNICODE (@cancel)

02 00 00 00 //List Size 09 00 //String Size(9) 62 74 6E 43 61 6E 63 65 6C //btnCancel 04 00 //String Size(4) 54 65 78 74 //Text

//----------Set Ok Button to string/en/sui.stf StringName ok----------------------- 03 //Change Type 01 00 00 00 //List Size 03 00 00 00 //UNICODE STRING SIZE(3) 40 00 6F 00 6B 00 //@ok

02 00 00 00 //List Size 05 00 //String Size(5) 62 74 6E 4F 6B //btnOk 04 00 //String Size(4) 54 65 78 74 //Text

//---------------This Enables the Input Field----------------------------------------- 03 //Change Type 01 00 00 00 //List Size 04 00 00 00 //String Size(4) 74 00 72 00 75 00 65 00 //true

02 00 00 00 //List Size 08 00 //String Size(8) 74 78 74 49 6E 70 75 74 //txtInput 07 00 //String Size(7) 45 6E 61 62 6C 65 64 //Enabled //-------------This Makes the Input Field Visable-------------------------------------- 03 //Change Type 01 00 00 00 //List Size 04 00 00 00 //UNICODE STRING SIZE(4) 74 00 72 00 75 00 65 00 //UNICODE (true)

02 00 00 00 //List Size 08 00 //String Size(8) 74 78 74 49 6E 70 75 74 //txtInput 07 00 //String Size(7) 56 69 73 69 62 6C 65 //Visible

//------------This disables The DropDown Box----------------------------------------------- 03 //Change Type 01 00 00 00 //List Size 05 00 00 00 //UNICODE STRING COUNT (5) 66 00 61 00 6C 00 73 00 65 00 //UNICODE (false)

02 00 00 00 //List Size 08 00 //String Size(8) 63 6D 62 49 6E 70 75 74 //cmbInput 07 00 //String Size(7) 45 6E 61 62 6C 65 64 //Enabled

//------------This Removes the DropDown Box------------------------------------------------- 03 //Change Type 01 00 00 00 //List Size 05 00 00 00 //UNICODE STRING SIZE(5) 66 00 61 00 6C 00 73 00 65 00 //UNICODE (false)

02 00 00 00 //List Size 08 00 //String Size(8) 63 6D 62 49 6E 70 75 74 //cmbInput 07 00 //String Size(7) 56 69 73 69 62 6C 65 //Visible

//------------Sets The Max Char Count to 127--------------------------------------------------- 03 //Change Type 01 00 00 00 //List Size 03 00 00 00 //UNICODE STRING SIZE (3) 31 00 32 00 37 00 //UNICODE (127)

02 00 00 00 //List Size 08 00 //String Size(8) 74 78 74 49 6E 70 75 74 //txtInput 09 00 //String Size(9) 4D 61 78 4C 65 6E 67 74 68 //MaxLength

//-------------Sets cmbInput's Max Chat Count to 127---------------------------------- 03 //Change Type 01 00 00 00 //List Size 03 00 00 00 //UNCIDE STRING SIZE (3) 31 00 32 00 37 00 //UNICODE (127)

02 00 00 00 //List Size 08 00 //String Size(8) 63 6D 62 49 6E 70 75 74 //cmbInput 09 00 //String Size(9) 4D 61 78 4C 65 6E 67 74 68 //MaxLength


00 00 00 00 //unk DATA 1 00 00 00 00 //unk DATA 2 00 00 00 00 //unk DATA 3 00 00 00 00 //unk DATA 4 00 00 00 00 //unk DATA 5