<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>SLUniverse Forums</title>
		<link>http://www.sluniverse.com/php/vb/</link>
		<description>Discuss scripting for SL and other platforms</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 11:30:09 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.sluniverse.com/php/vb/images/styles/bingo/misc/rss.jpg</url>
			<title>SLUniverse Forums</title>
			<link>http://www.sluniverse.com/php/vb/</link>
		</image>
		<item>
			<title>need help parsing strided list</title>
			<link>http://www.sluniverse.com/php/vb/scripting/37108-need-help-parsing-strided-list.html</link>
			<pubDate>Fri, 20 Nov 2009 23:39:19 GMT</pubDate>
			<description><![CDATA[i'm working on a rezzer and have names, relative  positions & relative rotations(as item rot*rezzer rot) stored in a list but am having problems...]]></description>
			<content:encoded><![CDATA[<div>i'm working on a rezzer and have names, relative  positions &amp; relative rotations(as item rot*rezzer rot) stored in a list but am having problems parsing it corectly to rez the items the relevant code functions is as follows<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">list&nbsp;</span><span style="color: #0000BB">l_NamesOffsetsRots&nbsp;</span><span style="color: #007700">=&nbsp;&#91;</span><span style="color: #DD0000">"Blue&nbsp;print&nbsp;chair&nbsp;Schloss&nbsp;edition"</span><span style="color: #007700">,&nbsp;&lt;-</span><span style="color: #0000BB">3.03798</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">2.53828</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00500</span><span style="color: #007700">&gt;,&nbsp;&lt;-</span><span style="color: #0000BB">0.27060</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">0.65313</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">0.27060</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.65343</span><span style="color: #007700">&gt;,&nbsp;</span><span style="color: #DD0000">"Blue&nbsp;print&nbsp;Sofa&nbsp;Schloss&nbsp;edition"</span><span style="color: #007700">,&nbsp;&lt;</span><span style="color: #0000BB">0.50510</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">2.93832</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00500</span><span style="color: #007700">&gt;,&nbsp;</span><span style="color: #DD0000">"Blue&nbsp;print&nbsp;Sofa&nbsp;Schloss&nbsp;edition"</span><span style="color: #007700">,&nbsp;&lt;-</span><span style="color: #0000BB">0.00508</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">2.93826</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00500</span><span style="color: #007700">&gt;,&nbsp;&lt;</span><span style="color: #0000BB">0.70711</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">0.00011</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.70711</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">0.00011</span><span style="color: #007700">&gt;,&nbsp;</span><span style="color: #DD0000">"Schloss&nbsp;2prim&nbsp;hanging&nbsp;light"</span><span style="color: #007700">,&nbsp;&lt;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3.13873</span><span style="color: #007700">&gt;,&nbsp;&lt;</span><span style="color: #0000BB">1.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">&gt;,&nbsp;</span><span style="color: #DD0000">"Coffe&nbsp;table&nbsp;glass&nbsp;rectangluar"</span><span style="color: #007700">,&nbsp;&lt;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.81854</span><span style="color: #007700">&gt;,&nbsp;&lt;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">&gt;,&nbsp;</span><span style="color: #DD0000">"Lilac&nbsp;Rose&nbsp;1x64&nbsp;ceramic&nbsp;pot"</span><span style="color: #007700">,&nbsp;&lt;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1.39771</span><span style="color: #007700">&gt;,&nbsp;&lt;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">0.70711</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.00000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.70711</span><span style="color: #007700">&gt;&#93;;<br /><br /></span><span style="color: #0000BB">RezFurniture</span><span style="color: #007700">()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">integer&nbsp;i_num_of_items&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">llGetListLength</span><span style="color: #007700">(</span><span style="color: #0000BB">l_NamesOffsetsRots</span><span style="color: #007700">)/</span><span style="color: #0000BB">3</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;initalize&nbsp;index&nbsp;counters<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">integer&nbsp;n&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">integer&nbsp;p&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">integer&nbsp;r&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #FF8000">//&nbsp;&nbsp;&nbsp;&nbsp;rotation&nbsp;v_load_rot&nbsp;=&nbsp;llEuler2Rot(v_load_rot_deg&nbsp;*&nbsp;DEG_TO_RAD);<br />//&nbsp;&nbsp;&nbsp;&nbsp;rotation&nbsp;r_rot_diff&nbsp;=&nbsp;llGetRot()&nbsp;*&nbsp;v_load_rot;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">for(</span><span style="color: #0000BB">i_num_of_items</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i_num_of_items&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;&nbsp;--</span><span style="color: #0000BB">i_num_of_items</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;parse&nbsp;strided&nbsp;list&nbsp;for&nbsp;names,&nbsp;rel&nbsp;pos&nbsp;&amp;&nbsp;rel&nbsp;rot<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">string&nbsp;s_item_name&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">llList2String</span><span style="color: #007700">(</span><span style="color: #0000BB">l_NamesOffsetsRots</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">n</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">vector&nbsp;v_rel_pos&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">llList2Vector</span><span style="color: #007700">(</span><span style="color: #0000BB">l_NamesOffsetsRots</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">p</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">rotation&nbsp;v_rel_rot&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">llList2Rot</span><span style="color: #007700">(</span><span style="color: #0000BB">l_NamesOffsetsRots</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">r</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;incrment&nbsp;indexes<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">n&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">n&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">llWhisper</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"n&nbsp;is&nbsp;now"&nbsp;</span><span style="color: #007700">+&nbsp;(string)</span><span style="color: #0000BB">n</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//debug&nbsp;code<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">p&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">p&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">r&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">r&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;rez&nbsp;item<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">llRezAtRoot</span><span style="color: #007700">(</span><span style="color: #0000BB">s_item_name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">llGetPos</span><span style="color: #007700">()&nbsp;+&nbsp;</span><span style="color: #0000BB">v_rel_pos</span><span style="color: #007700">,&nbsp;&lt;</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">&gt;,&nbsp;</span><span style="color: #0000BB">v_rel_rot&nbsp;</span><span style="color: #007700">/&nbsp;</span><span style="color: #0000BB">llGetRot</span><span style="color: #007700">(),&nbsp;</span><span style="color: #0000BB">rez_parm</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">llSleep</span><span style="color: #007700">(</span><span style="color: #0000BB">0.2</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>the first item rezes correctly but the 2ond with wrong rotation and 3rd results in script error looking  for a rotation instead of name, the indexes are incrementing correctly but are not being correctly used :yell:</div>

]]></content:encoded>
			<category domain="http://www.sluniverse.com/php/vb/scripting/">Scripting</category>
			<dc:creator>Samantha Fuller</dc:creator>
			<guid isPermaLink="true">http://www.sluniverse.com/php/vb/scripting/37108-need-help-parsing-strided-list.html</guid>
		</item>
		<item>
			<title>Hud Based Shine</title>
			<link>http://www.sluniverse.com/php/vb/scripting/37077-hud-based-shine.html</link>
			<pubDate>Fri, 20 Nov 2009 14:52:29 GMT</pubDate>
			<description><![CDATA[okay so i purchased a color, texture, and glow changing hud script. i have a shine reporting script but for some reason even though i've added the...]]></description>
			<content:encoded><![CDATA[<div>okay so i purchased a color, texture, and glow changing hud script. i have a shine reporting script but for some reason even though i've added the shine to the hud for buttons etc it still says it's not a recognized prim, any ideas...i can't paste the hud script without violating TOS...sorry</div>

]]></content:encoded>
			<category domain="http://www.sluniverse.com/php/vb/scripting/">Scripting</category>
			<dc:creator>reaper2666</dc:creator>
			<guid isPermaLink="true">http://www.sluniverse.com/php/vb/scripting/37077-hud-based-shine.html</guid>
		</item>
		<item>
			<title>Web hosting that SL likes...</title>
			<link>http://www.sluniverse.com/php/vb/scripting/36937-web-hosting-second-life-likes.html</link>
			<pubDate>Tue, 17 Nov 2009 13:57:17 GMT</pubDate>
			<description><![CDATA[Its something I haven't really begun doing for myself yet, SL->web and web->SL communications, but since my web hosting subscription with the current...]]></description>
			<content:encoded><![CDATA[<div>Its something I haven't really begun doing for myself yet, <acronym title="Second Life">SL</acronym>-&gt;web and web-&gt;<acronym title="Second Life">SL</acronym> communications, but since my web hosting subscription with the current company is up in a few months, I thought I would like to shop around for a service that is known to be <acronym title="Second Life">SL</acronym> friendly (who knows, maybe the current one is).... something that supports PHP and is open to communications from <acronym title="Second Life">SL</acronym>, etc etc... <br />
 <br />
Does anyone have any advice on who to look at?</div>

]]></content:encoded>
			<category domain="http://www.sluniverse.com/php/vb/scripting/">Scripting</category>
			<dc:creator>jeaniesing</dc:creator>
			<guid isPermaLink="true">http://www.sluniverse.com/php/vb/scripting/36937-web-hosting-second-life-likes.html</guid>
		</item>
	</channel>
</rss>
