X2CommunityCore / xcom2-launcher

The Alternative Mod Launcher (AML) is a replacement for the default game launchers from XCOM 2 and XCOM Chimera Squad.
GNU General Public License v3.0
347 stars 51 forks source link

Detecting Workshop ID for local mods can fail if ID is greater than 2147483647 #228

Closed RevZero closed 4 years ago

RevZero commented 4 years ago

This is NOT an issue for Steam mods that are located in the Steam mod folder, where the folder name represents the Steam ID.

Cause: All Steam Workshop items are using a unique numeric ID (spanning over all games) to be identified. Just recently this ID crossed the Int32 threshold (2147483647).

When a Steam mod is located in a folder other than the Steam mod directory (steamapps\workshop\content\268500), AML fails to detect IDs larger than 2147483647. So all recently added and upcoming mods are potentially affected by this issue. The mod ID will be invalid and AML will not be able to perform Workshop related functions (like updating, unsubscribing...) for this mod.