Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

A few free scripts.

Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
01-17-2005 23:36
Hey,

I thought I might retire some of my scripts from being exclusively private, to open source. These are free for non-commercial use, as long as you give proper attribution (and keep these terms for any future transmission).

If you like these, donations of ratings, L$ or whatever are welcomed, but of course, not required. I also must make one point extremely clear. I am busy - I do not have time to answer support calls on any of these scripts (and will refuse to do so.). Some of the code may be old (and may not function like it used to), other bits are in a bad need of a rewrite.

Without further delay:
RSA Keypair Generator
Generates RSA keypairs (not very big) for use in encryption. (this should suffice for anything in-world, however if you are using this to secure external comms, I recommend you wrap it up in something stronger)

FT FlightScript 3.0
A old flight script which I use at all the time. It may be a bit fast for most people to begin with, however requires no configuration and acts as a seamless overlay on existing flight.

AzText Prim Script (1 of 2)
A script for AzText, a variable width font engine in SL. Example, supports colors, hyperlinks and a few other cool things. I will not help you set this up. (the prim you place it into, will need to have certain texture faces rotated 90' or -90')

AzText Server Script (2 of 2)
The second half of the above script. This script controls encoding and rezzing of the AzText prims above.

I'll post more as I find them. Please dont put these into any collections of scripts, but instead point to the above URL's, as I may update these scripts into newer versions.

-Adam
_____________________
Co-Founder / Lead Developer
GigasSecondServer
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
01-18-2005 00:01
*poke*
Wiki script library links? good idea?

(asking if i should put some links from the script library on the BG to your scripts)

Also it should be noted that these are under a Creative Commons License
_____________________
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
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
01-18-2005 00:20
From: Strife Onizuka
*poke*
Wiki script library links? good idea?

(asking if i should put some links from the script library on the BG to your scripts)

Also it should be noted that these are under a Creative Commons License


Yep, linking to those URL's is fine. :)

-Adam
_____________________
Co-Founder / Lead Developer
GigasSecondServer
Francis Chung
This sentence no verb.
Join date: 22 Sep 2003
Posts: 918
01-18-2005 07:01
Woo :) Nice of you Adam. Care to release that LSL prettyprinter? :)
_____________________
--
~If you lived here, you would be home by now~
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
01-18-2005 07:56
rsa keypair duh you break me, i was just finishing a DES impementation for SL ^_^
_____________________

tired of XStreetSL? try those!
apez http://tinyurl.com/yfm9d5b
metalife http://tinyurl.com/yzm3yvw
metaverse exchange http://tinyurl.com/yzh7j4a
slapt http://tinyurl.com/yfqah9u
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
01-18-2005 20:27
From: Francis Chung
Woo :) Nice of you Adam. Care to release that LSL prettyprinter? :)


Not sure if that is what Adam used, but you can find mine here (bottom of page).
_____________________
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
01-18-2005 20:37
Naah, I'm using a LSL language extension on GeSHi I added.

Geshi - geshi.sf.net

Here's the code for the extension.

CODE
<?php
/*************************************************************************************
* lsl.php
* -----
* Author: Adam Frisby
* Contributors:
* - None
* Copyright: (c) 2005 Adam Frisby (http://www.adamzaius.net)
* Release Version: 1.0.0
*
* LSL language file for GeSHi.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/

$language_data = array (
'LANG_NAME' => 'C',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'if', 'return', 'while', 'case', 'default',
'do', 'else', 'for', 'jump','state','state_entry','state_exit','touch_start','touch','touch_end'
),
2 => array(
'NULL', 'false', 'break', 'true','NULL_KEY','ZERO_ROTATION','ZERO_VECTOR','ALL_SIDES'
),
3 => array(
"llAbs","llAcos","llAddToLandPassList","llAdjustSoundVolume","llAllowInventoryDrop","llAngleBetween","llApplyImpulse","llApplyRotationalImpulse","llAsin","llAtan2","llAttachToAvatar","llAvatarOnSitTarget","llAxes2Rot","llAxisAngle2Rot","llBase64ToInteger","llBase64ToString","llBreakAllLinks","llBreakLink","llCSV2List","llCeil","llCloseRemoteDataChannel","llCloud","llCollisionFilter","llCollisionSound","llCollisionSprite","llCos","llCreateLink","llDeleteSubList","llDeleteSubString","llDetachFromAvatar","llDetectedGrab","llDetectedGroup","llDetectedKey","llDetectedLinkNumber","llDetectedName","llDetectedOwner","llDetectedPos","llDetectedRot","llDetectedType","llDetectedVel","llDialog","llDie","llDumpList2String","llEdgeOfWorld","llEjectFromLand","llEmail","llEuler2Rot","llFabs","llFloor","llFrand","llGetAccel","llGetAgentInfo","llGetAgentSize","llGetAlpha","llGetAndResetTime","llGetAnimation","llGetAnimationList","llGetAttached","llGetBoundingBox","llGetCenterOfMass","llGetCreator","llGetColor","llGetDate","llGetEnergy","llGetForce","llGetFreeMemory","llGetGeometricCenter","llGetGMTclock","llGetInventoryKey","llGetInventoryName","llGetInventoryNumber","llGetInventoryPermMask","llGetKey","llGetLandOwnerAt","llGetLinkKey","llGetLinkName","llGetLinkNumber","llGetListEntryType","llGetListLength","llGetLocalPos","llGetLocalRot","llGetMass","llGetNextEmail","llGetNotecardLine","llGetNumberOfNotecardLines","llGetNumberOfPrims","llGetNumberOfSides","llGetObjectDesc","llGetObjectName","llGetObjectPermMask","llGetOmega","llGetOwner","llGetOwnerKey","llGetPermissions","llGetPermissionsKey","llGetPos","llGetPrimitiveParams","llGetRegionCorner","llGetRegionFPS","llGetRegionName","llGetRegionTimeDilation","llGetRootPosition","llGetRootRotation","llGetRot","llGetScale","llGetScriptName","llGetScriptState","llGetSimulatorHostname","llGetStartParameter","llGetStatus","llGetSubString","llGetSunDirection","llGetTexture","llGetTextureOffset","llGetTextureRot","llGetTextureScale","llGetTime","llGetTimeOfDay","llGetTimestamp","llGetTorque","llGetVel","llGetWallclock","llGiveInventory","llGiveInventoryList","llGiveMoney","llGodLikeRezObject","llGround","llGroundContour","llGroundNormal","llGroundRepel","llGroundSlope","llInsertString","llInstantMessage","llIntegerToBase64","llKey2Name","llList2CSV","llList2Float","llList2Integer","llList2Key","llList2List","llList2ListStrided","llList2Rot","llList2String","llList2Vector","llListFindList","llListInsertList","llListRandomize","llListSort","llListen","llListenControl","llListenRemove","llLog","llLog10","llLookAt","llLoopSound","llLoopSoundMaster","llLoopSoundSlave","llMakeExplosionDeprecated.","llMakeFireDeprecated.","llMakeFountainDeprecated.","llMakeSmokeDeprecated.","llMD5String","llMessageLinked","llMinEventDelay","llModifyLand","llMoveToTarget","llOffsetTexture","llOpenRemoteDataChannel","llOverMyLand","llParseString2List","llParseStringKeepNulls","llParticleSystem","llPassCollisions","llPassTouches","llPlaySound","llPlaySoundSlave","llPointAt","llPow","llPreloadSound","llPushObject","llReleaseCamera","llReleaseControls","llRemoteDataReply","llRemoteDataSetRegion","llRemoteLoadScript","llRemoteLoadScriptPin","llRemoveInventory","llRemoveVehicleFlags","llRequestAgentData","llRequestInventoryData","llRequestPermissions","llResetOtherScript","llResetScript","llResetTime","llRezAtRoot","llRezObject","llRot2Angle","llRot2Axis","llRot2Euler","llRot2Fwd","llRot2Left","llRot2Up","llRotBetween","llRotLookAt","llRotTarget","llRotTargetRemove","llRotateTexture","llRound","llSameGroup","llSay","llScaleTexture","llScriptDanger","llSendRemoteData","llSensor","llSensorRemove","llSensorRepeat","llSetAlpha","llSetBuoyancy","llSetCameraAtOffset","llSetCameraEyeOffset","llSetColor","llSetDamage","llSetForce","llSetForceAndTorque","llSetHoverHeight","llSetInventoryPermMask","llSetLinkAlpha","llSetLinkColor","llSetLocalRot","llSetObjectDesc","llSetObjectName","llSetObjectPermMask","llSetParcelMusicURL","llSetPos","llSetPrimitiveParams","llSetRemoteScriptAccessPin","llSetRot","llSetScale","llSetScriptState","llSetSitText","llSetSoundQueueing","llSetSoundRadius","llSetStatus","llSetText","llSetTexture","llSetTextureAnim","llSetTimerEvent","llSetTorque","llSetTouchText","llSetVehicleFlags","llSetVehicleFloatParam","llSetVehicleRotationParam","llSetVehicleType","llSetVehicleVectorParam","llShout","llSin","llSitTarget","llSleep","llSoundDeprecated.","llSoundPreloadDeprecated.","llSqrt","llStartAnimation","llStopAnimation","llStopHover","llStopLookAt","llStopMoveToTarget","llStopPointAt","llStopSound","llStringLength","llStringToBase64","llSubStringIndex","llTakeCamera","llTakeControls","llTan","llTarget","llTargetOmega","llTargetRemove","llTeleportAgentHome","llToLower","llToUpper","llTriggerSound","llTriggerSoundLimited","llUnSit","llVecDist","llVecMag","llVecNorm","llVolumeDetect","llWater","llWhisper","llWind","llXorBase64Strings"
),
4 => array(
'string', 'integer', 'key', 'list', 'vector', 'rotation', 'float'
),
),
'SYMBOLS' => array(
'[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => true,
2 => true,
3 => true,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000FF;',
2 => 'color: #000080; font-weight: bold;',
3 => 'color: #800000;', //text-decoration: none; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: none; border-right-style: none; border-bottom-style: dashed; border-left-style: none; border-top-color: #000000; border-right-color: #000000; border-bottom-color: #000000; border-left-color: #000000;',
4 => 'color: #333399;'
),
'COMMENTS' => array(
1 => 'color: #339933; font-style: italic;',
2 => 'color: #339933;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #FF00FF;'
),
'METHODS' => array(
1 => 'color: #202020;',
2 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://secondlife.com/badgeo/wakka.php?wakka={FNAME}',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);

?>
_____________________
Co-Founder / Lead Developer
GigasSecondServer