[sldev] settings.xml: new entry vanishing on SL exit

Mike Monkowski monkowsk at fishkill.ibm.com
Mon Dec 14 15:21:30 PST 2009


1.  "the" settings.xml file is misleading.  Each user has a 
user_settings/settings.xml file, but the main file is 
app_settings/settings.xml.  That's the one you have to change.

2.  Becauser someone hardcoded the height in the code.  Search for "526" 
in llfloatersnapshot.cpp

Mike


Tillie Ariantho wrote:
> Hello,
> 
> 1. Where do I define that entries I added to the settings.xml dont get deleted when quitting the SL client?
> 
> I've added the block
> 
>     <key>IncludeTimestampInSnapshotName</key>
>     <map>
>       <key>Comment</key>
>       <string>Append timstamp to snapshot filename</string>
>       <key>Persist</key>
>       <integer>1</integer>
>       <key>Type</key>
>       <string>Boolean</string>
>       <key>Value</key>
>       <integer>0</integer>
>     </map>
> 
> and have added the required functions to llfloatersnapshot.cpp which including the proper
> 
> 	gSavedSettings.setBOOL("IncludeTimestampInSnapshotName", TRUE)
> and
> 	gSavedSettings.getBOOL("IncludeTimestampInSnapshotName")
> calls.
> 
> As soon as I quit the client, the block shown above is gone from the settings.xml.
> The code to save snapshot as Snapshot-yyyy-mm-dd_HH_MM-SS-XXX.<ext> already works.
> Only the vanishing setting lets the client crash on next startup + opening snapshot window.
> 
> 
> 2. And I dont know how to resize the floater window (floater_snapshot.xml) so the additional line fits in:
> 
> <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
> <floater bottom="-300" can_close="true" can_drag_on_left="false" can_minimize="false"
>      can_resize="false" follows="left|top" height="546" name="Snapshot"
> [...]
> 
> I increased that height from 526 to 546 but still the last (new) line is floating outside the window now. Do I have to change another value?
> I added that block to the file:
> 
> 	<check_box bottom_delta="-20" follows="left|top" label="Add timestamp to snapshot name" left="10"
> 	     name="add_timestamp_check" />
> 
> 
> Any ideas?
> 
> Tillie
> _______________________________________________
> Policies and (un)subscribe information available here:
> http://wiki.secondlife.com/wiki/SLDev
> Please read the policies before posting to keep unmoderated posting privileges



More information about the SLDev mailing list