Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
["(Button 0)"] = "\127",--"Button X",
["(Button 1)"] = "\128",--"Button B",
["(Button 2)"] = "\129",--"Button A",
["(Button 3)"] = "\130",--"Button Y",
And for me the D pad wasn't showing properly either. I added this under Right Stick.
["(Button 11)"] = "\142",--"DPad Up",
["(Button 12)"] = "\139",--"DPad Down",
["(Button 13)"] = "\140",--"DPad Left",
["(Button 14)"] = "\141",--"DPad Right",
For Mac users you can find the file in Library > Application Support > Steam > steamapps > common > dont_starve > dontstarve_steam (right click Show Package Contents) Contents > mods >workshop-391918434 > modmain.lua (open in a text editor or notepad)
@peter_a_klei, may we have an update for this mod? (Shipwrecked).
Playing Shipwrecked with this mod enabled. So if I drop a coconut on the floor and equip a machete, the mod displays the button A with the description "HACK" next to it, but it should be B, which is the actual button that does it. Is there a way to fix it myself?
Go to Library in Finder (Press down Option then click Go and you should see it)
2) Application Support
3) Steam
4) Steamapps
5) Common
6) Don't Starve
7) Mods
8) Workshop...some number I can't remember. you might have several here depending on your mods.
9) open modmain.lua using a text editor.
local old_GetLocalizedControl = GLOBAL.Input.GetLocalizedControl
local function RemappedControl( self, deviceId, controlId, use_default_mapping, use_control_mapper )
local text = old_GetLocalizedControl( self, deviceId, controlId, use_default_mapping, use_control_mapper ) or ""
return remap_table[text] or text
end
GLOBAL.Input.GetLocalizedControl = RemappedControl
["(+Y Axis)"] = "\144",--"Left Thumb Down",
["(-X Axis)"] = "\145",--"Left Thumb Left",
["(+X Axis)"] = "\146",--"Left Thumb Right",
["(-Z Axis)"] = nil,
["(+Z Axis)"] = "\135",--"Left Trigger",,
["(-Z Rotation)"] = nil,
["(+Z Rotation)"] = "\138",--"Right Trigger",
--unset generic inputs
["(-X Rotation)"] = "\149",--"Right Thumb Left",
["(+X Rotation)"] = "\150",--"Right Thumb Right",
["(-Y Rotation)"] = "\147",--"Right Thumb Up",
["(+Y Rotation)"] = "\148",--"Right Thumb Down",
["(Slider 0)"] = nil,
["(Slider 0)"] = nil,
["(Slider 1)"] = nil,
["(Slider 1)"] = nil,
}
--[[
--unused Xbox 360 button images
"\135",--"Left Trigger",
"\135",--"Left Trigger",
"\138",--"Right Trigger",
"\138",--"Right Trigger",
]]
local remap_table = {
["(DPad 0 Up)"] = "\142",--"DPad Up"
["(DPad 0 Down)"] = "\139",--"DPad Down"
["(DPad 0 Left)"] = "\140",--"DPad Left",
["(DPad 0 Right)"] = "\141",--"DPad Right"
--derived from "(DPad %d [direction])",
["(Button 0)"] = "\127",--"Button A",
["(Button 1)"] = "\128",--"Button B",
["(Button 2)"] = "\129",--"Button X",
["(Button 3)"] = "\130",--"Button Y",
["(Button 4)"] = "\134",--"Left Bumper",
["(Button 5)"] = "\137",--"Right Bumper",
["(Button 6)"] = nil,
["(Button 7)"] = nil,
["(Button 8)"] = "\131",--"Start",
["(Button 9)"] = "\132",--"Back",
--derived from "(Button %d)"
Thanks again!
Jonah
Thanks to Elkeid also for the mappings which correctly map the 360 controller's buttons.
PS - if you are stuck trying to find the modmain files you have to right click on the dontstarve_steam app and 'show package contents'. Might be obvious to some people but wasn't to me!
With Chester): Attack- it's "X" not ''B'', Open it's "A" not "X". And it's all errors what im found. Please Fix. ^^
...but A and X are switched :( can you fix it please?
A must have mod for Don't Starve linux owners!
http://pastebin.com/mhLdCQJs
["(Button 9)"] = "\132",--"Back",
["(Button 6)"] = "\133",--"Left Stick",
["(Button 7)"] = "\136",--"Right Stick",
["(Button 8)"] = "\131",--"Start",
["(Button 11)"] = "\142",--"DPad Up"
["(Button 14)"] = "\141",--"DPad Right"
["(Button 12)"] = "\139",--"DPad Down"
["(Button 13)"] = "\140",--"DPad Left",
["(+Z Axis)"] = "\135",--"Left Trigger",
["(+Z Rotation)"] = "\138",--"Right Trigger"
["(Button 3)"] = "\130",--"Button Y",
["(Button 1)"] = "\128",--"Button B",
["(Button 0)"] = "\127",--"Button A",
["(Button 2)"] = "\129",--"Button X",
}
--Now inject our remapping into GetLocalizedControl
local old_GetLocalizedControl = GLOBAL.Input.GetLocalizedControl
local function RemappedControl( self, deviceId, controlId, use_default_mapping, use_control_mapper )
local text = old_GetLocalizedControl( self, deviceId, controlId, use_default_mapping, use_control_mapper ) or ""
return remap_table[text] or text
end
GLOBAL.Input.GetLocalizedControl = RemappedControl
So I tried to edit modmain.lua with @Paradox config and it doesn't work.
I still have "button XX" in game instead of Xbox360 button
I use a 360 gamepad on a macbook
Can't you just use the ps3 buttons and push the equivalent button on the controller? they are on the same places