17,057 Comments - Last post 26 minutes ago by LoLaPaZoLa
2 Comments - Last post 59 minutes ago by SlavenHarkin
1 Comments - Last post 1 hour ago by IronKnightAquila
439 Comments - Last post 1 hour ago by Dunther
1 Comments - Last post 1 hour ago by Volcanic
14 Comments - Last post 3 hours ago by snbac
10 Comments - Last post 4 hours ago by Felldrizzle
21 Comments - Last post 5 seconds ago by Mhol1071
247 Comments - Last post 1 minute ago by Bainsol
45 Comments - Last post 2 minutes ago by yugimax
14 Comments - Last post 4 minutes ago by RePlayBe
1,278 Comments - Last post 15 minutes ago by aliihsandikmen
137 Comments - Last post 44 minutes ago by VernoWhitney
130 Comments - Last post 47 minutes ago by vigaristti
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 end
Comment has been collapsed.