Swizzy / AuroraScripts

Lua scripts for Aurora
The Unlicense
4 stars 3 forks source link

Definitions of variables in UserSubtitles/Capabilities Offline #1

Open orcutt989 opened 3 years ago

orcutt989 commented 3 years ago
GameListSubtitles["OfflineCapabilities"] = function(Content)
    minsys = bit32.band(Content.CapabilitiesOffline.HighPart, 0x000000FF)
    maxsys = bit32.rshift(bit32.band(Content.CapabilitiesOffline.HighPart, 0x0000FF00), 8)
    minco = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0x00FF0000), 16)
    maxco = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0xFF000000), 24)
    minp = bit32.band(Content.CapabilitiesOffline.LowPart, 0x000000FF)
    maxp = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0x0000FF00), 8)
    return string.format("Offline Players: %i-%i, %i-%i, %i-%i", minsys, maxsys, minco, maxco, minp, maxp)
end

I saw your thread on realmodscene where you explain minco and maxco is minimum and maximum co-op players. However, I would like to know what minsys maxsys minp and maxp are.

I am hoping to tweak the co-op filter to make a multiplayer filter. For example - Family Guy Return to the Multiverse has a 2 player co-op campaign (caught by your co-op filter), but it has 4 player multiplayer as well (not caught by the filter).

Swizzy commented 3 years ago

minsys and maxsys are for system-link, and minp and maxp are min and max players if memory don't serve me wrong, hopefully that helps you out? it's been a very long time since i last messed around with this, but - if you look at the data for a couple of games that might help you narrow it down?

orcutt989 commented 3 years ago

Thanks for replying. I love what you've been able to expose here in your subtitles.

I actually went ahead and made some new filters with what you've provided in CapabilitiesOffline.lua.

It appears that Co-Op and multplayer are exclusvies groups so I made a "2+ Player Multiplayer" "2+ Player Co-OP" Quick Views in aurora with the multiplayer quick views bieing an AND on your LocalCoOp filter and one I made using the OfflinePlayers you've exposed as variables here. Thanks for the help.