Skip to content

Commit

Permalink
Update init files (FAForever#3779)
Browse files Browse the repository at this point in the history
Excludes the file 'texturepack.nxt' as for some players it has an alternative mesh shader. This in turn causes issues when you look at the new Aeon build animations introduced by game version 3731. 

Introduced a 'deprecated' list of mods, in this case simspeed++ that directly changes shield interactions. The novel shield interactions introduced by FAForever#3681 is significantly better.
  • Loading branch information
Garanas authored Apr 10, 2022
1 parent 880fccb commit 090aa6a
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 8 deletions.
14 changes: 12 additions & 2 deletions init_faf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ local integratedMods = { }
integratedMods["nvidia fix"] = true
integratedMods = LowerHashTable(integratedMods)

-- mods that are deprecated, based on folder name
local deprecatedMods = { }
deprecatedMods["simspeed++"] = true
deprecatedMods = LowerHashTable(deprecatedMods)

-- typical FA packages
local allowedAssetsScd = { }
allowedAssetsScd["units.scd"] = true
Expand Down Expand Up @@ -93,7 +98,6 @@ allowedAssetsScd = LowerHashTable(allowedAssetsScd)
-- typical backwards compatible packages
local allowedAssetsNxt = { }
allowedAssetsNxt["kyros.nxt"] = true
allowedAssetsNxt["texturepack.nxt"] = true
allowedAssetsNxt["advanced strategic icons.nxt"] = true
allowedAssetsNxt["advanced_strategic_icons.nxt"] = true
allowedAssetsNxt = LowerHashTable(allowedAssetsNxt)
Expand Down Expand Up @@ -322,7 +326,13 @@ local function MountModContent(dir)

-- do not load integrated mods
if integratedMods[mod] then
LOG("Blocked mod that is integrated: " .. mod )
LOG("Prevented loading a mod that is integrated: " .. mod )
continue
end

-- do not load deprecated mods
if deprecatedMods[mod] then
LOG("Prevented loading a mod that is deprecated: " .. mod )
continue
end

Expand Down
14 changes: 12 additions & 2 deletions init_fafbeta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ local integratedMods = { }
integratedMods["nvidia fix"] = true
integratedMods = LowerHashTable(integratedMods)

-- mods that are deprecated, based on folder name
local deprecatedMods = { }
deprecatedMods["simspeed++"] = true
deprecatedMods = LowerHashTable(deprecatedMods)

-- typical FA packages
local allowedAssetsScd = { }
allowedAssetsScd["units.scd"] = true
Expand Down Expand Up @@ -93,7 +98,6 @@ allowedAssetsScd = LowerHashTable(allowedAssetsScd)
-- typical backwards compatible packages
local allowedAssetsNxt = { }
allowedAssetsNxt["kyros.nxt"] = true
allowedAssetsNxt["texturepack.nxt"] = true
allowedAssetsNxt["advanced strategic icons.nxt"] = true
allowedAssetsNxt["advanced_strategic_icons.nxt"] = true
allowedAssetsNxt = LowerHashTable(allowedAssetsNxt)
Expand Down Expand Up @@ -322,7 +326,13 @@ local function MountModContent(dir)

-- do not load integrated mods
if integratedMods[mod] then
LOG("Blocked mod that is integrated: " .. mod )
LOG("Prevented loading a mod that is integrated: " .. mod )
continue
end

-- do not load deprecated mods
if deprecatedMods[mod] then
LOG("Prevented loading a mod that is deprecated: " .. mod )
continue
end

Expand Down
14 changes: 12 additions & 2 deletions init_fafdevelop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ local integratedMods = { }
integratedMods["nvidia fix"] = true
integratedMods = LowerHashTable(integratedMods)

-- mods that are deprecated, based on folder name
local deprecatedMods = { }
deprecatedMods["simspeed++"] = true
deprecatedMods = LowerHashTable(deprecatedMods)

-- typical FA packages
local allowedAssetsScd = { }
allowedAssetsScd["units.scd"] = true
Expand Down Expand Up @@ -93,7 +98,6 @@ allowedAssetsScd = LowerHashTable(allowedAssetsScd)
-- typical backwards compatible packages
local allowedAssetsNxt = { }
allowedAssetsNxt["kyros.nxt"] = true
allowedAssetsNxt["texturepack.nxt"] = true
allowedAssetsNxt["advanced strategic icons.nxt"] = true
allowedAssetsNxt["advanced_strategic_icons.nxt"] = true
allowedAssetsNxt = LowerHashTable(allowedAssetsNxt)
Expand Down Expand Up @@ -322,7 +326,13 @@ local function MountModContent(dir)

-- do not load integrated mods
if integratedMods[mod] then
LOG("Blocked mod that is integrated: " .. mod )
LOG("Prevented loading a mod that is integrated: " .. mod )
continue
end

-- do not load deprecated mods
if deprecatedMods[mod] then
LOG("Prevented loading a mod that is deprecated: " .. mod )
continue
end

Expand Down
14 changes: 12 additions & 2 deletions init_shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ local integratedMods = { }
integratedMods["nvidia fix"] = true
integratedMods = LowerHashTable(integratedMods)

-- mods that are deprecated, based on folder name
local deprecatedMods = { }
deprecatedMods["simspeed++"] = true
deprecatedMods = LowerHashTable(deprecatedMods)

-- typical FA packages
local allowedAssetsScd = { }
allowedAssetsScd["units.scd"] = true
Expand Down Expand Up @@ -93,7 +98,6 @@ allowedAssetsScd = LowerHashTable(allowedAssetsScd)
-- typical backwards compatible packages
local allowedAssetsNxt = { }
allowedAssetsNxt["kyros.nxt"] = true
allowedAssetsNxt["texturepack.nxt"] = true
allowedAssetsNxt["advanced strategic icons.nxt"] = true
allowedAssetsNxt["advanced_strategic_icons.nxt"] = true
allowedAssetsNxt = LowerHashTable(allowedAssetsNxt)
Expand Down Expand Up @@ -322,7 +326,13 @@ local function MountModContent(dir)

-- do not load integrated mods
if integratedMods[mod] then
LOG("Blocked mod that is integrated: " .. mod )
LOG("Prevented loading a mod that is integrated: " .. mod )
continue
end

-- do not load deprecated mods
if deprecatedMods[mod] then
LOG("Prevented loading a mod that is deprecated: " .. mod )
continue
end

Expand Down

0 comments on commit 090aa6a

Please sign in to comment.