Difference between revisions of "GameSpeed"

From TTWiki
Jump to navigationJump to search
m (5 revisions)
m (MoS edits)
Line 1: Line 1:
 
 
'''''Allow for the game speed to be changed dynamically using keyboard hotkeys'''''
 
'''''Allow for the game speed to be changed dynamically using keyboard hotkeys'''''
   
 
'''TTDPatch version 2.0.1 alpha 23 or later'''
=Game Speed=
 
 
Allow for the game speed to be changed dynamically using keyboard hotkeys
 
 
'''2.0.1 alpha 23 or later'''
 
   
-=Switch=-
+
==Switch==
   
Configuration file: gamespeed on|off|<speed>
+
Configuration file: gamespeed on|off|<speed>
   
 
Command line: -Yg
 
Command line: -Yg
   
-=Description=-
+
==Description==
   
This switch lets you change the speed of the game ingame, ranging from one-eighth of normal speed to as fast as your computer can run the simulation. It uses the [[MoreHotkeys]] mechanism to change the speed, so that switch must be enabled as well. &nbsp;Since TTDPatch 2.0.1 alpha 49, it takes an optional parameter &lt;speed&gt; that controls the initial setting, from -3 (slowest) to +3 (fastest).
+
This switch lets you change the speed of the game ingame, ranging from one-eighth of normal speed to as fast as your computer can run the simulation. It uses the [[MoreHotkeys]] mechanism to change the speed, so that switch must be enabled as well. Since TTDPatch 2.0.1 alpha 49, it takes an optional parameter <speed> that controls the initial setting, from -3 (slowest) to +3 (fastest).
   
By default you can use the &quot;Q&quot; key to slow the game down by a factor 2, the &quot;E&quot; key to speed up the game by a factor 2 and the &quot;W&quot; key to reset the game to normal speed.
+
By default you can use the "Q" key to slow the game down by a factor 2, the "E" key to speed up the game by a factor 2 and the "Q" key to reset the game to normal speed.
   
 
These keys can be changed to your liking using the `ttdptxt' mechanism described in [[MoreHotkeys]] and in [[CustomIngameTexts]]
 
These keys can be changed to your liking using the `ttdptxt' mechanism described in [[MoreHotkeys]] and in [[CustomIngameTexts]]
   
If you have a ttdpttxt.txt file from an older version of TTDPatch, you have to change the &quot;hotkeylistwin&quot; line. &nbsp;Change the characters between the &quot;x&quot; and the &quot;!&quot; to be &quot;qwe&quot;, for example change this:
+
If you have a ttdpttxt.txt file from an older version of TTDPatch, you have to change the "hotkeylistwin" line. Change the characters between the "!" and the "!" to be "qwe", for example change this:
   
<pre>-+hotkeylistwin=&quot;x &nbsp; !@#$t%1234567890-=`\\\00&quot;+-</pre>
+
<pre>-+hotkeylistwin="x   !@#$t%1234567890-=`\\\00"+-</pre>
   
 
into this:
 
into this:
   
<pre>-+hotkeylistwin=&quot;xqwe!@#$t%1234567890-=`\\\00&quot;+-</pre>
+
<pre>-+hotkeylistwin="xqwe!@#$t%1234567890-=`\\\00"+-</pre>
   
 
After this, run mkpttxt.exe again.
 
After this, run mkpttxt.exe again.

Revision as of 22:44, 13 June 2011

Allow for the game speed to be changed dynamically using keyboard hotkeys

TTDPatch version 2.0.1 alpha 23 or later

Switch

Configuration file: gamespeed on|off|<speed>

Command line: -Yg

Description

This switch lets you change the speed of the game ingame, ranging from one-eighth of normal speed to as fast as your computer can run the simulation. It uses the MoreHotkeys mechanism to change the speed, so that switch must be enabled as well. Since TTDPatch 2.0.1 alpha 49, it takes an optional parameter <speed> that controls the initial setting, from -3 (slowest) to +3 (fastest).

By default you can use the "Q" key to slow the game down by a factor 2, the "E" key to speed up the game by a factor 2 and the "Q" key to reset the game to normal speed.

These keys can be changed to your liking using the `ttdptxt' mechanism described in MoreHotkeys and in CustomIngameTexts

If you have a ttdpttxt.txt file from an older version of TTDPatch, you have to change the "hotkeylistwin" line. Change the characters between the "!" and the "!" to be "qwe", for example change this:

-+hotkeylistwin="x   !@#$t%1234567890-=`\\\00"+-

into this:

-+hotkeylistwin="xqwe!@#$t%1234567890-=`\\\00"+-

After this, run mkpttxt.exe again.

This feature was contributed by Sander van Schouwenburg.