WoWBench/FAQ: Difference between revisions

15 bytes removed ,  9 January 2008
m
no edit summary
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<small>[[WoWBench]] &raquo; FAQ</small>
''Feel free to add a question of your own!''


''Feel free to add a question of your own!''  __NOTOC__
== WoWBench Frequently Asked Questions ==


{{tocright}}
=== Huh?! ===
 
= WoWBench Frequently Asked Questions =
 
== Huh?! ==
<div style="margin-left: 3%;">
<div style="margin-left: 3%;">


Line 55: Line 51:
</div>
</div>


== Installing ==
=== Installing ===
<div style="margin-left: 3%;">
<div style="margin-left: 3%;">


Line 70: Line 66:
</div>
</div>


== Using ==
=== Using ===
<div style="margin-left: 3%;">
<div style="margin-left: 3%;">


Line 87: Line 83:
:Whatever you want to do.
:Whatever you want to do.
:* Call functions in your AddOn directly from the prompt:
:* Call functions in your AddOn directly from the prompt:
::: {{Code|MyAddOn_DoSomething("someParameter")}}
::: <code>MyAddOn_DoSomething("someParameter")</code>
:* Make Alice, Bob or Charles (the default player characters) say something:  
:* Make Alice, Bob or Charles (the default player characters) say something:  
::: {{Code|say Alice Help! Help! The horrible Murloc Warrior is hitting me!}}
::: <code>say Alice Help! Help! The horrible Murloc Warrior is hitting me!</code>
:* Fire an event:  
:* Fire an event:  
::: {{Code|fire DUEL_REQUESTED Charles}}
::: <code>fire DUEL_REQUESTED Charles</code>
:* Run a slash command:  
:* Run a slash command:  
::: {{Code|/myaddon dosomething}}
::: <code>/myaddon dosomething</code>
:* Look at the frame that popped up:  
:* Look at the frame that popped up:  
::: {{Code|look MyAddOnMainFrame}}
::: <code>look MyAddOnMainFrame</code>
:* Click a button in it:  
:* Click a button in it:  
::: {{Code|click MyAddOnMainFrameIWinButton}}
::: <code>click MyAddOnMainFrameIWinButton</code>


:And much more :-)
:And much more :-)
Line 106: Line 102:


:* You can automatically run wowbench command line scripts by giving names of .txt files on the command line, e.g.:
:* You can automatically run wowbench command line scripts by giving names of .txt files on the command line, e.g.:
::{{code|wowbench MyAddon script.txt}}
::<code>wowbench MyAddon script.txt</code>


:* You can load and run Lua code on demand from the command prompt (or from inside a script file):
:* You can load and run Lua code on demand from the command prompt (or from inside a script file):
::{{code|&gt; dofile("myluacode.lua")}}
::<code>&gt; dofile("myluacode.lua")</code>
   
   


</div>
</div>


== Problems ==
=== Problems ===
<div style="margin-left: 3%;">
<div style="margin-left: 3%;">


{{faqq}}I'm getting ''very'' weird errors / It seems like some stuff isn't even loading like it should?
{{faqq}}I'm getting ''very'' weird errors / It seems like some stuff isn't even loading like it should?


* Try the "-f" switch: {{code|lua wowbench.lua '''-f''' MyAddOn}} to force a re-parse of .toc and .xml files in case the dependencies haven't been updated properly. (WoWBench precompiles .xml files into .xml.lua files to speed subsequent loads up.)
* Try the "-f" switch: <code>lua wowbench.lua '''-f''' MyAddOn</code> to force a re-parse of .toc and .xml files in case the dependencies haven't been updated properly. (WoWBench precompiles .xml files into .xml.lua files to speed subsequent loads up.)




</div>
</div>


== Contribute? ==
=== Contribute? ===
<div style="margin-left: 3%;">
<div style="margin-left: 3%;">


Line 139: Line 135:
</div>
</div>


= See also =
== See also ==


* [[WoWBench/Getting started]]
* [[WoWBench/Getting started]]


[[Category:WoWBench|FAQ]]
[[Category:WoWBench|FAQ]]
Anonymous user