Library: Trick Content Loader
|
|
Vicero Lambert
Burning Life Coder
Join date: 24 Aug 2004
Posts: 100
|
12-13-2004 10:12
If your the kind of guy who likes to have somthing look complex then this script is the one for you. It will allow you to have a real looking loading notice. Pepole will think your smart  I fixed the script so it should work properly now  ----------------------------------------------------------------------------------- //Script Smartness Made By Vicero lambert default { state_entry() {
llSay(0,Loading Contents.... %0 ); llSleep(2); llSay(0,Loading Contents.... %5 ); llSleep(2); llSay(0,Loading Contents.... %10 ); llSleep(2); llSay(0,Loading Contents.... %15 ); llSleep(2); llSay(0,Loading Contents.... %20 ); llSleep(2); llSay(0,Loading Contents.... %25 ); llSleep(2); llSay(0,Loading Contents.... %30 ); llSleep(2); llSay(0,Loading Contents.... %35 ); llSleep(2); llSay(0,Loading Contents.... %40 ); llSleep(2); llSay(0,Loading Contents.... %45 ); llSleep(2); llSay(0,Loading Contents.... %50 ); llSleep(2); llSay(0,Loading Contents.... %55 ); llSleep(2); llSay(0,Loading Contents.... %60 ); llSleep(2); llSay(0,Loading Contents.... %65 ); llSleep(2); llSay(0,Loading Contents.... %70 ); llSleep(2); llSay(0,Loading Contents.... %75 ); llSleep(2); llSay(0,Loading Contents.... %80 ); llSleep(2); llSay(0,Loading Contents.... %85 ); llSleep(2); llSay(0,Loading Contents.... %90 ); llSleep(2); llSay(0,Loading Contents.... %95 ); llSleep(2); llSay(0,Loading Contents.... %100 ); llSleep(2); llSay(0,Loading Done...); } }
{
_____________________
- Vicero Lambert
|
|
Stinky Queso
Second Life Resident
Join date: 29 Nov 2004
Posts: 53
|
12-15-2004 17:19
use settext to be a real scripting pimp!
|
|
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
|
12-19-2004 15:01
Umm, llSay(0,Loading Contents.... %0 ); have you actually tried that? you will need " " to make the text a string,, like.. llSay(0, "Loading Contents.... %0"  ; also, this can be done easly without writing a new line for each llSay, :-/ From: someone default { state_entry() { integer i; for(i = 0; i < 100; i ++){ llSetText("Loading Contents.... " + (string)i + "%", <1,1,1>, 0.5); llSleep(llFrand(0.5)); } llSetText("", <1,1,1>, 0); llSay(0, "Done"  ; } } Try that,
_____________________
"no, my alt is clean on crashing any sims"
|
|
Vicero Lambert
Burning Life Coder
Join date: 24 Aug 2004
Posts: 100
|
12-20-2004 01:19
ok I put a little time into this to fool some newbs but here it is a settext version just for you  default { state_entry() { vector blue = <1.0, 0.0, 1.0>; llSetText("Loading Script Please Wait...0%", blue, 1.0); llSleep(15); llSetText("Loading Script Please Wait...1%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...6%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...15%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...20%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...23%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...30%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...34%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...37%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...43%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...48%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...57%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...60%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...63%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...66%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...78%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...80%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...93%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...95%", blue, 1.0); llSleep(5); llSetText("Loading Script Please Wait...100%", blue, 1.0); llSleep(5); llSetText("Loading Done Have A Nice Day :-)", blue, 1.0); llSleep(5); llSetText("", blue, 1.0); llSleep(5); } }
_____________________
- Vicero Lambert
|
|
Nexus Nash
Undercover Linden
Join date: 18 Dec 2002
Posts: 1,084
|
12-21-2004 12:52
*hits Vicero with a stick* default { state_entry() { integer index; while(index <= 100) { llWhisper(0,"Loading Contents.... %" + (string)index); index = index + 5; llSleep(2); } } }
|
|
Ming Chen
Here since 0.4.1!
Join date: 3 Sep 2003
Posts: 524
|
12-22-2004 06:19
here is something a little more 'tiny': integer i; for(i = 0; i < 100; i += 5){ llSay(0,"Loading Contents..." + (string)i + "%"); llSleep(2); }
llSay(0,"Loading Complete...");
Have fun  --Ming
|
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
12-24-2004 00:28
Recursive solution, anyone? 
|
|
Bob Bauhaus
Fictional being
Join date: 22 Sep 2004
Posts: 24
|
12-31-2004 15:47
RecurseStatus(integer statusVal){ if (statusVal >= 100) { llSetText("Loading done!",blue,1.0); return; } llSetText("Loading..." + (string)statusVal + "%",blue,1.0); llSleep(1.0); RecurseStatus(statusVal + 5); }
RecurseStatus(0);
There you go.
|
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
01-24-2005 05:56
For a very patient "Script Pimp" default { state_entry() { llSetText(" ", <1.0,1.0,1.0>, 1); } on_rez(integer num) { llResetScript(); }
touch_start(integer total_number) { float i; for(i = 0; i < 100; i += 0.000001){ llSetText("Preloading..." + (string)i + "% ", <1.0,1.0,1.0>, 1); llSleep(0.0001); } llSleep(3); llSetText("Preloading Complete...
", <1.0,1.0,1.0>, 1); llSleep(3); llSetText("BOOM!!!
", <1.0,1.0,1.0>, 1); llSleep(3); llSetText(" ", <1.0,1.0,1.0>, 1); } }
|
|
Mike Zidane
Registered User
Join date: 10 Apr 2004
Posts: 255
|
02-10-2005 16:02
Hey, those are great  How about something that actually loads content? llPreloadAnimation... llPreloadTexture.... I don't think we have those yet.
_____________________
I'm only faking when I get it right. - CC
|
|
Owl Patel
Fish miner.
Join date: 7 Jul 2004
Posts: 2,300
|
02-11-2005 04:26
I think we have scripts that preload sounds.
_____________________
The immortal words of Relk: From: Relk Akula I'm not an elitist..well actually I am.
I am superior to any idiot rap-head.
I am superior to many of you.
Any skater is superior to many of you.
I acknowledge that, and I am proud to say it. http://www.overthar.com/ -High Reagent Patel
|
|
Rhombur Volos
King of Scripture & Kebab
Join date: 6 Oct 2004
Posts: 102
|
02-14-2005 13:28
That's unusual. Too bad i don't need a trick script to make people think i'm smart 
|
|
Talila Liu
Micro Builder
Join date: 29 Jan 2004
Posts: 132
|
Lets see how tiny I get!! xD
02-20-2005 10:42
Havent Tested in SL, i think i could hide one line in another, but not sure, have to wait til i get home. yay Recursion Loading(integer num) { llSetText("Loading... " + (string)num++ + "%", <0.9,0.1,0.1>,1.0); if(num <= 100) Loading(num); }
Loading(0); llSetText("Loading Completed!", <0.1,0.9,0.1>,1.0);and now a loading bar xD string myStat;
LoadingBar(integer num) { myStat = ""; integer i; integer j; for(i = 0; i < num; i += 5) myStat += "|"; for(j = 0; j < (20 - (i / 5)); j++) myStat += "."; llSetText(".:Loading:.\n" + myStat, <0.9,0.1,0.1>, 1.0); num++; if(num <= 100) LoadingBar(num); }
LoadingBar(0); llSetText(".:Loading Done:.\n" + myStat, <0.1,0.9,0.1>,1.0); both are untested but if you test em and find a bug ill fix em, hehe  have fun. EDIT: Debugged and working in SL
|
|
bigmoe Whitfield
I>3 Foxes
Join date: 29 Jul 2007
Posts: 459
|
05-25-2008 10:11
for some reason even after removing the from the script it wont compile. got any idea's?
|
|
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
|
05-29-2008 12:20
Which persons code are you refering to?
_____________________
i've got nothing. 
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
05-29-2008 12:29
From: bigmoe Whitfield for some reason even after removing the from the script it wont compile. got any idea's? The original script would need to have quotation marks added around the "loading.... %xx" text, but you weren't really planning to use this thing were you? 
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
05-29-2008 12:46
From: Vicero Lambert If your the kind of guy who likes to have somthing look complex then this script is the one for you. It will allow you to have a real looking loading notice. Pepole will think your smart  I fixed the script so it should work properly now  ----------------------------------------------------------------------------------- //Script Smartness Made By Vicero lambert default { state_entry() {
llSay(0,Loading Contents.... %0 ); llSleep(2); llSay(0,Loading Contents.... %5 ); llSleep(2); llSay(0,Loading Contents.... %10 ); llSleep(2); llSay(0,Loading Contents.... %15 ); llSleep(2); llSay(0,Loading Contents.... %20 ); llSleep(2); llSay(0,Loading Contents.... %25 ); llSleep(2); llSay(0,Loading Contents.... %30 ); llSleep(2); llSay(0,Loading Contents.... %35 ); llSleep(2); llSay(0,Loading Contents.... %40 ); llSleep(2); llSay(0,Loading Contents.... %45 ); llSleep(2); llSay(0,Loading Contents.... %50 ); llSleep(2); llSay(0,Loading Contents.... %55 ); llSleep(2); llSay(0,Loading Contents.... %60 ); llSleep(2); llSay(0,Loading Contents.... %65 ); llSleep(2); llSay(0,Loading Contents.... %70 ); llSleep(2); llSay(0,Loading Contents.... %75 ); llSleep(2); llSay(0,Loading Contents.... %80 ); llSleep(2); llSay(0,Loading Contents.... %85 ); llSleep(2); llSay(0,Loading Contents.... %90 ); llSleep(2); llSay(0,Loading Contents.... %95 ); llSleep(2); llSay(0,Loading Contents.... %100 ); llSleep(2); llSay(0,Loading Done...); } }
{
People might think you're smart, but obviously, the way you code, you're not!
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
05-30-2008 01:44
/me grumbles about thread necromancy
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
|
05-30-2008 03:50
It's back from the dead! Kill it! KILLLLL IT!  .... again.
|
|
madddyyy Schnook
SLGuides Virtual Worlds
Join date: 2 Jan 2006
Posts: 207
|
06-01-2008 09:43
From: Johan Laurasia People might think you're smart, but obviously, the way you code, you're not! And if we were really REALLY smart, we would realise this script was and post was written 2 years before we/i/you even came here.....
|
|
bigmoe Whitfield
I>3 Foxes
Join date: 29 Jul 2007
Posts: 459
|
06-02-2008 00:38
From: Viktoria Dovgal The original script would need to have quotation marks added around the "loading.... %xx" text, but you weren't really planning to use this thing were you?  Yes because I am unable to find the one I have on a few of my items I have bought so figured this out be a nice touch for my freebies packs once I get them stuck into my vendor system
|
|
Jesu Forager
Registered User
Join date: 17 Oct 2007
Posts: 25
|
06-03-2008 12:44
oh the hilarity
|
|
Optikal Planer
Registered User
Join date: 17 Jun 2007
Posts: 5
|
07-08-2008 06:19
This is my age old version of the uber leet loading cycle~ (far outdated & slapped together purely for cosmetics during the preload cycle)
llSetText("Loading;\n[|'''''''''''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound1); llSetText("Loading;\n[||''''''''''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound2); llSetText("Loading;\n[|||'''''''''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound3); llSetText("Loading;\n[||||''''''''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound4); llSetText("Loading;\n[|||||'''''''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound5); llSetText("Loading;\n[||||||''''''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound6); llSetText("Loading;\n[|||||||'''''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound7); llSetText("Loading;\n[||||||||''''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound8); llSetText("Loading;\n[|||||||||'''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound9); llSetText("Loading;\n[||||||||||''''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound10); llSetText("Loading;\n[|||||||||||'''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound11); llSetText("Loading;\n[||||||||||||''']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound12); llSetText("Loading;\n[|||||||||||||'']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound13); llSetText("Loading;\n[||||||||||||||']",<0.4,255,0.4>,1); llSleep(1.0); llPreloadSound(Sound14); llSetText("Load Complete;\n[|||||||||||||||]",<0.4,255,0.4>,1); llSleep(0.25); llPreloadSound(Sound15); llSetText("Load Complete;\n[|||||||||||||||]",<0,0,0>,1); llSleep(0.25); llPreloadSound(Sound16); llSetText("Load Complete;\n[|||||||||||||||]",<255,0,0>,1); llSleep(0.25); llSetText("Load Complete;\n[|||||||||||||||]",<0,0,0>,1); llSleep(0.25); llSetText("Load Complete;\n[|||||||||||||||]",<255,0,0>,1);
|