|
Henry Grumiaux
Registered User
Join date: 23 Jan 2007
Posts: 142
|
06-20-2007 05:08
Well..I finished a big script running as well... But...time to develop the 2.0 version  When I opened it...OMG !! too hard to perform maintenance ! SL does not provide me a good language interface.In fact...My notepad of windows is more powerful ! ahahahah ! So, I'd like to much to organize my scripts and use some funcion like "Include"... to put into a prim the following stuffs such like: globals.lsl voids.lsl string_functions.lsl main.lsl and at the main.lsl...something lile.. include "globals.lsl"; include "globals.lsl"; include "voids.lsl"; include "string_functions.lsl"; Sugestions ?
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
06-20-2007 05:43
Copy and paste their contents into the script. Voila, they're included.
|
|
Henry Grumiaux
Registered User
Join date: 23 Jan 2007
Posts: 142
|
06-20-2007 05:45
I will appreciate so much a less amateur answer like the answer on top professionals knows what I'm talking about..and my needs 
|
|
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
|
06-20-2007 05:45
Nope, there are no include statements in LSL.
The best you can do is use llMessageLinked to communicate between scripts in the same object. Just remember that every script you have running, even if it is not doing anything adds to lag.
|
|
Zephy Toshihiko
Registered User
Join date: 3 Dec 2006
Posts: 12
|
06-20-2007 05:45
Other than that, you could use seperate scripts and use linkmessages between thm but that can make things more complicated!
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
06-20-2007 10:27
There are external LSL script editing tools that have #includes. They also do syntax checking and indenting and so forth.
When you are finally ready, you process the includes onto the clipboard, and then paste it into SL.
Certainly, a more integrated solution is better. On the other hand, there are very good reasons to limit scripts to small sizes that have to do with moving from one sim to another.
Consider the miracle. You wear a scripted object. The script is executing on the sim you are on. You cross the boundary into another sim, the script continues to execute on the new (sim) which might be another server 2,000 miles away.
Pretty cool, if you ask me.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
06-20-2007 18:37
From: Deanna Trollop Copy and paste their contents into the script. Voila, they're included. *nods*  Knowing that Mono is pending, it's hard to be terribly distraught about LSL limitations. At this point, effort is surely better invested in the VM's actual functionality.
|
|
Henry Grumiaux
Registered User
Join date: 23 Jan 2007
Posts: 142
|
06-21-2007 02:38
ty, guys ! I will try both things ! LinkedMessage and external LSL tools 
|