View Full Version : Silly bug in Lscript 2.6?

09-08-2003, 06:40 AM
Hi everyone!

I've finished two really interesting plugins (I will post them tomorrow, one of them bevels multiple polys, the other can round corners in flat polys, intended for use in 2D shapes before lathing or extruding)

However, in this version of Lscript I can't substract!!!

As an example, if I want to get the previous element of an array,
I use something like this:

value = a[k-1];

However, this gives me error (Modeler crashes, and LSIDE recognizes it as a sintactical error), the only solution is to declare a global variable and then use it.

one = 1;
value = a[k-1]; //this works fine

It also works if you add -1

value = a[k+(-1)]; //this also works

How can I fix this!? It happens all arround when trying to substract integers

I also have a simple doubt:

How can I create a patch within a mesh edit session? The only solution I've found is creating polys and the use togglepatches, but this needs and additional undo. I want my bevel plugin to work directly with subpatches, but I don't want it to need more than one undo (because this will trash hours of work in order to not to use smoothshift and will difficult the refresh routine)


09-12-2003, 09:46 AM
I think you need to put space, like:
value = a[k - 1];
pretty sure about that...