After you Subscribe email your username
and receipt to
goonsquad.me@gmail.com
Membership Options
Pay With Bitcoin
  • 26 Vote(s) - 2.96 Average
  • 5
  • 4
  • 3
  • 2
  • 1
Thread Modes

SIM CRASH/REBOOT LOGGER
deadpool Offline
Goonsquad Member
******
Goonsquad

Posts: 120
Threads: 106
Joined: Feb 2013
Reputation: 74
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



yoz57
Unregistered

 
hello I to know how it works I would really like to test Wink

DarkVirus33 Offline
Beginner
Registered

Posts: 96
Threads: 8
Joined: May 2013
Reputation: 14
(03-23-2013, 12:49 AM)yoz57 Wrote: You are not allowed to view links. Register or Login to view.hello I to know how it works I would really like to test Wink

i think its just a script that tells you the FPS etc its not a sim crasher just tells you when it crashed n FPS

kingofcb
Unregistered

 
Awesome thanks Smile cant wait to test out

thiryt2706 Offline
Beginner
Registered

Posts: 21
Threads: 1
Joined: May 2015
Reputation: 0
thanks for your post

dehlpi2015 Offline
Beginner
Registered

Posts: 2
Threads: 1
Joined: Oct 2017
Reputation: 0
(02-19-2013, 01:04 PM)deadpool Wrote: You are not allowed to view links. Register or Login to view.
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



this is nice


Possibly Related Threads...
Thread / Author Replies / Views Last Post
68 Replies 30,474 Views
Last Post by ksot
10-18-2017, 07:06 PM
57 Replies 21,511 Views
Last Post by AnonymousHacker
04-09-2016, 06:16 PM




Users browsing this thread: 1 Guest(s)

Color Skins

Change Color:

Background Patterns:

Background Images:

Background Header:

Setting Panel

Main Options: