Commit Graph

69 Commits (192781e83be83d0a26a6ea377d9dd07cd76892d8)

Author SHA1 Message Date
Diva Canto 9316e0b867 These 2 files want to be committed. 2010-07-08 16:07:37 -07:00
dahlia d06b75fe3b fix a potential division by zero 2010-07-08 11:10:08 -07:00
Melanie Thielker 0de8291ceb Fix a dumb little sign error that makes a LSL wiki example fail 2010-07-02 09:43:38 -07:00
Melanie 5d2f854288 Remove a superfluous array creation 2010-03-04 10:38:03 +00:00
Justin Clark-Casey (justincc) 00800c59d3 Apply last two patches from http://opensimulator.org/mantis/view.php?id=3522
These patch should allow people using systems that do not have their locale set to En_US or similar to use OpenSim without suffering effects such as being a million miles up in the air on login.
The problem was caused by parsing strings without forcing that parse to be En_US (hence different decimal and digit group symbols were causing problems).
Thanks very much to VikingErik for doing the legwork on this fix and phacelia for spotting it in the first place.
2010-02-12 23:13:35 +00:00
Melanie 86a429bc44 Add the LSL List Size property 2009-12-24 16:44:12 +00:00
John Hurliman 8151190a45 * Removing ODEPrim and ODECharacter GetHashCode() overrides since they were based on something that could change
* Tweaked a few other GetHashCode() overrides to bring them in line with MSDN recommendations
2009-10-20 10:56:15 -07:00
Arthur Valadares 7923fd29a0 Adds osDrawPolygon to OSSL. Works a little different then other OS Drawing functions, this one has no start and end point, but a number of points that will form the desired polygon. Only FilledPolygon implemented so far.
* Also added some LSL transparent type conversion, as it's done in LSL scripting (string to integer, float to string, etc)
2009-08-21 21:12:22 -03:00
Jeff Ames a23d64dec1 Formatting cleanup. 2009-06-10 04:28:56 +00:00
Jeff Ames 840de6c036 Minor: Change OpenSim to OpenSimulator in older copyright headers and LICENSE.txt. 2009-06-01 06:37:14 +00:00
lbsa71 99bf4ce72f * Fixed a number of culture-variant bugs in lsl implicit type conversions. 2009-04-09 07:33:05 +00:00
lbsa71 0366cc1601 * argh. reverted untested fix that snuck into the last commit 2009-04-09 07:14:20 +00:00
lbsa71 ed33878a0f * tagged some more database tests as such 2009-04-09 07:11:49 +00:00
idb 1fd57b39df Correct casts so that the target id in the at_target event matches the original target id.
Fixes Mantis #2861
2009-03-07 10:37:15 +00:00
Justin Clarke Casey 9dadf7adfd * Apply http://opensimulator.org/mantis/view.php?id=3165
* Corrects behaviour of llListSort()
* Thanks DoranZemlja!
2009-02-16 16:31:07 +00:00
idb 67b0ba71da Add an override for the % operator.
Fixes Mantis #3157
2009-02-14 18:09:08 +00:00
idb aa2521623c Add an override of the ! operator to lsl integer.
Fixes Mantis #3041
2009-01-25 10:17:26 +00:00
idb afc48ce39c Added overrides for == and != for list.
Fixes Mantis #3002
2009-01-20 00:10:39 +00:00
Melanie Thielker 96d6c6b1f3 Change list type to compare length instead of references.
Fixes Mantis #3002
2009-01-17 18:35:40 +00:00
idb 1ba76f57ba Made the casting of stings to floats more robust and work more like SL.
Added some more tests that casts previously failed on.
Fixes Mantis #2789
2008-12-12 11:50:12 +00:00
Charles Krinke 07ba2f4363 Mantis #2530. Thank you kindly, Idb for a patch that:
The attached patch changes the casts from explicit to implicit.
2008-11-03 01:57:10 +00:00
Justin Clarke Casey 87b8f327aa * Apply http://opensimulator.org/mantis/view.php?id=2440
* 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 23:15:16 +00:00
Justin Clarke Casey e3864de621 * Apply http://opensimulator.org/mantis/view.php?id=2521
* Fix not tests in LSL which require implicit casting (see mantis for an example)
2008-11-01 22:18:26 +00:00
Justin Clarke Casey 7fdd6b74e3 * Apply patch in http://opensimulator.org/mantis/view.php?id=2494
* Introduces missing casts for float, integer, vector, quaterion and string to list
* Thanks idb
2008-10-29 20:09:02 +00:00
Charles Krinke a59ca765fe Thank you kindly, Idb for a patch that solves:
LSL - Bitwise operators OR and XOR do not work 
on integer variables
2008-10-27 00:59:26 +00:00
Melanie Thielker 11477db59e Fix LSL bitwise Or 2008-10-12 01:00:26 +00:00
Melanie Thielker bd05b932b1 Add shift operator overloads to LSLInteger. If you get error messages when
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-11 17:09:26 +00:00
Homer Horwitz 6452c6c20b Add a + operator to LSLString, otherwise you will end up with CIL strings if
you have expressions with strings.
2008-10-11 15:17:49 +00:00
Melanie Thielker 3012bfa2a2 Mantis #1922
Thank you, idb, for a patch that addresses hex digits erroneously being
recognized as valid and parsed in a decimal number
2008-09-28 19:58:54 +00:00
Melanie Thielker a042302100 Mantis #2250
Make ambiguous implicit conversion from LSLInteger to uint explicit
2008-09-24 11:16:53 +00:00
Melanie Thielker 44e566260c Mantis #2243
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-23 11:41:34 +00:00
Justin Clarke Casey 451bd5a0ca * minor: warnings removal 2008-09-21 20:56:39 +00:00
Melanie Thielker 83b030229e Mantis #2232
Thank you, idb, for a patch that fixes an overflow issue in casting
string -> int for both engines, and adds tests!
2008-09-21 15:54:58 +00:00
Melanie Thielker 8407d7fbd2 Mantis #2230
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-21 12:18:30 +00:00
Melanie Thielker dccdeb57bb Fix some string to float casting nastiness. The "train script" now
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-13 16:16:08 +00:00
Melanie Thielker 7f3a98b76d Fix string parameters to functions taking lists as arguments. LSL
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-13 12:58:44 +00:00
Melanie Thielker a68e34b558 Mantis #511
Allow parsing of hexadecimal int constants from strings.
Also fixes a DBNull value in the touch type field crashing the sim
2008-09-10 06:14:38 +00:00
Melanie Thielker 4f85a9aa72 Fix llResetScript() and the reset button to actually restore global
variables to their initializer values, rather then zeroing them.
Also handles lists properly now.
2008-09-09 04:16:52 +00:00
Melanie Thielker 084ea99be6 Fix string -> int cast to variable 2008-09-09 01:01:45 +00:00
Melanie Thielker 6447d7132f Adapt the unit tests to the new list rules, change some casts to
new method for testing
2008-09-08 19:29:16 +00:00
Melanie Thielker e7abde70a2 Mantis #2147
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-08 18:15:36 +00:00
Teravus Ovares 7d89e12293 * This is the fabled LibOMV update with all of the libOMV types from JHurliman
* 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-06 07:52:41 +00:00
Charles Krinke 947242f476 Mantis#2126. Thank you kindly, Ralphos for a patch that addresses:
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-05 23:26:35 +00:00
Melanie Thielker ef27c8817f Mantis #2112
Thannk you, ralphos, for a patch to clean up list item type handling
and add a missing explicit cast in Shared/
2008-09-03 18:57:06 +00:00
Melanie Thielker f13a48fe1c Fix regex for string->int cast to accept leading spaces and a sign 2008-09-02 06:43:16 +00:00
Melanie Thielker 61978649ec Change some chat output functions so that text is truncated at
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-02 03:43:18 +00:00
Melanie Thielker a5d2674a43 This is an attempt to fix the handling of constants in LSL.
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-09-01 23:33:12 +00:00
Mike Mazur 225067d8b6 Sync OpenSim/Region/ScriptEngine/{Common,Shared}/LSL_Types.cs. 2008-08-19 05:30:10 +00:00
Mike Mazur a513cba60b Apply Godfrey's patch (originally in r5872) to Shared/LSL_Types.cs as well. 2008-08-19 05:25:07 +00:00
Jeff Ames 6ef9d4da90 Formatting cleanup. 2008-08-18 00:39:10 +00:00