aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-04-09* Fixed a number of culture-variant bugs in lsl implicit type conversions.lbsa711-9/+11
2009-04-09* argh. reverted untested fix that snuck into the last commitlbsa711-2/+1
2009-04-09* tagged some more database tests as suchlbsa711-1/+2
2009-03-07Correct casts so that the target id in the at_target event matches the ↵idb1-0/+5
original target id. Fixes Mantis #2861
2009-02-16* Apply http://opensimulator.org/mantis/view.php?id=3165Justin Clarke Casey1-125/+109
* Corrects behaviour of llListSort() * Thanks DoranZemlja!
2009-02-14Add an override for the % operator.idb1-0/+6
Fixes Mantis #3157
2009-01-25Add an override of the ! operator to lsl integer.idb1-0/+5
Fixes Mantis #3041
2009-01-20Added overrides for == and != for list.idb1-0/+24
Fixes Mantis #3002
2009-01-17Change list type to compare length instead of references.Melanie Thielker1-0/+12
Fixes Mantis #3002
2008-12-12Made the casting of stings to floats more robust and work more like SL.idb1-14/+18
Added some more tests that casts previously failed on. Fixes Mantis #2789
2008-11-03Mantis #2530. Thank you kindly, Idb for a patch that:Charles Krinke1-5/+5
The attached patch changes the casts from explicit to implicit.
2008-11-01* Apply http://opensimulator.org/mantis/view.php?id=2440Justin Clarke Casey1-4/+27
* The attached patch changes the LSLInteger operator overrides for == and != to return LSLIntegers 1 or 0 instead of a bool and adds similar operator overrides for >, <, >= and <= * Thanks idb!
2008-11-01* Apply http://opensimulator.org/mantis/view.php?id=2521Justin Clarke Casey1-0/+5
* Fix not tests in LSL which require implicit casting (see mantis for an example)
2008-10-29* Apply patch in http://opensimulator.org/mantis/view.php?id=2494Justin Clarke Casey1-0/+25
* Introduces missing casts for float, integer, vector, quaterion and string to list * Thanks idb
2008-10-27Thank you kindly, Idb for a patch that solves:Charles Krinke1-0/+6
LSL - Bitwise operators OR and XOR do not work on integer variables
2008-10-12Fix LSL bitwise OrMelanie Thielker1-0/+6
2008-10-11Add shift operator overloads to LSLInteger. If you get error messages whenMelanie Thielker1-0/+10
using << and >> in scripts, this will fix it. rm bin/*.dll ; rm bin/ScriptEngines/*.dll ; rm bin/ScriptEngines/*/*.dll then rebuild and reinstall
2008-10-11Add a + operator to LSLString, otherwise you will end up with CIL strings ifHomer Horwitz1-0/+5
you have expressions with strings.
2008-09-28Mantis #1922Melanie Thielker1-1/+1
Thank you, idb, for a patch that addresses hex digits erroneously being recognized as valid and parsed in a decimal number
2008-09-24Mantis #2250Melanie Thielker1-1/+1
Make ambiguous implicit conversion from LSLInteger to uint explicit
2008-09-23Mantis #2243Melanie Thielker1-8/+10
Thank you, tyre, for a patch that refactors LSL to use a unified set of method signatures and type names, reorders methods and removes unused and adds new method stubs.
2008-09-21* minor: warnings removalJustin Clarke Casey1-1/+1
2008-09-21Mantis #2232Melanie Thielker1-21/+26
Thank you, idb, for a patch that fixes an overflow issue in casting string -> int for both engines, and adds tests!
2008-09-21Mantis #2230Melanie Thielker1-0/+12
The result of constants arithmetic can be a CLI type. This allows floating point CLI types to be parsed out of lists properly.
2008-09-13Fix some string to float casting nastiness. The "train script" nowMelanie Thielker1-1/+11
works. Also makes llGetFreeMemory return the constant 16384. LLGetFreeMemory is useless in SL, as it never goes up, only down. So, the only thing it is used for, in practice, is to detect an imminent stack/heap collision, a danger we don't have.
2008-09-13Fix string parameters to functions taking lists as arguments. LSLMelanie Thielker1-0/+4
functions return CLI strings, which, in the case of lists, don't get wrapped. Therefore, the list had to be able to deal with that CLI type here. The correct fix would be to change all LSL function returns to LSL types.
2008-09-10Mantis #511Melanie Thielker1-4/+8
Allow parsing of hexadecimal int constants from strings. Also fixes a DBNull value in the touch type field crashing the sim
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