Changes

Jump to navigation Jump to search
779 bytes added ,  23:16, 16 January 2021
no edit summary
[[Category: Useful Scripts]][[Category: Opensim Script Library]]OSSL configuration card readerwritten using OSSL. This script will work in Opensim but will not work in Second Life. <br>* Change the name of the notecard to be read in the User Changeable Code* Blank lines are ignored* Lines with a # at the start are ignored for comments* Add your processing for each line read in the same place
=== Script On Github ===
[https://github.com/Fire-And-Ice-Grid/LSL-And-OSSL-Script-Library LSL And OSSL Script Library On GitHub]
==== Licence ====
<syntaxhighlight lang="ini" line>
BSD 3-Clause License
Copyright (c) 2020, Sara Payne
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
UserName = Manwa Pastorelli
UserName = Sara Payne
The line is then processed in what ever whatever way you wish taking the part before the equals sign as the instruction and the part after as the data.
*/
ProcessInstructionLine(string instruction, string data)
{
//add your code here for what ever whatever you wish to do with the line you have just read.
}
//========================
}//close default
</syntaxhighlight>
 
==Syntax Highlighting==
 
[https://www.mediawiki.org/wiki/Extension:SyntaxHighlight GeShi] syntax highlighting is enabled on this wiki. <be>
 
When using the tabs described in the link, change the language part to "lsl". Eg.<br>
syntaxhighlight lang="lsl" line<br>
inside angled brackets <>

Navigation menu