aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-09-09Fix llResetScript() and the reset button to actually restore globalMelanie Thielker1-0/+2
variables to their initializer values, rather then zeroing them. Also handles lists properly now.
2008-09-09Fix string -> int cast to variableMelanie Thielker1-3/+8
2008-09-08Adapt the unit tests to the new list rules, change some casts toMelanie Thielker1-1/+6
new method for testing
2008-09-08Mantis #2147Melanie Thielker1-4/+3
Thank you, ralphos, for a patch the adapts llSetColor and friends to a change in the underlying types. Also, thank you for a much cleaner way of casting types out of lists, which I will adopt throughout.
2008-09-06* This is the fabled LibOMV update with all of the libOMV types from JHurlimanTeravus Ovares1-1/+1
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
2008-09-05Mantis#2126. Thank you kindly, Ralphos for a patch that addresses:Charles Krinke1-1/+63
Types extracted from a LSL_Types.list have to be down-cast initially to the exact type of value type object that the Object actually is. This would make for very cumbersome, ugly code when extracting list parameter items in ll functions where a few implicit conversions should be applied such as key -> LSLString and LSLInteger -> LSLFloat (but not LSLFloat -> LSLInteger). This patch adds a set of GetXXXItem member functions to the LLS_Type.list class, where XXX is the name of the LSL_Type to be extracted: LSLFLoat, LSLInteger etc. All take a single, int parameter that is the item number to be extracted.
2008-09-03Mantis #2112Melanie Thielker1-1/+6
Thannk you, ralphos, for a patch to clean up list item type handling and add a missing explicit cast in Shared/
2008-09-02Fix regex for string->int cast to accept leading spaces and a signMelanie Thielker1-1/+1
2008-09-02Change some chat output functions so that text is truncated atMelanie Thielker1-1/+8
1000 chars to avoid the exception thrown by libomv at 1100 chars. Change string->int conversion so it copes with non-numeric chars after the number and no longer uses a float to parse the value.
2008-09-01This is an attempt to fix the handling of constants in LSL.Melanie Thielker1-19/+19
It wraps constants in new LSLType(x), so that lists with constant values are processed correctly. Contains changes to the lsl.parser.cs that are not (yet) reflected in opensim-libs, since this experimental patch affects XEngine only. Also contains nuts.
2008-08-19Sync OpenSim/Region/ScriptEngine/{Common,Shared}/LSL_Types.cs.Mike Mazur1-91/+96
2008-08-19Apply Godfrey's patch (originally in r5872) to Shared/LSL_Types.cs as well.Mike Mazur1-2/+94
2008-08-18Formatting cleanup.Jeff Ames1-11/+11
2008-08-16Mantis#1963. Thank you kindly, Krtaylor for a patch that solves:Charles Krinke1-0/+10
XEngine missing string constructor for LSLInteger and LSLFloat
2008-07-31-make ZERO_VECTOR and ZERO_ROTATION static readonly properties so they can beMike Mazur1-0/+24
used in scripts -cast from bool to LSL{Integer,Float,String} so functions such as `integer isZero(integer x) { return (x == 0); }` work -progress on issue 1863
2008-07-31More LSL_Types implicit/explicit cast changes. Fix issue 1854.Mike Mazur1-3/+3
2008-07-28When casting strings to int, use double.Parse() as strings may be floats. WithMike Mazur1-2/+4
this commit, issue 1822 should be fixed.
2008-07-28-implement LSLString -> Quaternion explicit castMike Mazur1-0/+10
-sync Shared/LSL_Types.cs with Common/LSL_Types.cs -get the test script in issue 1822 to compile
2008-07-28-copy LSL_Types tests from Common/ to Shared/Mike Mazur1-6/+6
-fix some whitespace/formatting
2008-07-28Refresh LSLTypes.cs in Shared/ from the one in Common/, which wasMelanie Thielker1-100/+45
more complete.
2008-07-27Conversion from double to LSLInteger needs to be explicit. Fix issue 1826.Mike Mazur1-1/+1
2008-07-27Implement LSLFloat {+,-,*,/} LSLFloat operations. Fix issues 1532, 1701, 1824 &Mike Mazur1-0/+20
1832.
2008-07-25Add casts from integer to float. Fix issue 1822.Mike Mazur1-0/+5
2008-07-25-add test for newly introduced cast operators (issue 1818)Mike Mazur1-4/+5
-fix formatting -remove CompilerTest test since it seems to fail randomly
2008-07-25Add mingchen's fix for string->float cast to Shared/Melanie Thielker1-0/+4
2008-07-24Replace implicit casts from LSLFloat to int and uint which were removed inMike Mazur1-0/+10
r5487. Also put the unit tests back for Bamboo to execute them, let's see how this goes.
2008-07-18Implement cast to LSL_Types.LSLInteger from double. Fix issue 1770.Mike Mazur1-0/+5
2008-07-16Mantis#1755. Thank you kindly, Matth for a patch that solves:Charles Krinke1-14/+54
When using math operators +,-,*,/ in an LSL script with an LSLFloat and an integer literal the wrong result is returned. This patch adds operators to the LSLFloat type to handle this case.
2008-07-10Mantis#1673. Thank you kindly, Matth for a patch that:Charles Krinke1-0/+20
LSLInteger + literal integer is not an LSLInteger. The included patch fixes the issue: LSLInteger + literal integer is not an LSLInteger (also fixed for -,*,/)
2008-06-28Comment out StringTest until we use it somewhere.Charles Krinke1-16/+16
2008-06-25Minor formatting cleanup.Jeff Ames1-1/+1
2008-06-24* Applied patch from Melanie, mantis issue #1581 - "Refactor LSL language, ↵lbsa711-7/+14
api and compiler out of XEngine" "First stage in a major Script Engine refactor, that will result in the LSL implementaions ebing reconverged. Not there yet, but one major part is done." Thank you, Melanie!
2008-06-09Update svn properties. Formatting cleanup.Jeff Ames1-1/+1
2008-06-07Patch for mantis#1493: Several patches to xengine. Thanks Melanie!Adam Johnson1-7/+53
2008-06-05Mantis#1437. Patch 3 of 4. Thank you kindly, Melanie for:Charles Krinke1-9/+64
Corrects the XEngine's script startup semantics. Completes llRequestAgentData Implements llDetectedLink Fixes a few minor issues
2008-06-04Formatting cleanup, minor refactoring, svn properties.Jeff Ames1-4/+4
2008-05-30* This is Melanie's XEngine script engine. I've not tested this real well, ↵Teravus Ovares1-1/+47
however, it's confirmed to compile and OpenSimulator to run successfully without this script engine active.
2008-05-16Formatting cleanup.Jeff Ames1-11/+11
2008-05-16Thank you very much, mjm for :Charles Krinke1-14/+9
Fixing LSL multiplication and division operators for quaternions
2008-05-14Formatting cleanup.Jeff Ames1-12/+10
2008-05-12Formatting cleanup.Jeff Ames1-12/+12
2008-05-11* Changed implicit string conversion to LSL_Types.LSLString in money event ↵Teravus Ovares1-0/+3
of the key of the payer to an Explicit one. * Fixes Mantis: #1045
2008-05-09From: Michael Osias <mosias@us.ibm.com>Justin Clarke Casey1-0/+12
Stop .net generating ambiguous operator errors when two integers are compared for equality in LSL
2008-05-09Thank you, Melanie for a patch that helps conversionCharles Krinke1-0/+15
from a string to a vector in OSSL.
2008-05-06De-tabify source.Jeff Ames1-188/+188
2008-05-02Thank you kindly, Melanie for a patch to solveCharles Krinke1-35/+42
llParticleSystem and osDynamicTexture issues.
2008-05-01revert changeset 4469 as this breaks the script engine.Sean Dague1-7/+1
2008-05-01* Applied Mantis#1106 - fix missing cast from LSLInteger to uint, make int ↵Adam Frisby1-1/+7
cast more generic (Thanks Melanie!)
2008-04-30Patch from Melanie: 0001077: [PATCH] LSL types cannot be cast implicitly or ↵Teravus Ovares1-52/+124
explicitly in many cases Thanks Melanie! * Also, I moved the event parser and re-writer to a separate static object. More work will be done here shortly.
2008-04-29* Applying melanie's List2Vector and List2Rot patch. Added a routine in ↵Teravus Ovares1-0/+6
the Quaternion constructors to catch 0,0,0,0 quaternions and convert them to 0,0,0,1 (as 0,0,0,0 is implicitly converted to 0,0,0,1 in LSL and will crash libsl if left which will in turn crash the simulator)