Difference between revisions of "Character Born Date & Play time (Client Modifications)"
(→Play 3 Baseline Message) |
(→Play 3 Baseline Message) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
This mod is Client side UI and server/database side coding to get this to work correctly. | This mod is Client side UI and server/database side coding to get this to work correctly. | ||
+ | [[Image:Birthdate.jpg|900px]] | ||
==ui_pda_char_sheet.inc== | ==ui_pda_char_sheet.inc== | ||
− | This is the lines to change in the orginal code | + | This is the lines to change in the orginal code. This change includes changing the Bind Location to Stored Clone Locationas it should have been named from the beginning, and also makes it display and work correctly. |
<pre> | <pre> | ||
<Text | <Text | ||
Line 10: | Line 11: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='xxx played' | LocalText='xxx played' | ||
− | Location='205, | + | Location='205,57.84<-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 28: | Line 29: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='[@ui_charsheet:playedlabel]' | LocalText='[@ui_charsheet:playedlabel]' | ||
− | Location='8, | + | Location='8,57.84<-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 40: | Line 41: | ||
TextColor='#97FFFF' | TextColor='#97FFFF' | ||
Visible='false' <---------------------Remove this line | Visible='false' <---------------------Remove this line | ||
− | > | + | >Total Play Time (in seconds, updated every 30 sec)</Text> <--Change this line |
</pre> | </pre> | ||
'''And this line''' | '''And this line''' | ||
Line 78: | Line 79: | ||
TextColor='#97FFFF' | TextColor='#97FFFF' | ||
Visible='false' <---------------------Remove this line | Visible='false' <---------------------Remove this line | ||
− | > | + | >Birthdate</Text><-------------------------change this line to match whats here |
</pre> | </pre> | ||
Line 91: | Line 92: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='xxx bankLocation' | LocalText='xxx bankLocation' | ||
− | Location='205, | + | Location='205,123.52' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 108: | Line 109: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='[@ui_charsheet:banklabel]' | LocalText='[@ui_charsheet:banklabel]' | ||
− | Location='8, | + | Location='8,123.52' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 126: | Line 127: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='xxx lotsUsed' | LocalText='xxx lotsUsed' | ||
− | Location='205, | + | Location='205,140' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 143: | Line 144: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='[@ui_charsheet:lotslabel]' | LocalText='[@ui_charsheet:lotslabel]' | ||
− | Location='8, | + | Location='8,140' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 161: | Line 162: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='xxx bindLocation' | LocalText='xxx bindLocation' | ||
− | Location='205, | + | Location='205,107.1' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 178: | Line 179: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='[@ui_charsheet:bindlabel]' | LocalText='[@ui_charsheet:bindlabel]' | ||
− | Location='8, | + | Location='8,107.1' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 189: | Line 190: | ||
Size='192,19' | Size='192,19' | ||
TextColor='#97FFFF' | TextColor='#97FFFF' | ||
− | > | + | >Stored Clone Location</Text> <--Change this line to match whats here |
Line 196: | Line 197: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='xxx married' | LocalText='xxx married' | ||
− | Location='205, | + | Location='205,90.68' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 213: | Line 214: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='[@ui_charsheet:marriedlabel]' | LocalText='[@ui_charsheet:marriedlabel]' | ||
− | Location='8, | + | Location='8,90.68' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 225: | Line 226: | ||
TextColor='#97FFFF' | TextColor='#97FFFF' | ||
>@ui_charsheet:marriedlabel</Text> | >@ui_charsheet:marriedlabel</Text> | ||
− | |||
− | |||
<Text | <Text | ||
Enabled='false' | Enabled='false' | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='xxx home' | LocalText='xxx home' | ||
− | Location='205,74. | + | Location='205,74.26' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 248: | Line 247: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='[@ui_charsheet:homelabel]' | LocalText='[@ui_charsheet:homelabel]' | ||
− | Location='8,74. | + | Location='8,74.26' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 260: | Line 259: | ||
TextColor='#97FFFF' | TextColor='#97FFFF' | ||
>@ui_charsheet:homelabel</Text> | >@ui_charsheet:homelabel</Text> | ||
− | |||
− | |||
<Text | <Text | ||
Enabled='false' | Enabled='false' | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='xxx species' | LocalText='xxx species' | ||
− | Location='205, | + | Location='205,57.84' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 283: | Line 280: | ||
Font='bold_12' | Font='bold_12' | ||
LocalText='[@ui_charsheet:specieslabel]' | LocalText='[@ui_charsheet:specieslabel]' | ||
− | Location='8, | + | Location='8,57.84' <-------------------------change this line to match whats here |
Margin='2,2,2,2' | Margin='2,2,2,2' | ||
MaxLines='1' | MaxLines='1' | ||
Line 298: | Line 295: | ||
Then the server needs to be coded to save and send the correct data to the client. | Then the server needs to be coded to save and send the correct data to the client. | ||
The PLAY 3 Baseline packet is where this info is sent to the client. | The PLAY 3 Baseline packet is where this info is sent to the client. | ||
+ | |||
==Play 3 Baseline Message== | ==Play 3 Baseline Message== | ||
<pre> | <pre> | ||
Line 332: | Line 330: | ||
73 65 6E 73 69 74 69 76 65 5F 31 61 // sensitive_1a | 73 65 6E 73 69 74 69 76 65 5F 31 61 // sensitive_1a | ||
D8 07 00 00 // 2008 born year <------------------------HERE | D8 07 00 00 // 2008 born year <------------------------HERE | ||
− | 00 00 00 00 // timeplayed in 30 intervals. <----------HERE | + | 00 00 00 00 // timeplayed in 30 sec. intervals. <----------HERE |
88 C2 01 00 | 88 C2 01 00 | ||
00 00 00 00 | 00 00 00 00 | ||
01 00 00 00 | 01 00 00 00 | ||
49 | 49 | ||
+ | </pre> | ||
+ | |||
+ | ==Character Sheet Responce Message== | ||
+ | <pre> | ||
+ | 0D 00 // Op Count | ||
+ | C4 17 3A 9B // CharacterSheetResponseMessage | ||
+ | 00 00 00 00 | ||
+ | 00 00 00 00 | ||
+ | 00 00 FA C3 //Float (-500) Bind X <---------this being used for Stored Clone Location | ||
+ | 00 00 E0 41 //Float (28) Bind Y <---------this being used for Stored Clone Location | ||
+ | 00 A0 8C C5 //Float (-4500) Bind Z <---------this being used for Stored Clone Location | ||
+ | 08 00 // string count | ||
+ | 63 6F 72 65 6C 6C 69 61 // corellia <---------this being used for Stored Clone Location | ||
+ | 00 00 00 00 // Bank X not used | ||
+ | 00 00 00 00 // Bank Y not used | ||
+ | 00 00 00 00 // Bank Z not used | ||
+ | 08 00 // string count | ||
+ | 74 61 74 6F 6F 69 6E 65 // tatooine (bank Location) | ||
+ | 00 00 FA C3 //Float (-500) Home X <---------This has become Declaired Location | ||
+ | 00 00 E0 41 //Float (28) Home Y <---------This has become Declaired Location | ||
+ | 00 A0 8C C5 //Float (-4500) Home Z <---------This has become Declaired Location | ||
+ | 08 00 // string count | ||
+ | 74 61 74 6F 6F 69 6E 65 // tatooine (home Location) <---------This has become Declaired Location | ||
+ | 0D 00 00 00 // String count | ||
+ | 49 00 6C 00 6C 00 69 00 73 00 61 00 20 00 // I.l.l.i.s.a. . | ||
+ | 44 00 61 00 65 00 6C 00 61 00 27 00 // D.a.e.l.a.'. | ||
+ | 0a 00 00 00 // lots remaining | ||
+ | 50 88 14 16 // CRC = 'rebel | ||
+ | 00 00 00 00 // faction state 0/1/2 | ||
</pre> | </pre> |
Latest revision as of 11:00, 21 January 2008
Client Modifications - Character Born Date & Play Time
SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.
This mod is Client side UI and server/database side coding to get this to work correctly.
ui_pda_char_sheet.inc
This is the lines to change in the orginal code. This change includes changing the Bind Location to Stored Clone Locationas it should have been named from the beginning, and also makes it display and work correctly.
<Text Enabled='false' Font='bold_12' LocalText='xxx played' Location='205,57.84<-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='played' PackLocation='fff,nfn' PackSize='h,f' PalText='text1' ScrollExtent='263,19' Size='263,19' TextAlignment='Right' TextColor='#96F4FC' Visible='false' <---------------------Remove this line >xxx played</Text> <Text Enabled='false' Font='bold_12' LocalText='[@ui_charsheet:playedlabel]' Location='8,57.84<-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='playedLabel' PackLocation='nfn,nfn' PackSize='h,f' PalText='header' ScrollExtent='192,19' Size='192,19' TextColor='#97FFFF' Visible='false' <---------------------Remove this line >Total Play Time (in seconds, updated every 30 sec)</Text> <--Change this line
And this line
<Text Enabled='false' Font='bold_12' LocalText='xxx borndate' Location='205,25' Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='born' PackLocation='fff,nfn' PackSize='h,f' PalText='text1' ScrollExtent='263,19' Size='263,19' TextAlignment='Right' TextColor='#96F4FC' Visible='false' <---------------------Remove this line >xxx borndate</Text> <Text Enabled='false' Font='bold_12' LocalText='[@ui_charsheet:bornlabel]' Location='8,25' Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='bornLabel' PackLocation='nfn,nfn' PackSize='h,f' PalText='header' ScrollExtent='192,19' Size='192,19' TextColor='#97FFFF' Visible='false' <---------------------Remove this line >Birthdate</Text><-------------------------change this line to match whats here
Notice the only lines changed was the Visible='false' this makes it show up in the window.
Next each of the other labels all need to be edited for their location to make room for the new labels.
<Text Enabled='false' Font='bold_12' LocalText='xxx bankLocation' Location='205,123.52' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='bank' PackLocation='fff,nfn' PackSize='h,f' PalText='text1' ScrollExtent='263,19' Size='263,19' TextAlignment='Right' TextColor='#96F4FC' >xxx bankLocation</Text> <Text Enabled='false' Font='bold_12' LocalText='[@ui_charsheet:banklabel]' Location='8,123.52' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='bankLabel' PackLocation='nfn,nfn' PackSize='h,f' PalText='header' ScrollExtent='192,19' Size='192,19' TextColor='#97FFFF' >@ui_charsheet:banklabel</Text> <Text Enabled='false' Font='bold_12' LocalText='xxx lotsUsed' Location='205,140' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='lots' PackLocation='fff,nfn' PackSize='h,f' PalText='text1' ScrollExtent='263,19' Size='263,19' TextAlignment='Right' TextColor='#96F4FC' >xxx lotsUsed</Text> <Text Enabled='false' Font='bold_12' LocalText='[@ui_charsheet:lotslabel]' Location='8,140' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='lotsLabel' PackLocation='nfn,nfn' PackSize='h,f' PalText='header' ScrollExtent='192,19' Size='192,19' TextColor='#97FFFF' >@ui_charsheet:lotslabel</Text> <Text Enabled='false' Font='bold_12' LocalText='xxx bindLocation' Location='205,107.1' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='bind' PackLocation='fff,nfn' PackSize='h,f' PalText='text1' ScrollExtent='263,19' Size='263,19' TextAlignment='Right' TextColor='#96F4FC' >xxx bindLocation</Text> <Text Enabled='false' Font='bold_12' LocalText='[@ui_charsheet:bindlabel]' Location='8,107.1' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='bindLabel' PackLocation='nfn,nfn' PackSize='h,f' PalText='header' ScrollExtent='192,19' Size='192,19' TextColor='#97FFFF' >Stored Clone Location</Text> <--Change this line to match whats here <Text Enabled='false' Font='bold_12' LocalText='xxx married' Location='205,90.68' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='married' PackLocation='fff,nfn' PackSize='h,f' PalText='text1' ScrollExtent='263,19' Size='263,19' TextAlignment='Right' TextColor='#96F4FC' >xxx married</Text> <Text Enabled='false' Font='bold_12' LocalText='[@ui_charsheet:marriedlabel]' Location='8,90.68' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='marriedLabel' PackLocation='nfn,nfn' PackSize='h,f' PalText='header' ScrollExtent='192,19' Size='192,19' TextColor='#97FFFF' >@ui_charsheet:marriedlabel</Text> <Text Enabled='false' Font='bold_12' LocalText='xxx home' Location='205,74.26' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='home' PackLocation='fff,nfn' PackSize='h,f' PalText='text1' ScrollExtent='263,19' Size='263,19' TextAlignment='Right' TextColor='#96F4FC' >xxx home</Text> <Text Enabled='false' Font='bold_12' LocalText='[@ui_charsheet:homelabel]' Location='8,74.26' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='homeLabel' PackLocation='nfn,nfn' PackSize='h,f' PalText='header' ScrollExtent='192,19' Size='192,19' TextColor='#97FFFF' >@ui_charsheet:homelabel</Text> <Text Enabled='false' Font='bold_12' LocalText='xxx species' Location='205,57.84' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='species' PackLocation='fff,nfn' PackSize='h,f' PalText='text1' ScrollExtent='263,19' Size='263,19' TextAlignment='Right' TextColor='#96F4FC' >xxx species</Text> <Text Enabled='false' Font='bold_12' LocalText='[@ui_charsheet:specieslabel]' Location='8,57.84' <-------------------------change this line to match whats here Margin='2,2,2,2' MaxLines='1' MinimumSize='0,19' Name='speciesLabel' PackLocation='nfn,nfn' PackSize='h,f' PalText='header' ScrollExtent='192,19' Size='192,19' TextColor='#97FFFF' >@ui_charsheet:specieslabel</Text>
Then the server needs to be coded to save and send the correct data to the client. The PLAY 3 Baseline packet is where this info is sent to the client.
Play 3 Baseline Message
05 00 0C 5F A7 68 // BaselineMessage EB 28 50 B0 24 00 00 00 // ID 59 41 4C 50 03 // YALP 3 87 00 00 00 10 00 00 00 80 3F 0F 00 // string count 73 74 72 69 6E 67 5F 69 64 5F 74 61 62 6C 65 // string_id_table 00 00 00 00 // string spacer 00 00 00 00 00 00 //CustomName 00 00 00 00 //Volume 00 00 00 00 //GenericINT(not used with PLAY) 04 00 00 00 //MyFlags (see above chart) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 //MyProfile 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 92 08 00 00 D6 70 04 00 4B 00 00 00 12 00 // string count 66 6F 72 63 65 5F // force_ 73 65 6E 73 69 74 69 76 65 5F 31 61 // sensitive_1a D8 07 00 00 // 2008 born year <------------------------HERE 00 00 00 00 // timeplayed in 30 sec. intervals. <----------HERE 88 C2 01 00 00 00 00 00 01 00 00 00 49
Character Sheet Responce Message
0D 00 // Op Count C4 17 3A 9B // CharacterSheetResponseMessage 00 00 00 00 00 00 00 00 00 00 FA C3 //Float (-500) Bind X <---------this being used for Stored Clone Location 00 00 E0 41 //Float (28) Bind Y <---------this being used for Stored Clone Location 00 A0 8C C5 //Float (-4500) Bind Z <---------this being used for Stored Clone Location 08 00 // string count 63 6F 72 65 6C 6C 69 61 // corellia <---------this being used for Stored Clone Location 00 00 00 00 // Bank X not used 00 00 00 00 // Bank Y not used 00 00 00 00 // Bank Z not used 08 00 // string count 74 61 74 6F 6F 69 6E 65 // tatooine (bank Location) 00 00 FA C3 //Float (-500) Home X <---------This has become Declaired Location 00 00 E0 41 //Float (28) Home Y <---------This has become Declaired Location 00 A0 8C C5 //Float (-4500) Home Z <---------This has become Declaired Location 08 00 // string count 74 61 74 6F 6F 69 6E 65 // tatooine (home Location) <---------This has become Declaired Location 0D 00 00 00 // String count 49 00 6C 00 6C 00 69 00 73 00 61 00 20 00 // I.l.l.i.s.a. . 44 00 61 00 65 00 6C 00 61 00 27 00 // D.a.e.l.a.'. 0a 00 00 00 // lots remaining 50 88 14 16 // CRC = 'rebel 00 00 00 00 // faction state 0/1/2