18 Comments - Last post 1 minute ago by jojo1241
423 Comments - Last post 38 minutes ago by ViToos
6 Comments - Last post 45 minutes ago by m0r1arty
13 Comments - Last post 1 hour ago by devotee
307 Comments - Last post 1 hour ago by devotee
40 Comments - Last post 1 hour ago by CelticBatman
16,751 Comments - Last post 1 hour ago by Khazadson
3,844 Comments - Last post 43 seconds ago by Vampus
1 Comments - Last post 20 minutes ago by Gigant250
1,680 Comments - Last post 26 minutes ago by ImpAtience
232 Comments - Last post 28 minutes ago by Valase
142 Comments - Last post 41 minutes ago by Azaltir
12 Comments - Last post 42 minutes ago by DemonsRift
3 Comments - Last post 48 minutes ago by m0r1arty
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.