Torchlight II

Torchlight II

36 ratings
How to change the Ingame Hotkeys, Enable console, & Other Settings
By Wyldbill
Changing the function any button on the keyboard is very easy and requires around five minutes of your time.
   
Award
Favorite
Favorited
Unfavorite
Introduction
This guide will teach you how to change the settings.txt file to affect ingame controls such as Hotkeys. This will also tell you how to turn off some effects such as Blood/Gore and Weather for those of you with slower computers.
Hotkey Procedure
Changing Hotkeys is easier than the spacebar. It requires many similar steps to acheive and is executed the same way.

Steps:
  • 1. Find your Torchlight 2 data, if installed via steam and on Windows 7, it should be under:
    Documents-> My Games-> Runic Games-> Torchlight 2-> save-> "Random Number". In that folder you will find a .txt file named "settings". Open it.

  • 2. Find the Variable you want to change, Use the "Definitions of settings.txt" and "Hotkey Definitions" Sections for assistance. Replace the number at the end of the Variable with the one you want that corresponds with the key you want.

  • 3. Save and Start.
Typing the wrong number will either cause that hotkey to use a different button then intended or not work at all. If so, double check. If the problem persists, write me a line, I will check on my side to see if the issue is still present. If so, I will delete the value to avoid further confusion and work towards finding the correct one.
Definitions of settings.txt
For those of you who would like to change settings without jumping ingame, here is what each item means in the settings.txt. One basic rule to remember is that with the number at the end,
0 (Zero) = FALSE and 1 = TRUE or if you would prefer, OFF and ON respectively. Most of these Variables are self explanatory, but, here is some confirmation if you are not sure.

Variable Meaning
------------------------------------------------------------------------------
SHOW TIPS----------------------------------------------Show Ingame tips onscreen
SHOW_OFFLINE_PLAYERS-------------------------Show Offline Friends in Multiplayer Lobby
CONSOLE------------------------------------------------Enables Ingame Console (Cheats)
DEBUGMENUS------------------------------------------Enables Debug menus (Only really for Devs)
GAME_COMPLETED_ONCE-------------------------Enables New Game +
PROGRESS_INDEX------------------------------------Current Story Mission (?)
MAX UI TILING PANES---------------------------------Max Number of User Interface Tiling Panels (?)
REMEMBER_USERNAME-----------------------Remember Username when Logging in for Multiplayer
AUTOMAP------------------------------------------------Enable Minimap
AUTOMAP_VISIBLE------------------------------------Minimap at top-right of screen (?)
SHOW BLOOD------------------------------------------Enable/Disable Blood or Gore*
WEATHER-----------------------------------------------Enable Visuals such as Rain*
NO CAMERA SHAKE----------------------------------Enable Camera Shake for Heavy Attacks*
KEYMAP_1-----------------------------------------------Hotkey Bar (Far Left or 1)
KEYMAP_2-----------------------------------------------Hotkey Bar (Second on Left or 2)
KEYMAP_3-----------------------------------------------Hotkey Bar (Third on Left or 3)
KEYMAP_4-----------------------------------------------Hotkey Bar (Fourth on Left or 4)
KEYMAP_5-----------------------------------------------Hotkey Bar (Middle-Left or 5)
KEYMAP_6-----------------------------------------------Hotkey Bar (Middle-RIght or 6)
KEYMAP_7-----------------------------------------------Hotkey Bar (Fourth on Right or 7)
KEYMAP_8-----------------------------------------------Hotkey Bar (Third on Right or 8)
KEYMAP_9-----------------------------------------------Hotkey Bar (Second on RIght or 9)
KEYMAP_0-----------------------------------------------Hotkey Bar (Far Right or 0 <Zero>)
FKEYMAP_1 :112
FKEYMAP_2 :113
FKEYMAP_3 :114
FKEYMAP_4 :115
FKEYMAP_5 :116
FKEYMAP_6 :117
FKEYMAP_7 :118
FKEYMAP_8 :119
FKEYMAP_9 :120
FKEYMAP_10 :121
FKEYMAP_11 :122
FKEYMAP_12 :123
KEYMAP_INVENTORY---------------------------------Opens Charecter Inventory
KEYMAP_PET-------------------------------------------Opens Pet Inventory
KEYMAP_STATS---------------------------------------Opens Player Stats
KEYMAP_SKILLS---------------------------------------Opens Player Skills
KEYMAP_QUESTS-------------------------------------Opens Quest Log
KEYMAP_JOURNAL------------------------------------Opens Journal
KEYMAP_OPTIONS------------------------------------Opens Options Screen
KEYMAP_PAUSE---------------------------------------Pauses Game
KEYMAP_AUTOMAP-----------------------------------Changes Type of Map(?)
KEYMAP_AUTOMAPZOOMIN------------------------Zoom In on Minimap
KEYMAP_AUTOMAPZOOMOUT---------------------Zoom Out on Minimap
KEYMAP_HOLDPOS-----------------------------------Stops charecter from Moving for Attacks
KEYMAP_SHOWITEMS--------------------------------Toggles Item Frames
KEYMAP_CYCLESKILLUP----------------------------Switch through Skills (UP)
KEYMAP_CYCLESKILLDOWN-----------------------Switch through Skills (DOWN)
KEYMAP_SWAPSKILLS-------------------------------Toggle Skills(?)
KEYMAP_WEAPONSET-------------------------------Change your Weapons
KEYMAP_CLOSEALL----------------------------------Close all Windows(?)
KEYMAP_ZOOMIN--------------------------------------Zoom in Onscreen (?)
KEYMAP_ZOOMOUT----------------------------------Zoom Out Onscreen (?)
HIGHLIGHT_POTION-----------------------------------Potion Itemframe Visibility
HIGHLIGHT_GOLD-------------------------------------Gold Itemframe Visibility
HIGHLIGHT_BREAKABLES---------------------------Breakable Itemframe Visibility (Jars)
HIGHLIGHT_NORMAL_WEAPONS------------------White Weapon Itemframe Visibility
HIGHLIGHT_MAGIC_WEAPONS---------------------Green Weapon Itemframe Visibility
HIGHLIGHT_RARE_WEAPONS-----------------------Blue Weapon Itemframe Visibility
HIGHLIGHT_UNIQUE_WEAPONS--------------------Gold Weapon Itemframe Visibility
HIGHLIGHT_LEGENDARY_WEAPONS--------------Orange Itemframe Visibility
HIGHLIGHT_NORMAL_ARMOR-----------------------(1)
HIGHLIGHT_MAGIC_ARMOR--------------------------(1)
HIGHLIGHT_RARE_ARMOR---------------------------(1)
HIGHLIGHT_UNIQUE_ARMOR-------------------------(1)
HIGHLIGHT_LEGENDARY_ARMOR------------------(1)
HIGHLIGHT_NORMAL_TRINKETS--------------------(2)
HIGHLIGHT_MAGIC_TRINKETS-----------------------(2)
HIGHLIGHT_RARE_TRINKETS------------------------(2)
HIGHLIGHT_UNIQUE_TRINKETS----------------------(2)
HIGHLIGHT_LEGENDARY_TRINKETS---------------(2)
HIGHLIGHT_NORMAL_SOCKETABLES-------------(3)
HIGHLIGHT_MAGIC_SOCKETABLES----------------(3)
HIGHLIGHT_RARE_SOCKETABLES-----------------(3)
HIGHLIGHT_UNIQUE_SOCKETABLES--------------(3)
HIGHLIGHT_LEGENDARY_SOCKETABLES-------(3)
KEYMAP_CONSOLEKEY_PRESS-------------------Key to Open Console
KEYMAP_CONSOLEKEY_HOLD---------------------Key to Hold to Open Console
SERVER_DIFFICULTY---------------------------------Difficulty in Multiplayer
SERVER_LEVELDELTAMIN---------------------------(?)
SERVER_LEVELDELTAAX----------------------------(?)
SERVER_MAXPLAYERS-------------------------------Max Players for Hosted Games (Max of 4)
SERVER_FRIENDSONLY------------------------------Friends only Server
UISCALE---------------------------------------------------User Interface Scale (Size of Onscreen Buttons)
UISCALEEDITOR-----------------------------------------User Interface Scale Editer (?)
AUTOMAP ZOOM----------------------------------------Default Minimap Zoom (?)
AUTOMAP OPACITY------------------------------------Visibility Through Minimap Onscreen (0 - 1)
LANGUAGE-----------------------------------------------Game Language (Default English)
RETIREE_QUEST---------------------------------------(?)
USERNAME-----------------------------------------------Stored Username for Logging IN
SPACEBAR MENUS-------------------------------------What Windows SPACEBAR Opens
SERVER_NAME-----------------------------------------Stored Server Name
SERVER_DESC-----------------------------------------Stored Server Description

(?)-Indicates that this Variable MAY be something else, Not Proven
(*)-Indicates Variable that can ONLY be changed in settings.txt. Some may be missing astrix

(1)-Same as Weapons, but with Armor
(2)-Same as Weapons, but with Trinkets
(3)-Same as Weapons, but with Socketables (Embers,Skulls)

As always, if you find an error or confirm a (?), Send me a line. I will add it in and credit you for it!
Hotkey Definitions
I have discovered some of the keymappings by looking at the file, I do not plan on updating it very often as it is time consuming but if you figure out keys that are not listed, I will credit you in the guide for them.

To set the keymappings, just put the number that is on the left into the spot on the settings.txt you want it to be for.


# Effect Key (If Applicable)
-------------------------
8 - Backspace
9 - Tab
13 - Enter
16 - Shift
17 - Control - ctrl
18 - Alt - alt
19 - pause/break
20 - caps lock
27 - escape
33 - Page Up
34 - Page Down
35 - End
36 - Home
37 - Left Arrow
38 - Up Arrow
39 - Right Arrow
40 - Down Arrow
45 - Insert
46 - Delete
48 - 0 (Zero)
49 - 1
50 - 2
51 - 3
52 - 4
53 - 5
54 - 6
55 - 7
56 - 8
57 - 9
65 - A
66 - B
67 - C
68 - D
69 - E
70 - F
71 - G
72 - H
73 - I
74 - J
75 - K
76 - L
77 - M
78 - N
79 - O
80 - P
81 - Q
82 - R
83 - S
84 - T
85 - U
86 - V
87 - W
88 - X
89 - Y
90 - Z
91 - Left Window Key
92 - Right Window Key
93 - Select Key
96 - Numpad 0
97 - Numpad 1
98 - Numpad 2
99 - Numpad 3
100 - Numpad 4
101 - Numpad 5
102 - Numpad 6
103 - Numpad 7
104 - Numpad 8
105 - Numpad 9
106 - Numpad Multiply - *
107 - Numpad Add - +
109 - Numpad Subtract - -
110 - Numpad Decimal - .
111 - Numpad Divide - /
112 - F1
113 - F2
114 - F3
115 - F4
116 - F5
117 - F6
118 - F7
119 - F8
120 - F9
121 - F10
122 - F11
123 - F12
144 - Num Lock
145 - Scroll Lock
186 - Semi-Colon - ;
187 - Equal Sign - =
188 - Comma - ,
189 - Dash - -
190 - Period - .
191 - Forward Slash - /
192 - Grave Accent
219 - Open Bracket - (
220 - Back Slash - \
221 - Close Bracket - )
222 - Single Quote - '

Thanks to Abnovitas on the Runic Forums for posting this link to the Keycode Mappings:
http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
Spacebar Procedure
Changing the spacebar function is slightly different with a few more steps. It still only takes minutes of your time and can vastly improve your gameplay experience.

First you need to figure out what windows you want open with the spacebar. Take some time to either memorize the name of the window or just look at the screenshots below and pick one from either the left side of the screen or the right.

  • 1. First, go to Documents-> My Games-> Runic Games-> Torchlight 2-> save-> "Random Number". In that folder you will find a .txt file named "settings".

  • 2. Open up "settings" and then head ALL the way to the bottom. Look for a line that says "SPACEBAR MENUS". We will be modifing the section after the ":". By default after : it should say " PLAYERINVENTORYMENU,PLAYERSTATSMENU" (Note that second image is misleading)
  • 3. Replace what is after ":" with either PETINVENTORYMENU (Pet Inventory), PLAYERSTATSMENU (Default), or JOURNALMENU* (Indepth stats) for the left side of the screen

  • 4. Replace the second word in SPACEBAR MENUS with one of the following the change the right side of the screen: PLAYERINVENTORYMENU (Default Inventory Screen), GENERICSKILLTREE* (Skill Menu for Player Charecter), or QUESTMANAGER* (Indepth quest menu)

  • 5. When you finish, start up Torchlight 2 get in game and press SPACEBAR. If you type something wrong, your window will not open. If so, check your spelling in the settings file.


  • 6. That is it! If you are curious, you can use the settings file to change the hotkeys of menus as well (Instead of "S" opening Skills menu, you can change it to something else like inventory) and you can change other settings normally not modifiable ingame.

*Thanks to ΛΞNiTrOxEpiKz® For providing the keywords to each window
Console Procedure
To enable console commands requires going to the EXACT SAME .txt that is talked about in this entire guide.

NOTE: By using console commands, your charecter will appear with a (!). This tells other players online that you have activated codes with that charecter and may sometimes get you kicked. Also, any items you get through the console will have a flavor text at the bottom that says:
"CHEATED ITEM"

--------------------------------------------------------------------------------------------------------------------------
  • 1. Go to settings.txt located at: Documents -> My Games -> Runic Games -> Torchlight 2 -> Save -> "Random Number". Open up settings.txt

  • 2. Third from the top should be the command "CONSOLE :0", change the 0 (Zero) to 1 and then start the game.

  • 3. To open the console Ingame, start up a charecter and press the "Insert" key. The console should appear in the top left corner.


  • 4. For a list of commands, type in "help". In the future, I will list the commands and their effect below.
--------------------------------------------------------------------------------------------------------------------------

That is it. With the console you can change your settings remotely, give yourself items, OR add experience.
Resetting the settings.txt
If you run into problems while doing this you can reset the settings text so that you can start fresh. To reset your settings list, you delete the settings file and it should replace it with a fresh copy. Note that by doing this, you lose all of your option settings but not charecter saves.

If you want to reset without deleting your settings.txt, you can use my copy of it below. It is not truly vanilla, however. The only difference in my text is that the Spacebar opens Pet Inventory instead of Player Statistics. Just replace what is in your settings.txt with what is below


SHOW TIPS :0
SHOW_OFFLINE_PLAYERS :0
CONSOLE :0
DEBUGMENUS :0
GAME_COMPLETED_ONCE :0
PROGRESS_INDEX :30
MAX UI TILING PANES :1
REMEMBER_USERNAME :0
AUTOMAP :1
AUTOMAP_VISIBLE :1
SHOW BLOOD :1
WEATHER :1
NO CAMERA SHAKE :0
KEYMAP_1 :49
KEYMAP_2 :50
KEYMAP_3 :51
KEYMAP_4 :52
KEYMAP_5 :53
KEYMAP_6 :54
KEYMAP_7 :55
KEYMAP_8 :56
KEYMAP_9 :57
KEYMAP_0 :48
FKEYMAP_1 :112
FKEYMAP_2 :113
FKEYMAP_3 :114
FKEYMAP_4 :115
FKEYMAP_5 :116
FKEYMAP_6 :117
FKEYMAP_7 :118
FKEYMAP_8 :119
FKEYMAP_9 :120
FKEYMAP_10 :121
FKEYMAP_11 :122
FKEYMAP_12 :123
KEYMAP_INVENTORY :73
KEYMAP_PET :80
KEYMAP_STATS :67
KEYMAP_SKILLS :83
KEYMAP_QUESTS :81
KEYMAP_JOURNAL :74
KEYMAP_OPTIONS :27
KEYMAP_PAUSE :13
KEYMAP_AUTOMAP :77
KEYMAP_AUTOMAPZOOMIN :221
KEYMAP_AUTOMAPZOOMOUT :219
KEYMAP_HOLDPOS :16
KEYMAP_SHOWITEMS :18
KEYMAP_CYCLESKILLUP :190
KEYMAP_CYCLESKILLDOWN :188
KEYMAP_SWAPSKILLS :9
KEYMAP_WEAPONSET :87
KEYMAP_CLOSEALL :32
KEYMAP_ZOOMIN :187
KEYMAP_ZOOMOUT :189
HIGHLIGHT_POTION :1
HIGHLIGHT_GOLD :1
HIGHLIGHT_BREAKABLES :1
HIGHLIGHT_NORMAL_WEAPONS :1
HIGHLIGHT_MAGIC_WEAPONS :1
HIGHLIGHT_RARE_WEAPONS :1
HIGHLIGHT_UNIQUE_WEAPONS :1
HIGHLIGHT_LEGENDARY_WEAPONS :1
HIGHLIGHT_NORMAL_ARMOR :1
HIGHLIGHT_MAGIC_ARMOR :1
HIGHLIGHT_RARE_ARMOR :1
HIGHLIGHT_UNIQUE_ARMOR :1
HIGHLIGHT_LEGENDARY_ARMOR :1
HIGHLIGHT_NORMAL_TRINKETS :1
HIGHLIGHT_MAGIC_TRINKETS :1
HIGHLIGHT_RARE_TRINKETS :1
HIGHLIGHT_UNIQUE_TRINKETS :1
HIGHLIGHT_LEGENDARY_TRINKETS :1
HIGHLIGHT_NORMAL_SOCKETABLES :1
HIGHLIGHT_MAGIC_SOCKETABLES :1
HIGHLIGHT_RARE_SOCKETABLES :1
HIGHLIGHT_UNIQUE_SOCKETABLES :1
HIGHLIGHT_LEGENDARY_SOCKETABLES :1
KEYMAP_CONSOLEKEY_PRESS :192
KEYMAP_CONSOLEKEY_HOLD :16
SERVER_DIFFICULTY :1
SERVER_LEVELDELTAMIN :1
SERVER_LEVELDELTAAX :100
SERVER_MAXPLAYERS :4
SERVER_FRIENDSONLY :0
UISCALE :1.200000
UISCALEEDITOR :1.000000
AUTOMAP ZOOM :70.000000S
AUTOMAP OPACITY :1.000000
LANGUAGE :English
RETIREE_QUEST :COMPLETEDONCE
USERNAME :
SPACEBAR MENUS :PLAYERINVENTORYMENU,PETINVENTORYMENU
SERVER_NAME :
SERVER_DESC :

Closing Statement
That is it for the guide. Note that all comments are supported and if you see any grammatical errors or errors of another nature, please either post in the comments section or send me a PM.
Changelog
  • 1.0: Guide Posted, Spacebar instructions only

  • 4/9/13: Added "Hotkey Procedure", "Resetting settings.txt", and "Key Mapping List"

  • 4/10/13: Added "Definitions of settings.txt" and "Future Plans", Modified "Hotkey Procedure" (Text Only) and Introduction

  • 4/14/13: Added "Console Procedure", renamed guide

  • 4/16/13: Re-organized sections

  • 4/23/13: Finished Hotkey Definitions
15 Comments
MrDreamer93 29 Jan @ 5:35pm 
In case someone came across this one nowdays
And if they are thying to rebind actions on mouse (like bind Move on LMB)
You need file named "keybindings.dat". Because "settings.txt" does not have Move or Move\Attack binds in it (or I am blind).
Sneaky Turtle 11 Oct, 2015 @ 11:21pm 
Thats what I was wondering is I know time passed since then...cause most of these posts and YouTube videos on it are from 2012, and its starting to feel like a myth almost.haha but no worries imma keep at it!
Wyldbill  [author] 11 Oct, 2015 @ 5:56pm 
There is a chance they changed this up. This guide was made a long time ago and I assure you it used to work
Sneaky Turtle 11 Oct, 2015 @ 4:54pm 
I did all this for the console command window, and when i hit insert the game pauses for like 2sec and then nothing happends. Ive checked the file code within the save data and its all correct....BUT what i noticed it that the "Keymap_console keys" are "grave accents" or "shift", thats what the chart says on this thred. Im just trying to figure it out and im wondering if this has been patched.


Zoktar 22 May, 2015 @ 4:17am 
thanks i found a mod that worked if u put it first in load order
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=150036608
Wyldbill  [author] 19 May, 2015 @ 5:17pm 
To be honest, I've pretty much forgotten most of what's in this guide. If I understand what you are asking, look at the "Hotkey Definitions" section for a mostly complete list of the English QWERTY Keyboard.
Zoktar 18 May, 2015 @ 8:11pm 
can you add more hotkeys than the 10 default ones?
Wyldbill  [author] 22 Apr, 2014 @ 11:15pm 
Thank you very much for these, I will edit the guide with the keywords tomorrow as I am tired. I'll make sure to add your name to the section as a contributor.
Colenk 22 Apr, 2014 @ 3:34pm 
Here you go, SPACEBAR KEYWORDS..

for the left side panels:

PLAYERSTATSMENU
PETINVENTORYMENU
JOURNALMENU

for the right side panels:

GENERICSKILLTREE
PLAYERINVENTORYMENU
QUESTMANAGER
Aleksi Ihminen 19 Jul, 2013 @ 8:59am 
good good