Character Born Date & Play time (Client Modifications)
From SWGANH Wiki
Revision as of 15:01, 31 December 2007 by Snow (Talk | contribs) (New page: {{PageHeader|Client Modifications|Character Born Date & Play Time}} {| border="0" width="90%" cellpadding=6 |- |valign=top| This mod is Client side UI and server/database side coding to ge...)
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.incThis is the lines to change in the orginal code <Text Enabled='false' Font='bold_12' LocalText='xxx played' Location='205,63.2' <-------------------------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,63.2' <-------------------------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 >@ui_charsheet:playedlabel</Text> 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>
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,120.5' <-------------------------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,120.5' <-------------------------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,139.6' <-------------------------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,139.6' <-------------------------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,101.4' <-------------------------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,101.4' <-------------------------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' >@ui_charsheet:bindlabel</Text> <Text Enabled='false' Font='bold_12' LocalText='xxx married' Location='205,82.3' <-------------------------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,82.3' <-------------------------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.5' <-------------------------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.5' <-------------------------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,44.1' <-------------------------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,44.1' <-------------------------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 Message05 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 interavels. <----------HERE 88 C2 01 00 00 00 00 00 01 00 00 00 49 |