Jump to content

Developer Mode: Difference between revisions

m
→‎Using the console: moved console activation keys to a table; the old method of making the key's symbols really big in the article body was messing with line spacing
(wording tweaks, removing unnecessary verbiage, renaming some sections, tweaking the section hierarchy)
m (→‎Using the console: moved console activation keys to a table; the old method of making the key's symbols really big in the article body was messing with line spacing)
Line 137: Line 137:


==Using the console==
==Using the console==
By default, Oni auto-binds the "console" toggle to the key to the left of the numeric row. On U.S. QWERTY keyboards, this is the key with a grave accent, <span style="font-size:200%; top:0.3em; position:relative">`</span>, in the lowercase position and a tilde, <span style="font-size:175%">~</span>, in the uppercase position. It is usually called the "tilde key" by users, and perhaps even elsewhere on this wiki; however, you would have to hold Shift to type a tilde, and the console is activated by just pressing the key without Shift, thus it is actually the "grave accent key" which activates the console.
{|border=1 cellspacing=0 cellpadding=2 style="float:right"
|width=95px align=center style="border-width:2px 2px 0px 2px" |<span style="font-size:175%">~</span>
|width=95px align=center style="border-width:2px 2px 0px 2px" |<span style="font-size:150%">§</span>
|width=95px align=center style="border-width:2px 2px 0px 2px" |<span style="font-size:150%">°</span>
|-
|align=center style="border-width:0px 2px 2px 2px" |<span style="font-size:200%; top:0.3em; position:relative">`</span>
|align=center style="border-width:0px 2px 2px 2px" |<span style="font-size:150%">½</span>
|align=center style="border-width:0px 2px 2px 2px" |<span style="font-size:150%">^</span>
|-
|align=center|U.S.<br>QWERTY
|align=center|Danish<br>QWERTY
|align=center|German<br>QWERTZ
|}
By default, Oni auto-binds the "console" toggle to the key to the left of the numeric row. On U.S. QWERTY keyboards, this is the key with a grave accent, `, in the lowercase position and a tilde, ~, in the uppercase position. It is usually called the "tilde key" by users even though it's really the "grave accent key".


On non-U.S. keyboards, that key may not be recognized. Just add a line like "bind leftalt to console" to '''key_config.txt''' in your Oni folder and you'll be able to open the console with that key. In some cases, this bound key will not ''close'' the console; however, pressing the grave accent key, oddly enough, may work. Or you can press the appropriate key for your layout:
On non-U.S. keyboards, that key may not be recognized. Just add a line like "bind leftalt to console" to '''key_config.txt''' in your Oni folder and you'll be able to open the console with that key. In some cases, this bound key will not ''close'' the console; however, pressing the grave accent key, oddly enough, may work. Or you can press the appropriate key for your layout:


Danish QWERTY: The <span style="font-size:150%">½</span> key to the left of the numeric row.
Danish QWERTY: The ½ key to the left of the numeric row.


German QWERTZ: The circumflex accent key, <span style="font-size:150%">^</span>. In Windows, if playing Oni in windowed mode, you should use "rightalt" as your alternative console binding because "leftalt" activates the window's menu, stealing Oni's controls.
German QWERTZ: The circumflex accent key, ^. In Windows, if playing Oni in windowed mode, you should use "rightalt" as your alternative console binding because "leftalt" activates the window's menu, stealing Oni's controls.


===Console output glitch===
===Console output glitch===