Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Scripts won't recompile in Mono...or non-Mono

Dark Otsuzum
Registered User
Join date: 15 Sep 2006
Posts: 14
08-31-2008 08:21
I have been putting off releasing some of my vehicle designs until I could compile them in Mono, and tried 1.21 RC0 as soon as it was available.

The first 2 scripts I tied to recompile threw up errors in Mono, even though they did (and still do) compile and work OK on viewer 1.20. (non-Mono)

I tried to recompile them in 'non-Mono' using 1.21 RC0, and also got the same error messages.

The Error message is " : ERROR : Name previously declared within scope"

********** UPDATE ********************

The RC0 compiler was detecting a syntax error that earlier versions of the compiler ignored... strange, but it therefore seems that there is not a problem in 1.21 RC0 (although why did my buggy script work in 1.20?)
Twisted Laws
Registered User
Join date: 19 Jun 2006
Posts: 9
09-02-2008 18:44
in LSL, if you had two on_rez(integer sp) sections (or any other duplicated section) only the last one was used and it never even warned you there was a problem. at least mono lets you know you accidently duplicated a section. section probably isn't the right name.
Vinnie Baxter
Registered User
Join date: 5 Feb 2007
Posts: 17
09-03-2008 02:59
I've also noticed something weird that I used a variable with name 'rez' earlier, which - for whatever reason - wouldn't compile.. changing the name to 'rezz' i.e. fixed that.