Difference between revisions of "Character Born Date & Play time (Client Modifications)"
From SWGANH Wiki
(→Play 3 Baseline Message) |
(→ui_pda_char_sheet.inc) |
||
Line 10: | Line 10: | ||
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 28: | ||
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 40: | ||
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 91: | Line 91: | ||
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 108: | ||
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 126: | ||
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 143: | ||
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 161: | ||
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 178: | ||
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 189: | ||
Size='192,19' | Size='192,19' | ||
TextColor='#97FFFF' | TextColor='#97FFFF' | ||
− | > | + | >Stored Clone Location</Text> <--Change this line to match whats here |
Line 196: | Line 196: | ||
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 213: | ||
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 225: | ||
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 246: | ||
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 258: | ||
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 279: | ||
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 294: | ||
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> |
Revision as of 12:20, 5 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
<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 >@ui_charsheet:bornlabel</Text>
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 intervals. <----------HERE 88 C2 01 00 00 00 00 00 01 00 00 00 49