1 Comments - Last post 2 minutes ago by cals7
17 Comments - Last post 21 minutes ago by MeguminShiro
9 Comments - Last post 2 hours ago by misterhaan
15 Comments - Last post 2 hours ago by misterhaan
60 Comments - Last post 2 hours ago by OrbitalBliss
23 Comments - Last post 4 hours ago by Lugum
74 Comments - Last post 5 hours ago by Skelerth
31 Comments - Last post 4 minutes ago by 1bit
45 Comments - Last post 12 minutes ago by Vampus
39 Comments - Last post 48 minutes ago by ihylinda
18,120 Comments - Last post 1 hour ago by NewbieSA
252 Comments - Last post 1 hour ago by Phantomreader42
1,760 Comments - Last post 1 hour ago by Jztr
172 Comments - Last post 1 hour ago by fernandopa
This is to solve a Tropico 4's annoyance.
It seems that Tropico 4 uses Xinput detection + LUA scripting, I used a script/mod that worked fine, but the latest expansion (Modern Times) broke everything.
This is the code that calls the XBOX functions. What I need, as I said, is to disable both left and right thumbs.
Shit, SG needs a markdown help right here... bleh.
`
-- Call as early as we could reasonably be expected to be called ...
-- Stop this from loading more than once
local FiredOnce = false
local ExpansionMode = false
-- Style it up like we're on an XBox ;)
AreScreensXboxStyle = function()
return true
end
function DoXBoxMod()
-- Fake Xbox compatibility
const.XBOX = true
end
-- Load it early/fast. We'll reload for MT, so it's not a problem.
OnMsg.ClassesGenerate = function()
DoXBoxMod()
end
-- MT Compatibility "Boot" loader
OnMsg.UASetMode = function(actions,mode)
if not FiredOnce then
if(mode == "Boot") then
FiredOnce = true
CreateRealTimeThread(function()
-- Expansion
OnMsg.ReloadLua = function()
ExpansionMode = true
end
-- Setup post-load
OnMsg.XPlayerSignin = function()
-- Modern Times loader :3
if FiredOnce and ExpansionMode then
DoXBoxMod()
end
end
end)
end
end
end
`
So, using my very poor logical skills, I should take this following part (changing LeftShoulder for LeftThumb) and nullify it somehow. Problem is, I have no idea how to do that or where to look for research. So any help appreciated.
if button == "LeftThumb" then ??????????? return endComment has been collapsed.