Skip to content

Commit 9eb8832

Browse files
committed
More Normalization between FO3 and FNV
1 parent d02f033 commit 9eb8832

6 files changed

Lines changed: 16 additions & 22 deletions

File tree

Mopy/bash/bapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def GetDirtyMessage(self,plugin):
616616
clean = c_uint32()
617617
_CGetDirtyMessage(self._DB,_enc(plugin),byref(message),byref(clean))
618618
return (_uni(message.value),clean.value)
619-
619+
620620
def DumpMinimal(self,file,overwrite):
621621
_CDumpMinimal(self._DB,_enc(file),overwrite)
622622

Mopy/bash/bash.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def SetUserPath(iniPath, uArg=None):
6666
# Backup/Restore --------------------------------------------------------------
6767
def cmdBackup():
6868
# backup settings if app version has changed or on user request
69-
if not basherImported:
69+
if not basherImported:
7070
import basher, barb
7171
backup = None
7272
path = None
@@ -214,7 +214,7 @@ def main():
214214
default=False,
215215
dest='quietquit',
216216
help='Close Bash after creating or restoring backup and do not display any prompts or message dialogs.')
217-
parser.set_defaults(backup_images=0)
217+
parser.set_defaults(backup_images=0)
218218
backupGroup.add_option('-i', '--include-changed-images',
219219
action='store_const',
220220
const=1,
@@ -264,7 +264,7 @@ def main():
264264
parser.add_option('--genHtml',
265265
default=None,
266266
help=optparse.SUPPRESS_HELP)
267-
267+
268268
parser.add_option_group(pathGroup)
269269
parser.add_option_group(userPathGroup)
270270
parser.add_option_group(backupGroup)
@@ -273,9 +273,9 @@ def main():
273273
if len(extra) > 0:
274274
parser.print_help()
275275
return
276-
276+
277277
bolt.deprintOn = opts.debug
278-
278+
279279
if opts.Psyco:
280280
try:
281281
import psyco
@@ -351,7 +351,7 @@ def main():
351351
run = balt.askYes(None,"Warning: You are using a Python version prior to 2.5x which is totally out of date and ancient and Bash will likely not like it and may totally refuse to work. Please update to a more recent version of Python(2.6x or 2.7x is preferred). Do you still want to run Wrye Flash?", "Warning OLD Python version detected")
352352
if not run:
353353
return
354-
354+
355355
# process backup/restore options
356356
quit = False # quit if either is true, but only after calling both
357357
quit = quit or not cmdBackup()

Mopy/bash/bass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
without worrying about circular imports."""
2727

2828
language = None
29-
AppVersion = u"30.4"
29+
AppVersion = u"31.0"

Mopy/bash/bish.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ def perfTest():
483483
sys.exit()
484484
test = 0.0
485485
total = 0.0
486-
# MreLvsp removed
487486
for testClasses in ['bosh.MreAchr,bosh.MreCell,bosh.MreWrld','bosh.MreAcre,bosh.MreCell,bosh.MreWrld','bosh.MreActi','bosh.MreAlch','bosh.MreAmmo','bosh.MreAnio','bosh.MreAppa','bosh.MreArmo','bosh.MreBook','bosh.MreBsgn','bosh.MreCell,bosh.MreWrld','bosh.MreClas','bosh.MreClot','bosh.MreCont','bosh.MreCrea','bosh.MreDial,bosh.MreInfo','bosh.MreDoor','bosh.MreEfsh','bosh.MreEnch','bosh.MreEyes','bosh.MreFact','bosh.MreFlor','bosh.MreFurn','bosh.MreGlob','bosh.MreGmst','bosh.MreGras','bosh.MreHair','bosh.MreIngr','bosh.MreKeym','bosh.MreLigh','bosh.MreLscr','bosh.MreLvlc','bosh.MreLvli','bosh.MreMgef','bosh.MreMisc','bosh.MreNpc','bosh.MrePack','bosh.MreQust','bosh.MreRace','bosh.MreRefr,bosh.MreCell,bosh.MreWrld','bosh.MreRoad,bosh.MreCell,bosh.MreWrld','bosh.MreScpt','bosh.MreSgst','bosh.MreSkil','bosh.MreSlgm','bosh.MreSoun','bosh.MreSpel','bosh.MreStat','bosh.MreTes4','bosh.MreTree','bosh.MreWatr','bosh.MreWeap','bosh.MreWthr']:#,'"LAND"', '"PGRD"']:
488487
test = Timer('testClasses = (%s,);loadFactory = bosh.LoadFactory(False,*testClasses);modInfo = bosh.modInfos[GPath("Fallout3.esm")];modFile = bosh.ModFile(modInfo,loadFactory);modFile.load(True)' % testClasses, "import bosh;from bolt import GPath").timeit(1)
489488
print testClasses, ":", test
@@ -670,7 +669,7 @@ def gmstIds(fileName=None):
670669
maxId = max(maxId,0xf12345)
671670
maxOld = maxId
672671
print 'maxId',hex(maxId)
673-
#--Eid list? - if the GMST has a 00000000 eid when looking at it in the cs with nothing
672+
#--Eid list? - if the GMST has a 00000000 eid when looking at it in the cs with nothing
674673
# but fallout3.esm loaded you need to add the gmst to this list, rebuild the pickle and overwrite the old one.
675674
for eid in ['fPlayerDeathReloadTime','iMapMarkerVisibleDistance','fVanityModeWheelMax','fChase3rdPersonZUnitsPerSecond',
676675
'fAutoAimMaxDegreesMiss','iHoursToRespawnCell','fEssentialDeathTime','fJumpHeightMin','fPlayerPipBoyLightTimer',

Mopy/bash/bush.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
r'zeta - sounds.bsa',
236236
r'DLCList.txt',
237237
))
238-
238+
239239
# Balo Canonical Groups -------------------------------------------------------
240240
baloGroups = (
241241
('Root',),
@@ -303,7 +303,7 @@
303303
#--Dict mapping 'ignored' top types to un-ignored top types.
304304
topIgTypes = dict([(struct.pack('I',(struct.unpack('I',type)[0]) | 0x1000),type) for type in topTypes])
305305

306-
recordTypes = set(topTypes + 'GRUP,TES4,ROAD,REFR,ACHR,ACRE,PGRD,LAND,INFO,PGRE,NAVM'.split(','))
306+
recordTypes = set(topTypes + 'GRUP,TES4,ACHR,ACRE,INFO,LAND,NAVM,PGRE,PMIS,REFR'.split(','))
307307

308308
# Id Functions ----------------------------------------------------------------
309309
def getIdFunc(modName):

Mopy/bash/cint.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,7 +2741,7 @@ def _ParentID(self):
27412741
retValue = _CGetField(self._CollectionID, self._ModID, self._RecordID, 40, 0, 0, 0, 0, 0, 0, 0)
27422742
if(retValue): return retValue
27432743
return 0
2744-
2744+
27452745
@property
27462746
def bsb(self):
27472747
"""Returns tesfile block and sub-block indices for cells in this group.
@@ -3858,11 +3858,11 @@ def create_entry(self):
38583858
# count = CBashGeneric_LIST(4, c_short)
38593859
# unused2 = CBashUINT8ARRAY_LIST(5, 2)
38603860
# exportattrs = copyattrs = ['level', 'listId', 'count']
3861-
#
3861+
#
38623862
# def mergeFilter(self,modSet):
38633863
# """Filter out items that don't come from specified modSet."""
38643864
# self.entries = [entry for entry in self.entries if entry.listId[0] in modSet]
3865-
#
3865+
#
38663866
# chanceNone = CBashGeneric(5, c_ubyte)
38673867
# flags = CBashGeneric(6, c_ubyte)
38683868
# script = CBashJunk(7) #Doesn't actually exist, but is here so that LVLC,LVLI,LVLN can be processed similarly
@@ -5283,7 +5283,6 @@ def create_sound(self):
52835283
'weatherType', 'boltRed', 'boltGreen', 'boltBlue', 'sounds_list'] #'modt_p',
52845284

52855285
#Helper functions
5286-
# removed 'LVSP'
52875286
validTypes = set(['GMST','GLOB','CLAS','FACT','HAIR','EYES','RACE',
52885287
'SOUN','SKIL','MGEF','SCPT','LTEX','ENCH','SPEL',
52895288
'BSGN','ACTI','APPA','ARMO','BOOK','CLOT','CONT',
@@ -5292,9 +5291,8 @@ def create_sound(self):
52925291
'SLGM','KEYM','ALCH','SBSP','SGST','LVLI','WTHR',
52935292
'CLMT','REGN','WRLD','CELL','ACHR','ACRE','REFR',
52945293
'PGRD','LAND','ROAD','DIAL','INFO','QUST','IDLE',
5295-
'PACK','CSTY','LSCR','ANIO','WATR','EFSH'])
5294+
'PACK','CSTY','LSCR','LVSP','ANIO','WATR','EFSH'])
52965295

5297-
# removed 'LVSP'
52985296
aggregateTypes = set(['GMST','GLOB','CLAS','FACT','HAIR','EYES','RACE',
52995297
'SOUN','SKIL','MGEF','SCPT','LTEX','ENCH','SPEL',
53005298
'BSGN','ACTI','APPA','ARMO','BOOK','CLOT','CONT',
@@ -5303,7 +5301,7 @@ def create_sound(self):
53035301
'SLGM','KEYM','ALCH','SBSP','SGST','LVLI','WTHR',
53045302
'CLMT','REGN','WRLD','CELLS','ACHRS','ACRES','REFRS',
53055303
'PGRDS','LANDS','ROADS','DIAL','INFOS','QUST','IDLE',
5306-
'PACK','CSTY','LSCR','ANIO','WATR','EFSH'])
5304+
'PACK','CSTY','LSCR','LVSP','ANIO','WATR','EFSH'])
53075305

53085306
pickupables = set(['APPA','ARMO','BOOK','CLOT','INGR','LIGH','MISC',
53095307
'WEAP','AMMO','SLGM','KEYM','ALCH','SGST'])
@@ -5413,7 +5411,6 @@ def CleanMasters2(self):
54135411
if not formId: continue
54145412
if formId[0] != self.GName:
54155413
masters.add(formId[0])
5416-
# removed 'LVSP'
54175414
if type in ('LVLI','LVLC','LVLN'):
54185415
for entry in record.entries:
54195416
formMaster = entry.listId[0]
@@ -5890,7 +5887,6 @@ def ROADS(self):
58905887
return roads
58915888

58925889
@property
5893-
# removed 'LVSP'
58945890
def tops(self):
58955891
return dict((("GMST", self.GMST),("GLOB", self.GLOB),("CLAS", self.CLAS),("FACT", self.FACT),
58965892
("HAIR", self.HAIR),("EYES", self.EYES),("RACE", self.RACE),("SOUN", self.SOUN),
@@ -5908,7 +5904,6 @@ def tops(self):
59085904
("ANIO", self.ANIO),("WATR", self.WATR),("EFSH", self.EFSH)))
59095905

59105906
@property
5911-
# removed 'LVSP'
59125907
def aggregates(self):
59135908
return dict((("GMST", self.GMST),("GLOB", self.GLOB),("CLAS", self.CLAS),("FACT", self.FACT),
59145909
("HAIR", self.HAIR),("EYES", self.EYES),("RACE", self.RACE),("SOUN", self.SOUN),

0 commit comments

Comments
 (0)