149 Comments - Last post 2 minutes ago by Kingsajz
16,654 Comments - Last post 36 minutes ago by Abletoburn
2,363 Comments - Last post 55 minutes ago by madsession
24 Comments - Last post 1 hour ago by RowdyOne
219 Comments - Last post 1 hour ago by wigglenose
71 Comments - Last post 3 hours ago by Atombomb2097
240 Comments - Last post 7 hours ago by FranckCastle
136 Comments - Last post 16 minutes ago by akfas
29,456 Comments - Last post 30 minutes ago by ManOman
266 Comments - Last post 36 minutes ago by Marshdemallows
103 Comments - Last post 37 minutes ago by Kyrrelin
164 Comments - Last post 56 minutes ago by Keka
12 Comments - Last post 1 hour ago by khayolin
148 Comments - Last post 1 hour ago by Adamiix
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.