Tuesday, December 02, 2008
USERLOGIN PASSWORD Remember?
You are here » Learning Center ยป Forums

Openlife Forums

 Openlife Grid Forums
Minimize
 
  Openlife Forums  Scripting  LSL Discussion  Troubles with scripts wher they came from?
Previous Previous
 
Next Next
New Post 5/7/2008 5:12 AM
User is offline Elsja Vacano
58 posts
Openlife Apprentice




Troubles with scripts wher they came from? 


I am trying to wrote a script and once again, I am in trouble.

I see in another posts than some people found workaround to make script runs, even if it do not make something in the script.

That seems for me that the trouble comes from somewhere else like the compilator itself.

 

Let me explain, what happened yesterday with my new script. So together, we may found why some script do not work and after work withou obvious reason.

 

I develop offline (notepad) a script and compile it when finished. I get just few erros like missing ; and so on.

The script does not work, so after I compile it in SL. Lot of errors have been show. A correct them there and back to OG with the modified script.

I get an error message, in line 42 (it will be important),. tell me that use == to compare 2 strings is ambigous.

The compiler expects integer.

The first strange thing here, the compiler does not complain for the same kind of comparaison few lines below.

My first approach, is to change the comparaison by a function that does the same.

The compilation notice me that llGetStringLength is not implemented or some think like that.

 

Keeping in mind that my first script in OG loop without reason and I was unable to reproduce the problem in another code.

I am guessing that the trrouble does not come from the script itself, even if bugged it must a least do something.

Because the line 42 is design to check the data value, it is not snecessary for the debugging phase.

So I comment the line and recompile the script. And get the same error?

It become obvious that whatever I do, create a new script object, put it on a new prims. I ever get the same error in line 42.

Except that this line does not exist anymore. So for unknown reason the code compiled is the same, what ever the source is.

If I cannot explain, what exactely happened, I found something that can notice us when troubles happen for outside reason than the script.

Close the scritp windows and reopen it. Normally the script code muts appears. Yesterday, the code never show back

 
New Post 5/7/2008 9:30 AM
User is offline Elsja Vacano
58 posts
Openlife Apprentice




Re: Troubles with scripts wher they came from? 

Hi,

Finally I found.

The line in error is between to others. The compiler conplains about the line above and try to correct the line below.

Well there is the explanation

if(a==b) is a normal way to compare two variables, but the compiler dislike it. So the line becomes

if((a-b)==0) .......

Whatever I can put my script in the public section enjoi it

 

 
New Post 5/7/2008 10:26 PM
Online now... Pyotr Wolf
66 posts
xyrophile.com
Openlife Apprentice


Re: Troubles with scripts wher they came from? 

for information on the state of the script engine, including supported functions, check out http://opensimulator.org/wiki/Scripting

 
New Post 5/8/2008 12:27 AM
User is offline Charmaine Andersson
47 posts
Openlife Newbie


Re: Troubles with scripts wher they came from? 

Some days I wonder if caching doesn't have something to do with whether or not scripts run correctly (in general in OLG :-)--and then there are days that seem like  the virtual sun must be shining just right LOL ;-)

Charm


Charm
 
New Post 5/9/2008 4:44 AM
Online now... Gitfinger
96 posts
Openlife Apprentice


Re: Troubles with scripts wher they came from? 
Modified By Gitfinger   on 5/11/2008 1:00:14 PM)

Remember Also its not Pure LsL its an emulation so it wont always play ball the same as in sl

 
Previous Previous
 
Next Next
  Openlife Forums  Scripting  LSL Discussion  Troubles with scripts wher they came from?
Privacy Statement | Terms Of UseAll Rights Reserved 2007,2008 3DX - Openlifegrid.com