Lele Zanzibar
-
Posts
2 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Posts posted by Lele Zanzibar
-
-
Hi,
I really want to use the Firestorm Preprocessor - it sounds like a great feature to help me write / manage my scripts better with the #include capabilities it offers so I don't have to copy-paste the same bits of code into every single script that requires it.
I've tried using the Firestorm Preprocessor before - I've ran into these issues then which is what made me give up using it... "Ill formed preprocessor directive #endif." Can someone help me or can someone point me to a more in-depth guide or something on using the preprocessor? Please do not link "https://wiki.firestormviewer.org/fs_preprocessor#setup" as I've read through this multiple times and can't figure out what is going on (unless there is something in there that I'm missing). I am LITERALLY using that guide and copy/pasting the tutorial. I've tried googling the error messages and there just doesn't seem to be any documentation out there regarding this...
This tutorial worked ONCE for me today - then I tried modifying the code to include the files I wanted to include... it stopped working. Fine - I probably had something wrong with my code... so I reset everything back to the tutorial so I can try again and I get this problem... "Ill formed preprocessor directive #endif". It's so frustrating.
I've attached a picture with my scripts in VS Code, in SL, the error message, and my firestorm preprocessor settings.
Also, is there a guide on including within include files? I was trying to make one include file for my project that could include other bits of code all scripts in my project are going to require. I am not worried about double-including things.
Like...
Project-A > Script-1 --> #Includes Project-A-Includes-Scripts-File
Project-A > Script-2 --> #Includes Project-A-Includes-Scripts-File
Project-A > Script-3 --> #Includes Project-A-Includes-Scripts-File
--> Project-A-Includes-Scripts-File --> #Includes GenericScript-1 + #Includes GenericScript-2 + #Includes GenericScript-3 + #Includes GenericScript4 + #Includes DebugScript
So that way I don't need to put:
Project-A > Script-1 --> #Includes GenericScript-1 + #Includes GenericScript-2 + #Includes GenericScript-3 + #Includes GenericScript4 + #Includes DebugScript
Project-A > Script-2 --> #Includes GenericScript-1 + #Includes GenericScript-2 + #Includes GenericScript-3 + #Includes GenericScript4 + #Includes DebugScript
Project-A > Script-3 --> #Includes GenericScript-1 + #Includes GenericScript-2 +#Includes GenericScript-3 + #Includes GenericScript4 + #Includes DebugScript
If this is possible, is it possible to use "#define debug" in Script-1, Script-2, or Script-3 so I can debug each script individually? Or set "#define debug" in the "Project-A-Includes-Scripts-File" so I can debug everything (or #undef something)?
Thank you in advance for your help!
Firestorm Preprocessor Help
in LSL Scripting
Posted
I can't believe it... thank you! And thank you too, Animats