Testing: Difference between revisions

From OpenMW Wiki
Jump to navigation Jump to search
(→‎Journal: code cleanup; put quest ID in quotes (some of them contain spaces))
(→‎General Commands: code cleanup; copyedits; consistent presentation; link cleanup and updating)
Line 22: Line 22:
== General Commands==
== General Commands==


The full list of console commands may be found at http://www.uesp.net/morrow/editor/mw_cscommands.shtml, and the current implementation status in OpenMW at [[Scripting_(status)]].
UESPwiki has {{UESP|Morrowind:Console|basic console tips}} and {{UESP|Tes3Mod:Categorical Function List#Console|a full list}} of console commands. For the current implementation status of these commands in OpenMW, see [[Scripting (status)]].


Note that OpenMW's console supports tab completion, so in most cases you don't have to fully type a command / name. For example, try entering the following:
Note that OpenMW's console supports tab completion, so in most cases you don't have to fully type a command / name. For example, entering <code>COC "Balmora, Caius <kbd>&lt;Tab&gt;</kbd></code> results in <code>COC "Balmora, Caius Cosades' House"</code>
 
'''coc "Balmora, Caius <Tab>''' results in '''coc "Balmora, Caius Cosades' House"'''


To obtain all valid IDs for a particular command, you can use ESMTool or OpenMW-CS (OpenCS), both included [https://github.com/OpenMW/openmw/tree/master/apps in the OpenMW repository].
To obtain all valid IDs for a particular command, you can use ESMTool or OpenMW-CS (OpenCS), both included [https://github.com/OpenMW/openmw/tree/master/apps in the OpenMW repository].
Line 32: Line 30:
=== Extended Tooltips ===
=== Extended Tooltips ===


The '''tfh''' ('''ToggleFullHelp''') command will reveal more information in item tooltips, such as the owner of the item and the script attached to it, if any.
The <samp>TFH</samp> (<samp>ToggleFullHelp<samp>) command will reveal more information in item tooltips, such as the owner of the item and the script attached to it, if any.


=== Cells ===
=== Cells ===
Teleport: the commands are '''coc''', to be used with [[Morrowind_Interior_Cell_Names|cell names]] and '''coe''' for exterior cells with the provided coordinates ('''coc "Seyda Neen"''' or '''coc Balmora''', or '''coe 2,3''').
Teleporting commands are:
* <samp>COC</samp> (<samp>CenterOnCell</samp>), to be used with [[Morrowind Interior Cell Names|cell names]] (interior or exterior), e.g.: <code>COC "Seyda Neen, Arrille's Tradehouse"</code> or <code>COC Balmora</code>
* <samp>COE</samp> (<samp>CenterOnExterior</samp>) for world-map <var>x,y</var> coordinates for exterior cells, e.g.: <code>COE 2,3</code>


=== Physics ===
=== Physics ===
* Use the console command '''ToggleCollision''' (or the short version '''tcl''') to toggle gravity and physics interactions.  
* Use the console command <samp>TCL</samp> (<samp>ToggleCollision</samp>) to toggle gravity and physics interactions (i.e., clipping – you can fly through walls, floors, etc.).  
* '''ToggleCollisionGrid/tcg''' reveals the collision geometry.
* <samp>TCG</samp> (<samp>ToggleCollisionGrid</samp>) reveals the collision geometry.


=== Environment ===
=== Environment ===

Revision as of 21:27, 16 September 2017

For anyone who wants to give OpenMW a try, this will get you started in testing things out.

Game Arguments

The game has terminal/command line arguments available when you run it through the executable that are can be added with the form "openmw --something --something-else"

--help gives a good overview of options available at launch.

--skip-menu skips the introduction tutorial and generates a default character at a default cell.

--start="Seyda Neen" can be combined with --skip-menu to start the game at the designated starting cell.

--activate-dist=value allows to override the maximum activation distance for objects the player is looking at. The normal value is the GMST iMaxActivateDist (192 by default). Increasing this value can speed up testing.

--script-run=filename will execute all console commands in the specified file upon starting a game. Applies to regular newly started games, but also when using the --skip-menu argument. For example, this can be used to set up your new testing characters with items, spells, etc.

Arguments can also be added to the user's openmw.cfg (See Paths), in the form of something=value, for example: skip-menu=1, start=Seyda Neen

On Mac OS, these commands must be run as such ./OpenMW.app/Contents/MacOS/openmw --help

General Commands

UESPwiki has basic console tips and a full list of console commands. For the current implementation status of these commands in OpenMW, see Scripting (status).

Note that OpenMW's console supports tab completion, so in most cases you don't have to fully type a command / name. For example, entering COC "Balmora, Caius <Tab> results in COC "Balmora, Caius Cosades' House"

To obtain all valid IDs for a particular command, you can use ESMTool or OpenMW-CS (OpenCS), both included in the OpenMW repository.

Extended Tooltips

The TFH (ToggleFullHelp) command will reveal more information in item tooltips, such as the owner of the item and the script attached to it, if any.

Cells

Teleporting commands are:

  • COC (CenterOnCell), to be used with cell names (interior or exterior), e.g.: COC "Seyda Neen, Arrille's Tradehouse" or COC Balmora
  • COE (CenterOnExterior) for world-map x,y coordinates for exterior cells, e.g.: COE 2,3

Physics

  • Use the console command TCL (ToggleCollision) to toggle gravity and physics interactions (i.e., clipping – you can fly through walls, floors, etc.).
  • TCG (ToggleCollisionGrid) reveals the collision geometry.

Environment

You can alter global variables with console syntax of the form set variable to value (e.g., set timescale to 2000) and reveal their current value by typing their name. Interesting global variables to tinker with are timescale for the game speed (default is 30) and gamehour for the game hour.

ChangeWeather sets the weather in a certain region. Look it up in the UESP wiki for the definition and examples.

GUI

Journal

You can populate the journal by talking to quest-offering NPCs or through the console with a command of the form Journal, "A2_4_MiloGone", 10 (i.e., Journal, "QuestID", QuestStage).

Debugger

If you are running the game with a debugger to analyze a segmentation fault you should run the game with the --no-grab argument to avoid the game locking up the mouse input when it crashes.

For example with gdb:

 gdb ./openmw
 run --no-grab