<div dir="ltr">Hello,<div>I am sharing on this list hoping that some brains could help me figure this one out. I think I have hit a modulus divisor bug. Please let me know what you think. This had a significant impact on my scripts ... the whole thing froze after I made a simple change to a single variable and am wondering if I have hit some constraints that I am not aware of. Basically I am trying to pass parameters to a rezzed child object (see below). I generate values at the parent prim and try to get those values back from the rezzed child. Any thoughts appreciated.</div>

<div style>Thank you.</div><div><br></div><div><div><font size="1">integer commChannel =54;</font></div><div><font size="1">integer modulus_divisor = 1000000000; </font></div><div><font size="1">integer objectPinIndex = 23;</font></div>

<div><font size="1">integer rezParameter;</font></div><div><font size="1">integer repro_commChannel;</font></div><div><font size="1">integer repro_objectPinIndex;</font></div><div><font size="1"><br></font></div><div><font size="1">default</font></div>

<div><font size="1">{</font></div><div><font size="1">    state_entry()</font></div><div><font size="1">    {</font></div><div><font size="1">        rezParameter = -1*((commChannel*modulus_divisor)+(objectPinIndex));</font></div>

<div><font size="1">        repro_commChannel = -1*((integer)rezParameter)/modulus_divisor;</font></div><div><font size="1">        repro_objectPinIndex = -1*((integer)rezParameter)%modulus_divisor;</font></div><div><font size="1">        </font></div>

<div><font size="1">        llOwnerSay("modulus="+(string)modulus_divisor);</font></div><div><font size="1">        llOwnerSay("objectPinIndex="+(string)objectPinIndex);</font></div><div><font size="1">        llOwnerSay("commChannel="+(string)commChannel);</font></div>

<div><font size="1">        llOwnerSay("REPRODUCING VALUES"); </font></div><div><font size="1">        llOwnerSay("repro_objectPinIndex="+(string)repro_objectPinIndex);</font></div><div><font size="1">        llOwnerSay("repro_commChannel="+(string)repro_commChannel);</font></div>

<div><font size="1">    }</font></div><div><font size="1">    </font></div><div><font size="1">   </font></div><div><font size="1">}</font></div><div><font size="1"><br></font></div><div><font size="1">output follows:</font></div>

<div><font size="1"><br></font></div><div><font size="1">modulus=100000000 (eight zeroes)</font></div><div><font size="1">[06:57] Primitive: modulus=100000000</font></div><div><font size="1">[06:57] Primitive: objectPinIndex=23</font></div>

<div><font size="1">[06:57] Primitive: commChannel=54</font></div><div><font size="1">[06:57] Primitive: REPRODUCING VALUES</font></div><div><font size="1">[06:57] Primitive: repro_objectPinIndex=5032727</font></div><div>

<font size="1">[06:57] Primitive: repro_commChannel=11</font></div><div><font size="1"><br></font></div><div><font size="1"><br></font></div><div><font size="1"><br></font></div><div><font size="1">now change modulus = 10000000</font></div>

<div><font size="1"><br></font></div><div><font size="1">output is:</font></div><div><font size="1"><br></font></div><div><font size="1">Primitive: modulus=10000000 (seven zeroes)</font></div><div><font size="1">[06:56] Primitive: objectPinIndex=23</font></div>

<div><font size="1">[06:56] Primitive: commChannel=54</font></div><div><font size="1">[06:56] Primitive: REPRODUCING VALUES</font></div><div><font size="1">[06:56] Primitive: repro_objectPinIndex=23</font></div><div><font size="1">[06:56] Primitive: repro_commChannel=54</font></div>

<div><font size="1"><br></font></div><div><font size="1"><br></font></div><div><font size="1">also, modulus_divisor = 29999999 works</font></div><div><font size="1">modulus_divisor = 39699999 also works; this appears to be the experimental upper bound before modulus_divisor stops working.</font></div>

<div><font size="1">I did not expect this.</font></div><div><br></div>-- <br><font color="#999999">'Consider how the lilies grow. They do not labor or spin.'</font><br><b>Rameshsharma Ramloll</b> PhD, CEO CTO DeepSemaphore LLC, Affiliate <i>Research Associate Professor</i>, Idaho State University, Pocatello, ID 83209 Tel: 208-240-0040<br>

<div><a href="http://deepsemaphore.posterous.com/" target="_blank">Blog</a>, <a href="http://www.linkedin.com/in/rameshramloll" target="_blank">LinkedIn</a>, <a href="http://www.deepsemaphore.com" target="_blank">DeepSemaphore LLC</a>, <a href="https://plus.google.com/103652369558830540272/about" target="_blank">Google+ profile</a></div>


</div></div>