http://direct.simswiki.info/index.php?title=0x0010&feed=atom&action=history0x0010 - Revision history2024-03-29T00:34:52ZRevision history for this page on the wikiMediaWiki 1.20.2http://direct.simswiki.info/index.php?title=0x0010&diff=53440&oldid=prevSophie-David: /* Use */ Clarifying that *Local* variable is used in Field 12011-10-24T19:13:28Z<p><span dir="auto"><span class="autocomment">Use: </span> Clarifying that *Local* variable is used in Field 1</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 19:13, 24 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 19:</td>
<td colspan="2" class="diff-lineno">Line 19:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|0||Qualify location||00:normal<br>01:out of world<br>02:normal in same room<br>03:along object vector<br>04:lateral to object vector<br>05:in routing slot in Param 0x00 (see operand 10)<br>06:in routing slot in Local 0x00 (see operand 10)<br>07:in literal routing slot 0x00 (see operand 10)<br>08:in global routing slot 0x00 (see operand 10)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|0||Qualify location||00:normal<br>01:out of world<br>02:normal in same room<br>03:along object vector<br>04:lateral to object vector<br>05:in routing slot in Param 0x00 (see operand 10)<br>06:in routing slot in Local 0x00 (see operand 10)<br>07:in literal routing slot 0x00 (see operand 10)<br>08:in global routing slot 0x00 (see operand 10)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|1||colspan="2"|qualifier on the variable for '''Start at'''</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|1||colspan="2"|qualifier on the <ins class="diffchange diffchange-inline">Local </ins>variable for '''Start at'''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|2 - bit 1||Controls variable containing object<br>to '''Find Location For'''||on: Stack Object, '''start at''' [[Sims 2 Local|Local variable]] (see operand 1)<br>off: Variable in operand 4, '''relative to''' Variable in operand 7.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|2 - bit 1||Controls variable containing object<br>to '''Find Location For'''||on: Stack Object, '''start at''' [[Sims 2 Local|Local variable]] (see operand 1)<br>off: Variable in operand 4, '''relative to''' Variable in operand 7.</div></td></tr>
<!-- diff cache key simswiki:diff:version:1.11a:oldid:53439:newid:53440 -->
</table>Sophie-Davidhttp://direct.simswiki.info/index.php?title=0x0010&diff=53439&oldid=prevSophie-David: /* Problems? */2011-10-24T19:11:04Z<p><span dir="auto"><span class="autocomment">Problems?</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 19:11, 24 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 69:</td>
<td colspan="2" class="diff-lineno">Line 69:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>For the most part, with a generic call to Find Location For, I wouldn't expect it to fail. Clearly, no empty tiles or all tiles meeting specified requirement for placement being full would cause a failure. If you have a generic request though and it appears to be failing, the problem may well be with the object that you are attempting to place. I have had errors because my object's Main failed. I suggest testing your object is placeable generally by buying it from the Buy Mode Catalog (temporarily making it buyable if needed) and placing it where you think this instruction should place it, to check all is well with the object.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>For the most part, with a generic call to Find Location For, I wouldn't expect it to fail. Clearly, no empty tiles or all tiles meeting specified requirement for placement being full would cause a failure. If you have a generic request though and it appears to be failing, the problem may well be with the object that you are attempting to place. I have had errors because my object's Main failed. I suggest testing your object is placeable generally by buying it from the Buy Mode Catalog (temporarily making it buyable if needed) and placing it where you think this instruction should place it, to check all is well with the object.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>You may find that if the '''Find Location For''' variable is not set to the Stack Object, the results are unpredictable. In this case the most common error is that the object you are attempting to place does not appear where <del class="diffchange diffchange-inline">is </del>should, but instead the reference object is displaced.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>You may find that if the '''Find Location For''' variable is not set to the Stack Object, the results are unpredictable. In this case the most common error is that the object you are attempting to place does not appear where <ins class="diffchange diffchange-inline">it </ins>should, but instead the reference object is displaced.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==See also==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==See also==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[Primitives]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[Primitives]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[SimAntics]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[SimAntics]]</div></td></tr>
</table>Sophie-Davidhttp://direct.simswiki.info/index.php?title=0x0010&diff=53437&oldid=prevSophie-David: /* Problems? */2011-10-24T15:21:34Z<p><span dir="auto"><span class="autocomment">Problems?</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:21, 24 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 69:</td>
<td colspan="2" class="diff-lineno">Line 69:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>For the most part, with a generic call to Find Location For, I wouldn't expect it to fail. Clearly, no empty tiles or all tiles meeting specified requirement for placement being full would cause a failure. If you have a generic request though and it appears to be failing, the problem may well be with the object that you are attempting to place. I have had errors because my object's Main failed. I suggest testing your object is placeable generally by buying it from the Buy Mode Catalog (temporarily making it buyable if needed) and placing it where you think this instruction should place it, to check all is well with the object.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>For the most part, with a generic call to Find Location For, I wouldn't expect it to fail. Clearly, no empty tiles or all tiles meeting specified requirement for placement being full would cause a failure. If you have a generic request though and it appears to be failing, the problem may well be with the object that you are attempting to place. I have had errors because my object's Main failed. I suggest testing your object is placeable generally by buying it from the Buy Mode Catalog (temporarily making it buyable if needed) and placing it where you think this instruction should place it, to check all is well with the object.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>You may find that if the <del class="diffchange diffchange-inline">[b]</del>Find Location For<del class="diffchange diffchange-inline">[/b] </del>variable is not set to the Stack Object, the results are unpredictable. In this case the most common error is that the object you are attempting to place does not appear where is should, but instead the reference object is displaced.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>You may find that if the <ins class="diffchange diffchange-inline">'''</ins>Find Location For<ins class="diffchange diffchange-inline">''' </ins>variable is not set to the Stack Object, the results are unpredictable. In this case the most common error is that the object you are attempting to place does not appear where is should, but instead the reference object is displaced.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==See also==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==See also==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[Primitives]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[Primitives]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[SimAntics]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[SimAntics]]</div></td></tr>
</table>Sophie-Davidhttp://direct.simswiki.info/index.php?title=0x0010&diff=53436&oldid=prevSophie-David: /* Problems? */2011-10-24T15:20:41Z<p><span dir="auto"><span class="autocomment">Problems?</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:20, 24 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 68:</td>
<td colspan="2" class="diff-lineno">Line 68:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Problems?==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Problems?==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>For the most part, with a generic call to Find Location For, I wouldn't expect it to fail. Clearly, no empty tiles or all tiles meeting specified requirement for placement being full would cause a failure. If you have a generic request though and it appears to be failing, the problem may well be with the object that you are attempting to place. I have had errors because my object's Main failed. I suggest testing your object is placeable generally by buying it from the Buy Mode Catalog (temporarily making it buyable if needed) and placing it where you think this instruction should place it, to check all is well with the object.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>For the most part, with a generic call to Find Location For, I wouldn't expect it to fail. Clearly, no empty tiles or all tiles meeting specified requirement for placement being full would cause a failure. If you have a generic request though and it appears to be failing, the problem may well be with the object that you are attempting to place. I have had errors because my object's Main failed. I suggest testing your object is placeable generally by buying it from the Buy Mode Catalog (temporarily making it buyable if needed) and placing it where you think this instruction should place it, to check all is well with the object.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">You may find that if the [b]Find Location For[/b] variable is not set to the Stack Object, the results are unpredictable. In this case the most common error is that the object you are attempting to place does not appear where is should, but instead the reference object is displaced.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==See also==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==See also==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[Primitives]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[Primitives]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[SimAntics]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*[[SimAntics]]</div></td></tr>
</table>Sophie-Davidhttp://direct.simswiki.info/index.php?title=0x0010&diff=50095&oldid=prevMogHughson: /* Use */2011-04-24T14:41:01Z<p><span dir="auto"><span class="autocomment">Use</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 14:41, 24 April 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 53:</td>
<td colspan="2" class="diff-lineno">Line 53:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|3 - bit 8||NW</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|3 - bit 8||NW</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|4||colspan="2"|Variable containing object to '''Find Location For'''. The choices are any of the many [[Sims 2 Variables|variables and attributes]] that are part of [[SimAntics]]. Where the variable type can have many of them, e.g. Local variables, operands 5 and 6 give the low and high order byte respectively.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|4||colspan="2"|Variable containing object to '''Find Location For'''. The choices are any of the many [[Sims 2 Variables|variables and attributes]] that are part of [[SimAntics]]. Where the variable type can have many of them, e.g. Local variables, operands 5 and 6 give the <ins class="diffchange diffchange-inline">[[Byte Order|</ins>low and high order byte<ins class="diffchange diffchange-inline">]] </ins>respectively.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|5 & 6||colspan="2"|qualifiers on the variable from operand 4, eg. Local(0xnnnn)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|5 & 6||colspan="2"|qualifiers on the variable from operand 4, eg. Local(0xnnnn)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|7||colspan="2"|'''"relative to"''' variable. The choices are any of the many [[Sims 2 Variables|variables and attributes]] that are part of [[SimAntics]]. Where the variable type can have many of them, e.g. Local variables, operands 8 and 9 give the low and high order byte respectively.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|7||colspan="2"|'''"relative to"''' variable. The choices are any of the many [[Sims 2 Variables|variables and attributes]] that are part of [[SimAntics]]. Where the variable type can have many of them, e.g. Local variables, operands 8 and 9 give the <ins class="diffchange diffchange-inline">[[Byte Order|</ins>low and high order byte<ins class="diffchange diffchange-inline">]] </ins>respectively.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|8 & 9||colspan="2"|qualifiers on the variable from operand 7, eg. Local(0xnnnn)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|8 & 9||colspan="2"|qualifiers on the variable from operand 7, eg. Local(0xnnnn)</div></td></tr>
</table>MogHughsonhttp://direct.simswiki.info/index.php?title=0x0010&diff=40204&oldid=prevMogHughson: /* Use */2010-01-31T16:20:53Z<p><span dir="auto"><span class="autocomment">Use</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 16:20, 31 January 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 19:</td>
<td colspan="2" class="diff-lineno">Line 19:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|0||Qualify location||00:normal<br>01:out of world<br>02:normal in same room<br>03:along object vector<br>04:lateral to object vector<br>05:in routing slot in Param 0x00 (see operand 10)<br>06:in routing slot in Local 0x00 (see operand 10)<br>07:in literal routing slot 0x00 (see operand 10)<br>08:in global routing slot 0x00 (see operand 10)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|0||Qualify location||00:normal<br>01:out of world<br>02:normal in same room<br>03:along object vector<br>04:lateral to object vector<br>05:in routing slot in Param 0x00 (see operand 10)<br>06:in routing slot in Local 0x00 (see operand 10)<br>07:in literal routing slot 0x00 (see operand 10)<br>08:in global routing slot 0x00 (see operand 10)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|1||colspan="2"|qualifier on the variable for Start at</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|1||colspan="2"|qualifier on the variable for <ins class="diffchange diffchange-inline">'''</ins>Start at<ins class="diffchange diffchange-inline">'''</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|2 - bit 1||Controls variable containing object<br>to Find Location For||on: Stack Object, start at [[Sims 2 Local|Local variable]] (see operand 1)<br>off: Variable in operand 4, relative to Variable in operand 7.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|2 - bit 1||Controls variable containing object<br>to <ins class="diffchange diffchange-inline">'''</ins>Find Location For<ins class="diffchange diffchange-inline">'''</ins>||on: Stack Object, <ins class="diffchange diffchange-inline">'''</ins>start at<ins class="diffchange diffchange-inline">''' </ins>[[Sims 2 Local|Local variable]] (see operand 1)<br>off: Variable in operand 4, <ins class="diffchange diffchange-inline">'''</ins>relative to<ins class="diffchange diffchange-inline">''' </ins>Variable in operand 7.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|2 - bit 2||Controls "prefer empty"||off: True<br>on: False (N.B. reversed from usual bit settings)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|2 - bit 2||Controls "prefer empty"||off: True<br>on: False (N.B. reversed from usual bit settings)</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 53:</td>
<td colspan="2" class="diff-lineno">Line 53:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|3 - bit 8||NW</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|3 - bit 8||NW</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|4||colspan="2"|Variable containing object to Find Location For. <del class="diffchange diffchange-inline">Can be </del>any of the [[Sims 2 Variables|variables]]. <del class="diffchange diffchange-inline">Qualified by </del>operands 5 and 6.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|4||colspan="2"|Variable containing object to <ins class="diffchange diffchange-inline">'''</ins>Find Location For<ins class="diffchange diffchange-inline">'''</ins>. <ins class="diffchange diffchange-inline">The choices are </ins>any of the <ins class="diffchange diffchange-inline">many </ins>[[Sims 2 Variables|variables <ins class="diffchange diffchange-inline">and attributes]] that are part of [[SimAntics</ins>]]. <ins class="diffchange diffchange-inline">Where the variable type can have many of them, e.g. Local variables, </ins>operands 5 and 6 <ins class="diffchange diffchange-inline">give the low and high order byte respectively</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|5 & 6||colspan="2"|qualifiers on the variable from operand 4, eg. Local(0xnnnn)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|5 & 6||colspan="2"|qualifiers on the variable from operand 4, eg. Local(0xnnnn)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|7||colspan="2"|"relative to" variable. <del class="diffchange diffchange-inline">Can be </del>any of the [[Sims 2 Variables|variables]]. <del class="diffchange diffchange-inline">Qualified by </del>operands 8 and 9.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|7||colspan="2"|<ins class="diffchange diffchange-inline">'''</ins>"relative to"<ins class="diffchange diffchange-inline">''' </ins>variable. <ins class="diffchange diffchange-inline">The choices are </ins>any of the <ins class="diffchange diffchange-inline">many </ins>[[Sims 2 Variables|variables <ins class="diffchange diffchange-inline">and attributes]] that are part of [[SimAntics</ins>]]. <ins class="diffchange diffchange-inline">Where the variable type can have many of them, e.g. Local variables, </ins>operands 8 and 9 <ins class="diffchange diffchange-inline">give the low and high order byte respectively</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|8 & 9||colspan="2"|qualifiers on the variable from operand 7, eg. Local(0xnnnn)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|8 & 9||colspan="2"|qualifiers on the variable from operand 7, eg. Local(0xnnnn)</div></td></tr>
</table>MogHughsonhttp://direct.simswiki.info/index.php?title=0x0010&diff=40200&oldid=prevMogHughson: /* Use */2010-01-31T15:06:03Z<p><span dir="auto"><span class="autocomment">Use</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:06, 31 January 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 63:</td>
<td colspan="2" class="diff-lineno">Line 63:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|10||colspan="2"|Variable for routing slot</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|10||colspan="2"|Variable for routing slot</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|-</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|<del class="diffchange diffchange-inline">3 </del>thru 15||colspan="2"|Unused?</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|<ins class="diffchange diffchange-inline">11 </ins>thru 15||colspan="2"|Unused?</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>MogHughsonhttp://direct.simswiki.info/index.php?title=0x0010&diff=40199&oldid=prevMogHughson at 15:05, 31 January 20102010-01-31T15:05:14Z<p></p>
<p><b>New page</b></p><div>{{Primitive<br />
|name=Find Location For<br />
|opcode=0x0010<br />
|expansion=The Sims 2<br />
}}<br />
<br />
==Overview==<br />
This [[Primitives|primitive]] provides a way to place an object inside the simulation from [[SimAntics]]. For example, if you just want to find an empty floor tile for an object, rather than putting the object on a table where you would likely use the [[0x0071|Snap Into]] primitive.<br />
<br />
==Use==<br />
There is no instruction wizard for this instruction, so the following table details the meaning of each of the operands.<br />
<br />
[[Image:BHAVoperands.JPG|thumb|300px|right|Operand editing]]<br />
<br />
{| class="wikitable" <br />
|-<br />
!Operand!!Description!!Operand Values<br />
|-<br />
|0||Qualify location||00:normal<br>01:out of world<br>02:normal in same room<br>03:along object vector<br>04:lateral to object vector<br>05:in routing slot in Param 0x00 (see operand 10)<br>06:in routing slot in Local 0x00 (see operand 10)<br>07:in literal routing slot 0x00 (see operand 10)<br>08:in global routing slot 0x00 (see operand 10)<br />
|-<br />
|1||colspan="2"|qualifier on the variable for Start at<br />
|-<br />
|2 - bit 1||Controls variable containing object<br>to Find Location For||on: Stack Object, start at [[Sims 2 Local|Local variable]] (see operand 1)<br>off: Variable in operand 4, relative to Variable in operand 7.<br />
|-<br />
|2 - bit 2||Controls "prefer empty"||off: True<br>on: False (N.B. reversed from usual bit settings)<br />
|-<br />
|2 - bit 3||Controls "user editable"||off: False<br>on: True<br />
|-<br />
|2 - bit 4||Controls "facing"||Compass direction set using operand 3<br />
|-<br />
|2 - bit 5||Controls "on level ground"||off: False<br>on: True<br />
|-<br />
|2 - bit 6||Controls "with empty border"||off: False<br>on: True<br />
|-<br />
|2 - bit 7||Controls "begin in front of refobj"||off: False<br>on: True<br />
|-<br />
|2 - bit 8||Controls "with line of sight to center"||off: False<br>on: True<br />
|-<br />
|3 - bit 1||rowspan="8"|Compass direction for "facing".<br>''It appears you can set on multiple<br>bits, but I haven`t tried it out to see<br>what it means if you do''||N<br />
|-<br />
|3 - bit 2||NE<br />
|-<br />
|3 - bit 3||E<br />
|-<br />
|3 - bit 4||SE<br />
|-<br />
|3 - bit 5||S<br />
|-<br />
|3 - bit 6||SW<br />
|-<br />
|3 - bit 7||W<br />
|-<br />
|3 - bit 8||NW<br />
|-<br />
|4||colspan="2"|Variable containing object to Find Location For. Can be any of the [[Sims 2 Variables|variables]]. Qualified by operands 5 and 6.<br />
|-<br />
|5 & 6||colspan="2"|qualifiers on the variable from operand 4, eg. Local(0xnnnn)<br />
|-<br />
|7||colspan="2"|"relative to" variable. Can be any of the [[Sims 2 Variables|variables]]. Qualified by operands 8 and 9.<br />
|-<br />
|8 & 9||colspan="2"|qualifiers on the variable from operand 7, eg. Local(0xnnnn)<br />
|-<br />
|10||colspan="2"|Variable for routing slot<br />
|-<br />
|3 thru 15||colspan="2"|Unused?<br />
|}<br />
<br />
==Problems?==<br />
For the most part, with a generic call to Find Location For, I wouldn't expect it to fail. Clearly, no empty tiles or all tiles meeting specified requirement for placement being full would cause a failure. If you have a generic request though and it appears to be failing, the problem may well be with the object that you are attempting to place. I have had errors because my object's Main failed. I suggest testing your object is placeable generally by buying it from the Buy Mode Catalog (temporarily making it buyable if needed) and placing it where you think this instruction should place it, to check all is well with the object.<br />
<br />
==See also==<br />
*[[Primitives]]<br />
*[[SimAntics]]</div>MogHughson