Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modding_tips [2012/07/08 17:49] (current)
184.70.162.50 created
Line 1: Line 1:
 +====== Getting Started ======
 +Some useful tips when you start modding
 +
 +===== Debug Mode =====
 +Adding the line
 +<code>
 +DEBUGMODE 1
 +</code>
 +to the USER.TXT file in My Documents/My Games/BBCBA will turn on debug mode, which adds additional tooltips, logging, and other useful info.
 +
 +===== Script Tools =====
 +Editing scripts is much easier if you grab the recommended tools.  You get syntax highlighting, bracket checking, and it's all free!
 +[[http://www.slitherinebravo.net/GameWiki/doku.php?id=stub_engine#tools]]
 +
 +===== Script Logging =====
 +You can get your scripts to output information to a debug text pane.  You do this by using the Log function in the script.
 +<code>
 +Log("Checking", GetUnitX(id), GetUnitY(id), GetUnitActive(id), GetTileLOS(GetUnitX(id), GetUnitY(id), 1)) ;
 +</code>
 +Note that a logging call can have between 0 and 4 numeric values after the description string, which will be output to the debug pane.  To toggle the debug pane, hit F6 when in battle.
  
modding_tips.txt · Last modified: 2012/07/08 17:49 by 184.70.162.50
 
Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki