安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






["(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