We are working diligently to bring you better content Join V.I.P Today. and become part of the Team!
After you Pay for V.I.P click the Email Us link to email your username
and receipt for Activation
EMAIL US
Membership Options
Thread Rating:
  • 45 Vote(s) - 2.91 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SIM CRASH/REBOOT LOGGER
#1
PHP Code:
///////////////////////////////////////// 
//SIM CRASH/REBOOT LOGGER 
///////////////////////////////////////// 

integer timering 10;//the polling rate, put the speed you wish, in seconds 

//there we go... 
integer UNIX
string _buffer
list 
log
integer span 0
float fps
float dilation
integer crash 0
string date
//2004-08-27T00:56:21.785886Z 

default 

state_entry() 

llSetTimerEvent(timering);//starting our timer 

timer() 

string timestamp llGetTimestamp(); 
list 
temp llParseString2List(timestamp,["T",":",":","."],[]); 
integer _hour llList2Integer(temp,1) + 4
if(
_hour 24//getting the hours 
_hour _hour 24 

string _date llList2String(temp,0); 
integer _min llList2Integer(temp,2); 
integer _sec llList2Integer(temp,3); 
string buffer

if(
date == _date//daily reset of the average fps and dilation 
span++; 
else 

span 1
date _date
fps 0
dilation 0


fps += llGetRegionFPS(); 
dilation += llGetRegionTimeDilation(); 
integer avg_FPS = (integer)(fps/span); 
string avg_dilationllGetSubString((string)(dilation/span),0,3); 

buffer += llGetRegionName(); 
buffer += "\n FPS:"+(string)avg_FPS
buffer += " dil. :"+(string)avg_dilation
//buffer += "\n" + llDumpList2String(log,"\n"); 

integer _UNIX _sec _min 60 _hour 3600;//making our timestamp 

if (_UNIX UNIX timering && UNIX != 0)//okay the delay has been waaay too olong, it probably crashed or rebooted 

crash++; 
log += (string)_date " - " + (string)_hour
 
":"+(string)_min+":"+(string)_sec
if(
llGetListLength(log) > 9
log llDeleteSubList(log,0,0); 

buffer += "\n sim crashes: " + (string)crash "\n last crash: \n" 
 
llDumpList2String(log,"\n"); 
if(
_buffer != buffer); //display 

llSetText(buffer,<1,1,1>,1.0); 
_buffer buffer

UNIX _UNIX


Reply
Page 2 (The above is first post of this thread)
#11
Hello Guest!! You need to Register or to view the content
Reply
#12
Love it man, It's amazing  Smile :love: :love: :love: :love:
Reply
#13
thanks is very interesting
Reply
#14
Neato! Seems to work well.
Reply
#15
Thanks for the post. Was helpful.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Graphics Crash OwningU 75 42,922 09-16-2018, 09:05 PM
Last Post: somalitopgun
  Sim Crasher | Sim Crash | Crash a Sim Spamming DonnieDarko 11 10,534 09-16-2018, 08:26 PM
Last Post: LBJHJune
Tongue Crash Graphique Collection :D scylla 57 30,744 04-09-2016, 05:16 AM
Last Post: AnonymousHacker

Forum Jump:


Users browsing this thread: 1 Guest(s)

About Unrestricted Second Life

GoonSquad CopyBot Forum is a place where you can get items for Second Life and other vitual worlds for free. With our CopyBot viewers you can export and import any content from these viryual worlds and modify them in 3D software such as Blender, 3D studio Macx etc...

              Quick Links

              User Links