a lost user
Join date: ?
Posts: ?
|
08-16-2005 14:02
In most languages, you can easily "include" another file. Why would you do this? Simple - if you have several scripts that all use the same function and/or variables, you can write the function/variables once, then include it into all those other scripts with a single line of code.
This is ABSOLUTELY NECESSARY. Please tell me that there is a way to do this with LSL, because I may kill myself it there is not.
Example: I have a single prim right now - it contains about 10 scripts. All of these scripts use link messages to communicate with eachother. Basically, there is a brain - that generates ideas, which are packaged and sent to all the other scripts. Those scripts receive the data, unpackage it, and check to see if they act upon it or ignore it.
All the code for doing this is the SAME. And every script contains the same several lines of code. If I can just put all that code in one separate place, then include it into all the other files, I would be a very, very happy man. Please tell me its possible.
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
08-16-2005 14:05
Get the suicide intervention hotline ready... There's no way to do "include". But there's always cut-n-paste. 
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
08-16-2005 14:12
^^ copy and paste, use ESL See this thread for details about ESL and working implementation. ESL in SciTEESL is LSL passed through the MSVC preprocessor. Just install Microsoft Visual C++ Toolkit 2003 (free from microsoft) & SciTE-ez and your ready to go.
_____________________
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
|
a lost user
Join date: ?
Posts: ?
|
08-20-2005 08:44
Can Microsoft Visual C++ 6.0 be adapted for use with different languages? Could you use that IDE to write LSL code (with the correct modifications) and actually enable the syntax checker/debugger for LSL?
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
08-21-2005 15:18
Don't see why not.
_____________________
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
|
Minsk Oud
Registered User
Join date: 12 Jul 2005
Posts: 85
|
08-21-2005 15:26
As another easyish (and free) option, grab LCC, MinGW or the Cygwin gcc and use the included C preprocessor. Not sure of ESL is capable of using them, but doing it by hand is not overly difficult.
_____________________
Ignorance is fleeting, but stupidity is forever. Ego, similar.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
08-21-2005 15:31
Haven't tried using gcc (or lcc) for the preprocessor. But since the package from MS is free i don't really see a reason not to go that way (unless you are on a Mac)
_____________________
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
|
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
|
08-21-2005 15:52
emacs has tonnes of preprocessor utilities freely available.
However, without script upload this isn't as useful as you might think it is.
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper " Changing Realities: User Creation, Communication, and Innovation in Digital Worlds : " User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
|