Skip to content

Commit

Permalink
game.resource_archives_keys:
Browse files Browse the repository at this point in the history
Finally @zilav and @HLP gave me the order the keys are read (probably).
See:
http://forums.bethsoft.com/topic/1614408-/?p=25304070
and next few posts.
Under #294, #296, #339 and #148.
  • Loading branch information
Utumno committed Feb 10, 2017
1 parent b2dda55 commit b3fdcad
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Mopy/bash/bosh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@ def extra_bsas(self):
else:
bsaPaths = [self.getBsaPath()] # first check bsa with same name
for iniFile in modInfos.ini_files():
for key in (u'sResourceArchiveList', u'sResourceArchiveList2'): ##: per game keys !
for key in bush.game.resource_archives_keys:
extraBsa = iniFile.getSetting(u'Archive', key, u'').split(u',')
extraBsa = (x.strip() for x in extraBsa)
extraBsa = [dirs['mods'].join(x) for x in extraBsa if x]
Expand Down
1 change: 1 addition & 0 deletions Mopy/bash/game/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
bsa_extension = ur'bsa'
supports_mod_inis = True # this game supports mod ini files aka ini fragments
vanilla_string_bsas = {}
resource_archives_keys = ()

# Load order info
using_txt_file = True
Expand Down
5 changes: 5 additions & 0 deletions Mopy/bash/game/fallout4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
u'dlccoast.esm': [u'DLCCoast - Main.ba2'],
u'dlcnukaworld.esm': [u'DLCNukaWorld - Main.ba2'],
}
resource_archives_keys = (
u'sResourceIndexFileList', u'sResourceStartUpArchiveList',
u'sResourceArchiveList', u'sResourceArchiveList2',
u'sResourceArchiveListBeta'
)

# Load order info
using_txt_file = True
Expand Down
1 change: 1 addition & 0 deletions Mopy/bash/game/oblivion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
bsa_extension = ur'bsa'
supports_mod_inis = False
vanilla_string_bsas = {}
resource_archives_keys = ()

# Load order info
using_txt_file = False
Expand Down
1 change: 1 addition & 0 deletions Mopy/bash/game/skyrim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
u'hearthfires.esm': [u'Hearthfires.bsa'],
u'dragonborn.esm': [u'Dragonborn.bsa'],
}
resource_archives_keys = (u'sResourceArchiveList', u'sResourceArchiveList2')

# Load order info
using_txt_file = True
Expand Down
2 changes: 1 addition & 1 deletion Mopy/bash/game/skyrimse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
dontSkipDirs, ini, pklfile, wryeBashDataFiles, wryeBashDataDirs, \
ignoreDataFiles, ignoreDataFilePrefixes, ignoreDataDirs, CBash_patchers, \
weaponTypes, raceNames, raceShortNames, raceHairMale, raceHairFemale, \
SkipBAINRefresh, supports_mod_inis
SkipBAINRefresh, supports_mod_inis, resource_archives_keys

#--Name of the game to use in UI.
displayName = u'Skyrim Special Edition'
Expand Down

0 comments on commit b3fdcad

Please sign in to comment.