62 Comments - Last post 5 minutes ago by bromax333
53 Comments - Last post 50 minutes ago by truthfullybug
252 Comments - Last post 1 hour ago by WaxWorm
291 Comments - Last post 6 hours ago by JX8
795 Comments - Last post 9 hours ago by FranckCastle
364 Comments - Last post 9 hours ago by Zepy
44 Comments - Last post 10 hours ago by IronKnightAquila
51 Comments - Last post 1 minute ago by SHIV
544 Comments - Last post 13 minutes ago by yourshk
1 Comments - Last post 14 minutes ago by chairmankao
33 Comments - Last post 23 minutes ago by OurMajesty
96 Comments - Last post 35 minutes ago by ChimChakMan
9,620 Comments - Last post 43 minutes ago by CurryKingWurst
42 Comments - Last post 48 minutes ago by coleypollockfilet
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.