WhiteCore-Dev
WhiteCore-Dev copied to clipboard
LSL Script issues and Compile problems
Greetings Dev Team,
Having some issues with a few scripts when saving and compiling. Please bear in mind that these scripts have been tested and work in Secondlife, Opensim 0.8.2.1 and the Latest Dev, OSGrid and Inworldz.
The error im getting is:
Turbolift Call Station: Error compiling script: (26,34): Error: ) expected (26,34): Error: ; expected (26,34): Error: Invalid expression term ',' (26,34): Error: Invalid expression term ')'
Which referes to this line: list buttons = [online_btn, "Access", "Reset", "Call Lift"]; // Menu buttons.
Script one: Is an elevator script calling station, which when touched calls the lift
Script two: Is the lift itself, when the calling station is touch moves the lift to that station
I have reviewed the script with my lsl coder and we cannot identify the problem. Without releasing the script for public view (Since these are items i sell inworld)
Goodmorning @Ramius1701
The messages you see in the compiler window of the viewer are deceiving. The one you should look for are the ones on the region terminal.
Without looking too deep at the script, the errors it's giving are basically list issues which we know the DNE has. Especially with scripts from SL and InWorldz these errors will occur because they aren't using DNE. Open and OSGrid don't use DNE for a reason, you just found the exact reason why.
I'm currently working through the outstanding issues but currently I am travelling and internet access is intermittent. :(
I have seen a similar issue to this but have not had time to follow it up. It does appear to be a problem with script compilation engine which has not been looked at for a long time (Aurora days) Also, the errors shown sort of do not appear to relate to the list entry as the bracket ')' is not present but is being flagged as an error. This error may actually be located elsewhere in the script as I have found the reported details do not appear o be absolutely correct as far as line number & character position. I suspect that whitespace and newlines are not being accounted for correctly in the compilation process.
Anyways... I will be looking at this to try and sort it out.