Monomania
|
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
|
07-04-2009 04:18
So here's the deal: I press the 'New Script' button in the 'Contents' tab, start to work on a script and, after maybe a day or two spent slamming my head off a brick wall, I manage to get the "Compile successful! Save complete" message. The little 'Mono' box is checked and everything, which makes me extra happy since I'm planning to use the script over and over again and any number of copies of that script will use the same amount of sim resources. Right? So I drag a copy into 'My Inventory' but what the heck!? I forgot to add llShout(0, "Woot! Woot! It works!!"  so I open the 'My Inventory' copy, make the vital correction and replace the original script in the object with this much more functional and informative version. I open this new version in the object, just to check the correction is there, and find the 'Mono' box isn't checked anymore!? Not to worry, least said, soonest mended, I say to myself as I check the 'Mono' box and recompile the script - just to be sure - before dragging another copy back to 'My Inventory'. There's no need to correct this version so I rez a new object in-world and drag the script into it. When I open this version, however, I see that the 'Mono' box is still checked. So I'd like to know was the first version of my script recompiled in LSL when I corrected and saved it again in 'My Inventory'?
|
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
|
07-04-2009 05:12
Because scripts in your inventory cannot be compiled to Mono, only scripts in objects can and it's freaking annoying as hell. There's a technical reason why this is the case and I'm sure someone will be along shortly to inform us of it.
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
07-04-2009 05:20
From: Ephraim Kappler So I'd like to know was the first version of my script recompiled in LSL when I corrected and saved it again in 'My Inventory'? Compiling code in an objects inventory has the two options: mono and NOT mono; Mono is default. Compiling code in inventory ( not an objects inventory ) is NOT in mono. For all I know and that was what you verified, no? Edit: Now I think I understand the question  If you compile the code in Mono in an object and drag it to your inventory it will still be mono when you drag it back on other objects. Only when you compile in your inventory that is spoiled.
_____________________
From Studio Dora
|
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
|
07-04-2009 06:09
Thanks for confirming that, folks. Basically, we need to edit and save a script in an object if we want to maintain it as a 'Mono' compilation. It's ok to store it in 'My Inventory' but it shouldn't be edited there if it is important to maintain the 'Mono' compilation.
Sheesh.
|
Cerise Sorbet
Registered User
Join date: 8 Jun 2008
Posts: 254
|
07-04-2009 12:30
Hi! Greenlife Emerald compiles inventory scripts to Mono so I run that.
|
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
|
07-04-2009 12:45
From: Cerise Sorbet Hi! Greenlife Emerald compiles inventory scripts to Mono so I run that. Thanks for that, Cerise. I wonder why the official releases don't do this?
|
Cerise Sorbet
Registered User
Join date: 8 Jun 2008
Posts: 254
|
07-04-2009 12:49
I think not all the Lindens know how the new compiler works. It was was a client function and now it is a server function. We need the right Lindens to see the request!
|
Cerise Sorbet
Registered User
Join date: 8 Jun 2008
Posts: 254
|
07-04-2009 12:52
VWR-8827 has a patch! I hope that it is added.
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
07-04-2009 15:31
and just for fun, i wrote a function that tells you what VM a script is running under... integer isLSO(){ return (llToLower( "Ü" ) == "Ü"); }
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
|
07-04-2009 16:34
From: Void Singer and just for fun, i wrote a function that tells you what VM a script is running under... You got me there (which isn't hard - like fooling Homer Simpson with a rubber doughnut). How does the conversion of U diaeresis to lower case show the version?
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
07-04-2009 19:05
From: Ephraim Kappler You got me there (which isn't hard - like fooling Homer Simpson with a rubber doughnut). How does the conversion of U diaeresis to lower case show the version? LSO operates in the ascii character range, MONO in the UTF. LL has stated they have no intention of updating that behavior for LSO... so conversion fails in LSO, but succeeds in MONO... other characters would work too... the relevant jira is https://jira.secondlife.com/browse/SVC-3760
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
|
07-05-2009 00:58
From: Void Singer LSO operates in the ascii character range, MONO in the UTF. Very clever. Don't ya just luv Unicode?
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
07-05-2009 16:55
From: Talon Brown Because scripts in your inventory cannot be compiled to Mono, only scripts in objects can and it's freaking annoying as hell. There's a technical reason why this is the case and I'm sure someone will be along shortly to inform us of it. You can compile scripts in inventory?? Cool.
_____________________
So many monkeys, so little Shakespeare.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
07-05-2009 19:33
While LSL does not use all the features that Mono supports, allowing already compiled scripts to be uploaded would leave all Mono features open to attack; not just the ones that LSL uses. Currently LL is waiting on the Mono code verifier to be completed and thoroughly tested, when that happens they can verify the integrity of uploaded scripts to ensure they won't try and root the system.
_____________________
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
|
Eeek Sparta
Registered User
Join date: 5 Jul 2009
Posts: 4
|
07-05-2009 19:38
Very very off topic, but can anyone else post a topic here? it wont let me, so im just posing in another thread, sorry  I get http://www.homepagez.org/gfxhome/untitled.bmp when i try to post a topic, in firefox too.
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
07-05-2009 19:56
From: Eeek Sparta Very very off topic, but can anyone else post a topic here? it wont let me, so im just posing in another thread, sorry  I get http://www.homepagez.org/gfxhome/untitled.bmp when i try to post a topic, in firefox too. see this jira entries (and the related entries, I'll assume that's a "Not Found" message) https://jira.secondlife.com/browse/WEB-917
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
07-05-2009 20:33
Sometimes the forums break. ~~~~ Here is another way to determine the VM at runtime. integer isLSO(){ return llGetListEntryType((list)((key)"")) & 1; }
integer isMono(){ return llGetListEntryType((list)((key)"")) >> 2; }
This relies upon SVC-1710. http://jira.secondlife.com/browse/SVC-1710
_____________________
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
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
07-06-2009 04:39
From: Strife Onizuka Sometimes the forums break. ~~~~ Here is another way to determine the VM at runtime. integer isLSO(){ return llGetListEntryType((list)((key)"")) & 1; }
integer isMono(){ return llGetListEntryType((list)((key)"")) >> 2; }
This relies upon SVC-1710. http://jira.secondlife.com/browse/SVC-1710hah I forgot all about that one...I remember when it popped up, but missed the "wont finish" must test speed and byte size soon
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|