Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

LSL-Editor

Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
02-18-2008 20:45
The latest (1.10) version of Builder's Buddy (http://wiki.secondlife.com/wiki/Builders_Buddy) does not compile in lsl_editor, but it compiles and executes fine inworld. I would like to use lsl_editor to make some changes, is it possible to fix this?

Builders Buddy consists of two scripts, a "Base" script and a "Components" script, and in them both we have this somewhat odd construct:

Inside global subroutine _heard_ on line 196 this line is nested:
state reset_listeners;

Which refers to this state declaration:
state reset_listeners
{
state_entry()
{
state default;
}
}

The error it gets is:
1 'state(string)' is a 'method' but is used like a 'type' BuildersBuddyBase.lsl 196 5


Interestingly, lsl_editor does not get an error on the script below, which is the same basic construct, except that the restart_default invocation is not in a subroutine:

default
{
state_entry()
{
llSay(0,"Hello, Avatar!";);
}

touch_start(integer total_number)
{
state restart_default;
}
}

state restart_default
{
state_entry()
{
state default;
}
}
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
02-19-2008 01:22
I would suggest that you post a bug to the LSLEditor site and/or the forum that Alphons has started at www.lsleditor.org/forum.
Alphons no longer posts to this forum. I believe he may still read it however.
1 ... 5 6 7 8 9 10 11 12 13