Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Statistik Skript Informationspanel
#1
OSSL Skript Inworld.
Dieses Statistik Skript zeigt euere Region und das angeschlossene Grid direkt auf einem Prim an.
Einen Würfel Inworld erstellen, dann neues Skript erstellen (Inhalt löschen) und dieses Skript einfügen fertig.
Ihr könnt den Würfel einfärben und in der Größe x beliebig einstellen.
Packt dies schön ein, zum Beispiel in einem Bilderrahmen.

   
[Bild: attachment.php?aid=2009]
Antworten }
Thanks given by: Achim
#2
Ich habe mal mit Schrift und Farben herumgespielt Smile

   

Kurzanleitung:
Würfel erstellen.
Neues Script.
Inhalt "neues Script" gegen den Code (infopanel.lsl) unten austauschen.
"Neues Script" umbenennen in infopanel.


Code:
// Informationspanel von Manfred Aabye
// Einfach ein Prim erstellen und dieses Skript einfuegen.
// Dieses Skript startet nur einmal und zeigt das ergebnis an, also lag frei.
// Ihr braucht das Skript nur ab und zu zuruecksetzen.
// Wenn ihr moechtet koennt ihr auch einen Timer einbauen.
// Dieses Skript ist freeware.

integer TotMemUsed;


default
{
   state_entry()
   {
       string CommandList = "";
       
       CommandList = osSetPenSize( CommandList, 2 ); // Linienstaerke
       CommandList = osSetFontSize( CommandList, 20 ); //Schriftgroesse
       
       // Abfrage Statistiken

       CommandList = osMovePen( CommandList, 30, 01 );           // Position Breite, Hoehe
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, osGetGridName() + "  Informationspanel:" ); // Textausgabe
       
       CommandList = osDrawLine( CommandList, 1, 30, 512, 30 );
       
       CommandList = osSetFontSize( CommandList, 14 ); //Schriftgroesse
       
       CommandList = osMovePen( CommandList, 30, 30 );
       CommandList = osSetPenColor( CommandList, "DarkOrange" );           // Schriftfarbe        
       CommandList = osDrawText( CommandList, "Grid Name: "+ osGetGridName());
       
       CommandList = osMovePen( CommandList, 30, 50 );
       CommandList = osSetPenColor( CommandList, "Orchid" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "URL: "+ osGetGridLoginURI());
       
       CommandList = osMovePen( CommandList, 30, 70 );
       CommandList = osSetPenColor( CommandList, "DarkOrchid" );           // Schriftfarbe        
       CommandList = osDrawText( CommandList, osGetSimulatorVersion());
       
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe
       CommandList = osDrawLine( CommandList, 30, 96, 480, 96 );
       CommandList = osSetFontSize( CommandList, 12 ); //Schriftgroesse
       
       CommandList = osMovePen( CommandList, 30, 100 );          
       TotMemUsed = osGetSimulatorMemory();
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Gesamtspeicher: "+ TotMemUsed);
       
       CommandList = osMovePen( CommandList, 30, 120 );
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Regionsgroesse: " + (string)osGetRegionSize());
               
       CommandList = osMovePen( CommandList, 30, 140 );
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe        
       CommandList = osDrawText( CommandList, "Skript Engine: " + osGetScriptEngineName());
       
       CommandList = osMovePen( CommandList, 30, 160 );
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe        
       CommandList = osDrawText( CommandList, "Physik Engine: " + osGetPhysicsEngineName());
       
       CommandList = osMovePen( CommandList, 30, 180 );
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe        
       CommandList = osDrawText( CommandList, "Regionsname: " + (string)llGetRegionName());
       
       CommandList = osMovePen( CommandList, 30, 200 );
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe        
       CommandList = osDrawText( CommandList, "Region FPS: " + (string)llGetRegionFPS());
       
       CommandList = osMovePen( CommandList, 30, 220 );
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe        
       list Stats = osGetRegionStats();      
       CommandList = osDrawText( CommandList, "Sim FPS: " + (string) llList2Float( Stats, STATS_SIM_FPS ));
       
       CommandList = osMovePen( CommandList, 30, 240 );
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe        
       CommandList = osDrawText( CommandList, "Physics FPS: " + (string) llList2Float( Stats, STATS_PHYSICS_FPS ));
       
       CommandList = osMovePen( CommandList, 30, 260 );
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Time Dilation: " + (string) llList2Float( Stats, STATS_TIME_DILATION ));
   
       CommandList = osMovePen( CommandList, 30, 280 );
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Root Agents: " + (string) llList2Integer( Stats, STATS_ROOT_AGENTS ));
       
       CommandList = osMovePen( CommandList, 30, 300 );
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Child Agents: " + (string) llList2Integer( Stats, STATS_CHILD_AGENTS ));
       
       CommandList = osMovePen( CommandList, 30, 320 );
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Total Prims: " + (string) llList2Integer( Stats, STATS_TOTAL_PRIMS ));
       
       CommandList = osMovePen( CommandList, 30, 340 );
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Akctive Scripts: " + (string) llList2Integer( Stats, STATS_ACTIVE_SCRIPTS ));
       
       CommandList = osMovePen( CommandList, 30, 360 );
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Script LPS: " + (string) llList2Float( Stats, STATS_SCRIPT_LPS ));
       
       CommandList = osMovePen( CommandList, 30, 380 );
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Frame MS: " + (string) llList2Float( Stats, STATS_FRAME_MS ));
       
       CommandList = osMovePen( CommandList, 30, 400 );
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Physik MS: " + (string) llList2Float( Stats, STATS_PHYSICS_MS ));
       
       CommandList = osMovePen( CommandList, 30, 420 );
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Aktive Prims: " + (string) llList2Float( Stats, STATS_ACTIVE_PRIMS ));
       
       CommandList = osMovePen( CommandList, 30, 440 );
       CommandList = osSetPenColor( CommandList, "Red" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Ausstehende Downloads: " + (string) llList2Float( Stats, STATS_PENDING_DOWNLOADS ));
       
       CommandList = osMovePen( CommandList, 30, 460 );
       CommandList = osSetPenColor( CommandList, "Blue" );           // Schriftfarbe
       CommandList = osDrawText( CommandList, "Ausstehende Uploads: " + (string) llList2Float( Stats, STATS_PENDING_UPLOADS ));
       // Ende abfrage Statistiken

       // Text anzeigen
       osSetDynamicTextureData( "", "vector", CommandList, "width:512,height:512", 0 );
   }
}
[Bild: attachment.php?aid=2009]
Antworten }
Thanks given by:
#3
Hier noch ein Reset Script, welches ein Script innerhalb eines Prims durch anklicken von mehr als 3 Sekunden Resettet.
Einfach als zweites Script einfügen.
Dieses Script Resettet das Script mit dem Namen infopanel.
Bitte einfach den Namen infopanel gegen den tatsächlichen script Namen austauschen.
Dies läuft auch mit vielen anderen scripten zusammen.



Code:
// Script Reset
// Das andere Skript muss innerhalb des gleichen prim sein und muss ausgeführt werden

default
{
   touch_start(integer num_detected)
   {
       llResetTime();
   }

   touch_end(integer num_detected)
   {
       if (llGetTime() < 3.0)
           llSay(0, "Bitte anklicken und fuer mindestens 3 Sekunden lang gedrueckt halten..");
       else
           llResetOtherScript("infopanel"); //Skript Name hier infopanel
   }
}
[Bild: attachment.php?aid=2009]
Antworten }
Thanks given by:


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste