Character Born Date & Play time (Client Modifications)
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
>@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