http://simswiki.info/index.php?title=BCON&feed=atom&action=historyBCON - Revision history2024-03-29T15:41:51ZRevision history for this page on the wikiMediaWiki 1.20.2http://simswiki.info/index.php?title=BCON&diff=59699&oldid=prevKiwi tea at 17:09, 17 September 20122012-09-17T17:09:04Z<p></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 17:09, 17 September 2012</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 17:</td>
<td colspan="2" class="diff-lineno">Line 17:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><!-- previously .... #REDIRECT [[42434F4E]]--></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><!-- previously .... #REDIRECT [[42434F4E]]--></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>[[Category:Modding]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:<ins class="diffchange diffchange-inline">Sims 2 </ins>Modding]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:InternalFormats]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:InternalFormats]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FormatsByName]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FormatsByName]]</div></td></tr>
</table>Kiwi teahttp://simswiki.info/index.php?title=BCON&diff=50032&oldid=prevMogHughson at 11:39, 22 April 20112011-04-22T11:39:16Z<p></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 11:39, 22 April 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Constants are always useful when programming. [[SimAntics]] is no different. Rather than hard-coding numbers in your [[BHAV]]s when you are not exactly sure what the number needs to be yet, instead use a constant, then you only need to change the constant later, rather than finding all the places where the number is hard-coded. For example, if we look at the coffee cup object, it has a BCON file which details the amounts by which various motives change when you drink coffee.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Constants are always useful when programming. [[SimAntics]] is no different. Rather than hard-coding numbers in your [[BHAV]]s when you are not exactly sure what the number needs to be yet, instead use a constant, then you only need to change the constant later, rather than finding all the places where the number is hard-coded. For example, if we look at the coffee cup object, it has a BCON file which details the amounts by which various motives change when you drink coffee.</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>[[Image:BCONinSimPE.JPG|frame|Constants used to help in tuning behaviours]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Image:BCONinSimPE.JPG|frame<ins class="diffchange diffchange-inline">|left</ins>|Constants used to help in tuning behaviours]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br clear="all"/></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br clear="all"/></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 colspan="2" class="diff-lineno">Line 13:</td>
<td colspan="2" class="diff-lineno">Line 13:</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>The labels help hugely when looking at the use of constants in your BHAV code. See [[TRCN]] for how to create labels.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The labels help hugely when looking at the use of constants in your BHAV code. See [[TRCN]] for how to create labels.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Image:BCONinBHAVinSimPE.JPG|frame|Labels on constants aid readability]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Image:BCONinBHAVinSimPE.JPG|frame<ins class="diffchange diffchange-inline">|left</ins>|Labels on constants aid readability]]</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><!-- previously .... #REDIRECT [[42434F4E]]--></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><!-- previously .... #REDIRECT [[42434F4E]]--></div></td></tr>
</table>MogHughsonhttp://simswiki.info/index.php?title=BCON&diff=40135&oldid=prevMogHughson at 14:27, 25 January 20102010-01-25T14:27:25Z<p></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:27, 25 January 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 10:</td>
<td colspan="2" class="diff-lineno">Line 10:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br clear="all"/></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br clear="all"/></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>Editing these constants is very easy, you simply select the line in the list and edit the number in the Hex or Dec entry boxes on the left. When using BCONs in a BHAV, it is refered to by the line number, e.g. Const 0x1003:0x02 in the example below. This is refering to a BCON with [[SimPE_Resource_Editing#Instance|Instance]] value of 0x1003 and the line numbered 0x02 within it. Bear this in mind if you decide to reorder a pre-existing BCON resource - since all the BHAVs using it will then be refering to the wrong thing!!</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Editing these constants is very easy, you simply select the line in the list and edit the number in the Hex or Dec entry boxes on the left. When using BCONs in a BHAV, it is refered to by the line number, e.g. Const 0x1003:0x02 in the example below. This is refering to a BCON with [[SimPE_Resource_Editing#Instance|Instance]] value of 0x1003 and the line numbered 0x02 within it. Bear this in mind if you decide to reorder a pre-existing BCON resource - since all the BHAVs using it will then be refering to the wrong thing!! <ins class="diffchange diffchange-inline">If you try to refer to a BCON resource that doesn't exist you will get the "[[Object Errors#102. Invalid constant|Invalid constant]]" error.</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>The labels help hugely when looking at the use of constants in your BHAV code. See [[TRCN]] for how to create labels.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The labels help hugely when looking at the use of constants in your BHAV code. See [[TRCN]] for how to create labels.</div></td></tr>
</table>MogHughsonhttp://simswiki.info/index.php?title=BCON&diff=32935&oldid=prevMogHughson at 23:45, 8 July 20092009-07-08T23:45:09Z<p></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 23:45, 8 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>#REDIRECT [[42434F4E]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">{{Resource tgi</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 class="diffchange diffchange-inline">|hex code = [[42434F4E]]</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 class="diffchange diffchange-inline">|short = BCON</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 class="diffchange diffchange-inline">|long = Behavior constant</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 class="diffchange diffchange-inline">}}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Constants are always useful when programming. [[SimAntics]] is no different. Rather than hard-coding numbers in your [[BHAV]]s when you are not exactly sure what the number needs to be yet, instead use a constant, then you only need to change the constant later, rather than finding all the places where the number is hard-coded. For example, if we look at the coffee cup object, it has a BCON file which details the amounts by which various motives change when you drink coffee.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">[[Image:BCONinSimPE.JPG|frame|Constants used to help in tuning behaviours]]</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 class="diffchange diffchange-inline"><br clear="all"/></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Editing these constants is very easy, you simply select the line in the list and edit the number in the Hex or Dec entry boxes on the left. When using BCONs in a BHAV, it is refered to by the line number, e.g. Const 0x1003:0x02 in the example below. This is refering to a BCON with [[SimPE_Resource_Editing#Instance|Instance]] value of 0x1003 and the line numbered 0x02 within it. Bear this in mind if you decide to reorder a pre-existing BCON resource - since all the BHAVs using it will then be refering to the wrong thing!!</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">The labels help hugely when looking at the use of constants in your BHAV code. See [[TRCN]] for how to create labels.</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 class="diffchange diffchange-inline">[[Image:BCONinBHAVinSimPE.JPG|frame|Labels on constants aid readability]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><!-- previously .... </ins>#REDIRECT [[42434F4E]]<ins class="diffchange diffchange-inline">--></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>[[Category:Modding]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Modding]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:InternalFormats]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:InternalFormats]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FormatsByName]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:FormatsByName]]</div></td></tr>
</table>MogHughsonhttp://simswiki.info/index.php?title=BCON&diff=4536&oldid=prevJaxad0127: We don't need two articles on the same topic2006-07-11T20:08:27Z<p>We don't need two articles on the same topic</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 20:08, 11 July 2006</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">{{OldWikiEntry}} ====BCON====</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">#REDIRECT [[42434F4E]]</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: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">64 - Filename (null terminated)</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">[[Category:Modding]]</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">1 - Item Count</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[<ins class="diffchange diffchange-inline">Category</ins>:<ins class="diffchange diffchange-inline">InternalFormats</ins>]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">1 - Flag (either 0x00 or 0x80)</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:<ins class="diffchange diffchange-inline">FormatsByName</ins>]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; 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">''for each Constant''</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; 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">2 - Constant Value</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; 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> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; 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">Same format as used in TS1</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; 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">(see </del>[[<del class="diffchange diffchange-inline">http</del>:<del class="diffchange diffchange-inline">''simtech.sourceforge.net/tech/bcon.html SimTech</del>]]<del class="diffchange diffchange-inline">) </del>[[Category:<del class="diffchange diffchange-inline">Modding</del>]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
</table>Jaxad0127http://simswiki.info/index.php?title=BCON&diff=3808&oldid=prevDelphy: Auto-inserted from WakkaWikki2004-09-20T20:05:51Z<p>Auto-inserted from WakkaWikki</p>
<p><b>New page</b></p><div>{{OldWikiEntry}} ====BCON====<br />
<br />
64 - Filename (null terminated)<br />
1 - Item Count<br />
1 - Flag (either 0x00 or 0x80)<br />
<br />
''for each Constant''<br />
2 - Constant Value<br />
<br />
Same format as used in TS1<br />
(see [[http:''simtech.sourceforge.net/tech/bcon.html SimTech]]) [[Category:Modding]]</div>Delphy