WoWBench/Getting started: Difference between revisions

(upgraded code template)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<small>[[WoWBench]] &raquo; Getting started</small>
{{tocright}}
{{tocright}}


Line 6: Line 4:
<div style="margin-left: 3%;">
<div style="margin-left: 3%;">


=== Example startup ===
Getting up and running with WoWBench is really only a matter of starting it.
<div style="margin-left: 3%;">
 
=== Startup with [[AddOn Studio]]: ===
a. <code>View > Lua Console</code>
 
[[File:AddOn_Studio_2022_for_WoW_-_Features_Lua_Console_Menu_-_220412.0.png]]
 
b. <code>Lua Console > Choose shell... > Bench</code>
 
[[File:AddOn_Studio_2022_for_WoW_-_Features_Lua_Console_Bench_Button_-_220412.0.png]]
 
c. WoWBench loaded in AddOn Studio
 
[[File:AddOn_Studio_2022_for_WoW_-_Features_Lua_Console_Bench_Console_-_220412.0.png]]
 
Link for getting back to these docs can be found at the top of the Bench console log:


Getting up and running with WoWBench is really only a matter of starting it, e.g.:
[[File:AddOn Studio 2022 for WoW - Features Lua Console Bench Docs Link - 220412.1.png]]


=== Startup with the command line: ===
:<code>C:\wowbench>'''lua wowbench.lua -f'''</code>
:<code>C:\wowbench>'''lua wowbench.lua -f'''</code>


Line 51: Line 64:
</div><div style="clear:left;"></div>
</div><div style="clear:left;"></div>


== Running ==
At this point, you have a vanilla WoW emulator up and running.  
At this point, you have a vanilla WoW emulator up and running.  


Line 89: Line 103:
  ''would produce help for the '''look''' command''
  ''would produce help for the '''look''' command''
</div><div style="clear:left;"></div>
</div><div style="clear:left;"></div>


</div>
</div>
Line 234: Line 247:
==== Summary of interaction commands ====
==== Summary of interaction commands ====
<div style="margin: 0 0 1em 2%;">
<div style="margin: 0 0 1em 2%;">
{{infobox|'''Behind the scenes:''' Internally to WoWBench, a game-world object is just another UI object with event handlers.
{{Notebox|'''Behind the scenes:''' Internally to WoWBench, a game-world object is just another UI object with event handlers.
* The classes representing game-world objects emulate game engine behavior when receiving events.
* The classes representing game-world objects emulate game engine behavior when receiving events.
* Game-world objects are defined in world.xml and world.lua.}}
* Game-world objects are defined in world.xml and world.lua.}}