Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Customising The Client's Day Cycle XML file/Time of Day

Akamu Lurra
Registered User
Join date: 30 Sep 2006
Posts: 6
08-31-2009 19:38
Title:
Customising The Client's Day Cycle XML file/Time of Day

Message:
I'm not sure if this is where I should post this so feel free to yell at me, I've been a resident since 2005 so I've become used to it. I asked live chat this question and they said take it to the forums since they "do not advise on scripting/coding". This is what I asked them, and now I put it to the public:

I would like to know if it's possible to edit the day cycle's "default.xml" file to set the "length of cycle" option in the client's "Day Cycle" window. Also I would like to know if it's possible to set a parameter in an xml file to automatically adjust the day cycle's time to PDT instead of reverting to estate time. My goal is to have the SL client set to automatically load a 24-hour day cycle with the time set to GMT-7(PDT) or other time zone. I also cannot find a list of parameters for editing the default.xml file. Does a list exist?

I am not a skilled coder, but I can edit an XML file or closely follow directions to get this accomplished.


System Information:
Apple iBookG4 (I know, sadly slow for SL)
Processor 1.33 GHz PPC G4
Memory: 1 GB DDR SDRAM
OS Version: 10.4.11
SL Version: 1.22.11 (1.23.4 was too laggy on my system)
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
08-31-2009 21:35
You can get some of what you want by editing the default.xml file, which looks like this:

CODE

< llsd>
< array>
< array>
< real>0< /real>
< string>A-12AM< /string>
< /array>
< array>
< real>0.125< /real>
< string>A-3AM< /string>
< /array>
< array>
< real>0.25< /real>
< string>A-6AM< /string>
< /array>
< array>
< real>0.375< /real>
< string>A-9AM< /string>
< /array>
< array>
< real>0.5< /real>
< string>A-12PM< /string>
< /array>
< array>
< real>0.625< /real>
< string>A-3PM< /string>
< /array>
< array>
< real>0.75< /real>
< string>A-6PM< /string>
< /array>
< array>
< real>0.875< /real>
< string>A-9PM< /string>
< /array>
< /array>
< /llsd>

Just change the values to show a different start time, ie 6 hours difference:

CODE

< llsd>
< array>
< array>
< real>0.75< /real>
< string>A-12AM< /string>
< /array>
< array>
< real>0.875< /real>
< string>A-3AM< /string>
< /array>
< array>
< real>0< /real>
< string>A-6AM< /string>
< /array>
< array>
< real>0.125< /real>
< string>A-9AM< /string>
< /array>
< array>
< real>0.25< /real>
< string>A-12PM< /string>
< /array>
< array>
< real>0.375< /real>
< string>A-3PM< /string>
< /array>
< array>
< real>0.5< /real>
< string>A-6PM< /string>
< /array>
< array>
< real>0.625< /real>
< string>A-9PM< /string>
< /array>
< /array>
< /llsd>

Remove space after opening angle bracket < . Forum has sql injection filter which disallows posting without that space.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Akamu Lurra
Registered User
Join date: 30 Sep 2006
Posts: 6
09-01-2009 14:13
From: Jesse Barnett
You can get some of what you want by editing the default.xml file, which looks like this:

CODE

< llsd>
< array>
< array>
< real>0< /real>
< string>A-12AM< /string>
< /array>
< array>
< real>0.125< /real>
< string>A-3AM< /string>
< /array>
< array>
< real>0.25< /real>
< string>A-6AM< /string>
< /array>
< array>
< real>0.375< /real>
< string>A-9AM< /string>
< /array>
< array>
< real>0.5< /real>
< string>A-12PM< /string>
< /array>
< array>
< real>0.625< /real>
< string>A-3PM< /string>
< /array>
< array>
< real>0.75< /real>
< string>A-6PM< /string>
< /array>
< array>
< real>0.875< /real>
< string>A-9PM< /string>
< /array>
< /array>
< /llsd>

Just change the values to show a different start time, ie 6 hours difference:

CODE

< llsd>
< array>
< array>
< real>0.75< /real>
< string>A-12AM< /string>
< /array>
< array>
< real>0.875< /real>
< string>A-3AM< /string>
< /array>
< array>
< real>0< /real>
< string>A-6AM< /string>
< /array>
< array>
< real>0.125< /real>
< string>A-9AM< /string>
< /array>
< array>
< real>0.25< /real>
< string>A-12PM< /string>
< /array>
< array>
< real>0.375< /real>
< string>A-3PM< /string>
< /array>
< array>
< real>0.5< /real>
< string>A-6PM< /string>
< /array>
< array>
< real>0.625< /real>
< string>A-9PM< /string>
< /array>
< /array>
< /llsd>

Remove space after opening angle bracket < . Forum has sql injection filter which disallows posting without that space.


Thanks for your reply. That would work for adjusting for the time difference, but a major problem is the client defaults to the Estate Time with a cycle of <24 hours upon login. So by adjusting the cycle all your doing is placing the sky presets at different times, but they still cycle out of sync with the real world time (having several day cycles within a 24 hour period). The clock needs to be slowed and synchronised. I can accomplish this manually in the client by clicking World->Environment Settings->Environment Editor, then clicking the Advanced Sky button, then clicking the Day Cycle Editor button, closing the sky editor window (as this is not needed), Stop button, Adjusting Length of Cycle to 24h:0m:0s, Adjusting time slider in Environment Editor window to near PDT, then clicking the Play button in the Day Cycle Editor window, then close all windows. I'm hoping there is a way to set this in an XML file so I don't have to go through this process everytime I relog/crash.