Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Maximum length of script?

Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
07-11-2004 19:16
I was rationalizing this statement:
"I have built extremely large projects that were large because that was the only way to do them. There are projects that simply can not be split more than they are."

Hm, my post can be read that way I suppose. I was not clear, which is unfortunate. I was addressing Eggy's attitude of 'if you knew how to program i n LSL....' by showing that those same things are things I do, and that yes I am an established LSL scripter and do know what I'm doing.

I should have been clearer, but more than that I should have refrained from posting.
_____________________
--
010000010110110101100001001000000100111101101101011001010110011101100001
--
Darwin Appleby
I Was Beaten With Satan
Join date: 14 Mar 2003
Posts: 2,779
07-11-2004 19:59
From: someone
Originally posted by Ama Omega
I was rationalizing this statement:
"I have built extremely large projects that were large because that was the only way to do them. There are projects that simply can not be split more than they are."

Hm, my post can be read that way I suppose. I was not clear, which is unfortunate. I was addressing Eggy's attitude of 'if you knew how to program i n LSL....' by showing that those same things are things I do, and that yes I am an established LSL scripter and do know what I'm doing.

I should have been clearer, but more than that I should have refrained from posting.
Gotchya. Thanks for clarifying.

Oh, and sorry for the total jump to the conclusion that you were Zeppi.
_____________________
Touche.
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
07-11-2004 20:11
From: someone
Originally posted by Catherine Omega
So wait, you're saying Zeppi and Ama are the same person? Of course! It all makes sense now! :rolleyes:

Also, Eggy, I just want to reiterate what I told you yesterday -- I know nowhere near as much about anything as people give me credit for. :)

But you're cool, cat... and helpful :)
And most scripters aren't. So we all still place you on the proverbial pedestal :)
Zeppi Schlegel
Registered User
Join date: 20 Nov 2003
Posts: 50
07-12-2004 04:17
You know what? I'm just going to leave this thread alone now. :)

I asked a question about the length of a script, and I've been flamed, misquoted and told I was Ama Omega. But somewhere in there were a few tasty tidbits.

To those of you that helped, thanks. :)

Zep
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
07-12-2004 04:58
Sorry if you took it as a flame, Zepmeister. I was only trying to help :p
And being called Ama Omega would be understood as a compliment by most people, you know :D
Francis Chung
This sentence no verb.
Join date: 22 Sep 2003
Posts: 918
07-12-2004 11:01
From: someone
Originally posted by Zeppi Schlegel
Actually, we're not using encryption at all, although I would love to see RSA implemented in LSL. :) I implemented MD5 myself before LL added llMD5String() but that was just silly painful...

*snip*

And although I appreciate the association, I am not Ama. :)

Zep


Did I say you're Ama? :)

Anyways, RSA *has* been implemented in LSL by Adam Zaius. I think he's selling the script for L$300 (which is a bargain)

I'm not sure he's using enough bits to be considered secure in a broad sense - you'd have to ask him.

I implemented an MD5-based encryption library (you can find it in the script library) which I do believe is secure, but it uses a slightly different security model. (Namely, it assumes that both parties know the password, whereas RSA assumes PKI)

Neither implementation is very fast. RSA requires a lot of math ops, and my encrypter is slowed down by having to convert an MD5-sum to base-64 directly.
_____________________
--
~If you lived here, you would be home by now~
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
11-05-2004 11:00
From: Zeppi Schlegel
I'm about 40 lines away from full-service ATMs, and all of a sudden I can't paste my entire script into the script window.

Did I miss the documentation that explains that there is a 32k limit on script source?

Zep


Damn, I just hit this wall, too. And amazingly, I have about 40 lines of code left, too.
At least, that's what I always tell myself. :D

Seriously, though, this really bites. I was just beginning to be reconciled with all of the other limitations of LSL...and now I hit *this*.

not happy...
_____________________
Prim Composer for 3dsMax
-- complete offline builder for prims and sculpties in 3ds Max
http://liferain.com/downloads/primcomposer/

Hierarchical Prim Archive (HPA)
-- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools.
https://liferain.com/projects/hpa
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
11-05-2004 11:57
I almost never use multiple states. I find them about as usefull as case statements... Perfect for certain special situations, but more trouble than they are worth for everything else. I can only think of one script I've written in the last 6 months that had more than the default state. I usually have multiple "states" operating at the same time, multi-dimentional arrangements compared to the one-dimentional state structure. I only use states if there is only one dimention, and there is absolutely no shared behavior between them.

I DO break code up into multiple scripts whenever possible. Not only does this fend off the dark spectre of STACK OVERFLOW errors, but it speeds up execution of the code when multiple threads are running at once. But my comfort with that may be due to past experience with multi-threaded systems. (As in spreading out a program over 6-10 modular CPUs at once.)

There's nothing wrong with making one honking big script if it works. Nothing at all. The chariots in Deus Via have just one main script that does almost everything. It wasn't until I started getting SO errors that I split off a chunk that was easily isolated from the rest. (The execution of the "spell" effects.)

As for comments... I admit that I hardly ever use them. Instead I format my code VERY rigidly and organize it to be easy to read. If there's a single space out of place, I'll notice it. But then, I don't do a lot of open-source scripting, so I'm the only one that needs to read it. Still, I DO try to make my code so clean that anyone that knows LSL well can understand what I'm doing without too many problems. Good naming conventions help. :)

P.s. I do tend to use the variable "cornedbeef" in every hash function I write. Everyone needs the occasional exception. ;)
_____________________
~ Tiger Crossing
~ (Nonsanity)
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
11-05-2004 12:06
I have to thank whoever "BUMPED" this post. Though I was aware that there was a 16k limitation on the memory used by the script, I was not aware of the limitations of the bytes of info including the comments.

Also, I don't want to stir up any "Zep=Ama" additions, but if you look at how closely the posts were back to back (judging from the times of their posts), I'd draw some conclusions from that alone. But perhaps they both had notifications set to that post so they would know when there was new information to look at there.

Then again, MOST of those posts were all very tightly posted "Time-Wise".

Bottom line here, this was a very interesting/amusing string!
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
1 2