Clean scripts do not compile
|
|
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
|
12-13-2006 20:30
I have a clean -- error free -- script....it wont compile. The reason? Out of memory!
Just when I worked around all of the other problems....now a new one. Wonderful.
Has anyone else seen this problem?
|
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
12-13-2006 20:42
Yes. First, save a backup of your script with comments (in an offline text/script editor). Then, remove all comments from the version you wish to compile. If that doesn't work, you'll need to move some functionality to a second script within the same prim, and send data between your two scripts via link messages.
|
|
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
|
12-13-2006 21:00
From: DoteDote Edison ...you'll need to move some functionality to a second script within the same prim, and send data between your two scripts via link messages. Thanks...already doing this. Looks like it is a third script now since I am concerned that the second script already in place may end up having the same problem. I hope the newer, mono-based runtime that I have heard about will address issues like this. In the mean time , there's llMessageLinked  Thanks... -2fast
|
|
Alexis Starbrook
CEO - Alexis Digital
Join date: 7 Dec 2006
Posts: 135
|
12-13-2006 21:03
Yes, scripts on objects have a finate amount of memory availabe to them. If your script get to be to big or uses alot of variables and lists you just have to think of someway of cutting it down.
|
|
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
|
12-13-2006 21:08
The problem is that I was able to compile this before the update - that is how I know the script is syntactically error free. Maybe this has something to do with the character set LL is using now for scripts and notecards.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
12-14-2006 00:17
From: DoteDote Edison Yes. First, save a backup of your script with comments (in an offline text/script editor). Then, remove all comments from the version you wish to compile. If that doesn't work, you'll need to move some functionality to a second script within the same prim, and send data between your two scripts via link messages. comments and whitespace have no bering on script size basicly imagine 2 files being saved, a text file with your script you see and the bytecode version where all that is ignored ... ive litterly writen novels in comments
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
12-14-2006 02:05
From: Osgeld Barmy comments and whitespace have no bering on script size
basicly imagine 2 files being saved, a text file with your script you see and the bytecode version where all that is ignored ...
ive litterly writen novels in comments I've only managed a few limmericks myself.... Here I sit broken hearted, My Scripts compiled but the sim departed, I spent my time to craft my code, But poor old SL couldnt take the load, Oh How I wish I'd never started.....
|
|
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
|
12-14-2006 02:46
From: 2fast4u Nabob The problem is that I was able to compile this before the update - that is how I know the script is syntactically error free. Maybe this has something to do with the character set LL is using now for scripts and notecards. Is there any info available on character set byte usage? Could be they using 16 instead of 8 bits/char. If so, any character storage would need twice the size. Are you a major user of preset strings? Maybe the lslint guy could comment on this. His syntax checker was excellent in picking where the lsl compiler would run out of stack space. Not sure that helps, I think llMessageLinked will become your (hated) friend! Ed edit: If LL did change the character display storage, would that not break existing scripts? So maybe this is just an update error in the online lsl compiler.
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
12-14-2006 06:09
Probably a change in the compiler. LL's life would be easier if they just increased the constraints for the compiler then after the script was compiled went back and made sure it was the proper size. There are a bunch of stupid things the compiler does that should be fixed.
_____________________
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
|
|
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
|
12-14-2006 14:25
From: ed44 Gupte Are you a major user of preset strings? Yes..I have a lot of fixed strings in this particular script (they give directions, and add lables to data output via llSay, llWhisper, or llInstantMessage. I managed to get it working using llMessageLinked - just a pain to have to rework it again. As an asside...guess what happened once it compiled? Stack heap collision  That was another problem and solved again using llMessageLinked. I have not tried lsllint in a while...maybe time to go back. Thanks, -2fast
|
|
Ultralite Soleil
Registered User
Join date: 31 Aug 2006
Posts: 108
|
12-15-2006 11:01
From: Newgate Ludd I've only managed a few limmericks myself....
Here I sit broken hearted, My Scripts compiled but the sim departed, I spent my time to craft my code, But poor old SL couldnt take the load, Oh How I wish I'd never started..... There once was a man from Da Boom His script memory ran out of room The stack heap collided The script was divided And now development can resume
|