rem
stringlengths
0
322k
add
stringlengths
0
2.05M
context
stringlengths
8
228k
MelString('NAM0','bloodSprayPath'), MelString('NAM1','bloodDecalPath'),
MelStruct('NAM4','I',('impactMaterialType',0L)), MelStruct('NAM5','I',('soundLevel',0L)),
def loadData(self,record,ins,type,size,readId): if size == 52: MelStruct.loadData(self,record,ins,type,size,readId) return #--Else 42 byte record (skips trainSkill, trainLevel,unused1... unpacked = ins.unpack('2iI7i2I',size,readId) unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,act...
potions[longid] = (eid,) + tuple(func(field) for func,field in
alch[longid] = (eid,) + tuple(func(field) for func,field in
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, armor, books, ingredients, keys, lights, misc, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','ARMO','BOOK','INGR','KEYM','LIGH','MISC','WEAP')] aliases = self.aliases ins = bolt.CsvReader(textPath) pack,unpack = struc...
_("Removes unpleasant auto aim."),
_("Increase Auto Aim settings to a level at which Snipers can benefit from them."),
def buildPatch(self,patchFile,keep,log): """Build patch.""" eids = ((self.key,),self.key)[isinstance(self.key,tuple)] for eid,value in zip(eids,self.choiceValues[self.chosen]): gmst = MreGmst(('GMST',0,0,0,0,0)) gmst.eid,gmst.value,gmst.longFids = eid,value,True fid = gmst.fid = keep(gmst.getFallout3Fid()) patchFile.GM...
if form1234[2] == 'I':
if len(form1234) > 2 and form1234[2] == 'I':
def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" for target in record.conditions: form1234 = target.form1234 if form1234[0] == 'I': result = function(target.param1) if save: target.param1 = result if form1234[1] == 'I': result = functi...
if form1234[3] == 'I':
if len(form1234) > 3 and form1234[3] == 'I':
def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" for target in record.conditions: form1234 = target.form1234 if form1234[0] == 'I': result = function(target.param1) if save: target.param1 = result if form1234[1] == 'I': result = functi...
defaultItemCheck = True
defaultItemCheck = inisettings['AutoItemCheck']
def buildPatch(self,log,progress): """Edits patch file as desired. Should write to log.""" pass
defaultItemCheck = True
defaultItemCheck = inisettings['AutoItemCheck']
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) if self.isEnabled: self.patchFile.aliases = self.aliases
autoKey = ('C.Climate','C.Light','C.Water','C.Owner') defaultItemCheck = False
autoKey = ('C.Climate','C.Light','C.Water','C.Owner','C.Name','C.RecordFlags') defaultItemCheck = inisettings['AutoItemCheck']
def saveConfig(self,configs): """Save config to configs dictionary.""" ListPatcher.saveConfig(self,configs) if self.isEnabled: importedMods = [item for item,value in self.configChecks.iteritems() if value and reModExt.search(item.s)] configs['ImportedMods'].update(importedMods)
cellData[fid][attr] = cellBlock.cell.__getattribute__(attr)
if tempCellData[fid][attr] != cellBlock.cell.__getattribute__(attr): cellData[fid][attr] = tempCellData[fid][attr]
def importCellBlockData(cellBlock): if not cellBlock.cell.flags1.ignored: fid = cellBlock.cell.fid if fid not in cellData: cellData[fid] = {} cellData[fid+('flags',)] = {} for attr in attrs: cellData[fid][attr] = cellBlock.cell.__getattribute__(attr) for flag in flags: cellData[fid+('flags',)][flag] = cellBlock.cell.fl...
cellData[fid+('flags',)][flag] = cellBlock.cell.flags.__getattr__(flag)
if tempCellData[fid+('flags',)][flag] != cellBlock.cell.flags.__getattr__(flag): cellData[fid+('flags',)][flag] = tempCellData[fid+('flags',)][flag]
def importCellBlockData(cellBlock): if not cellBlock.cell.flags1.ignored: fid = cellBlock.cell.fid if fid not in cellData: cellData[fid] = {} cellData[fid+('flags',)] = {} for attr in attrs: cellData[fid][attr] = cellBlock.cell.__getattribute__(attr) for flag in flags: cellData[fid+('flags',)][flag] = cellBlock.cell.fl...
attrs = set(reduce(operator.add, (self.recAttrs[bashKey] for bashKey in srcInfo.getBashTags() if bashKey in self.recAttrs)))
masters = modInfos[srcMod].header.masters attrs = set(reduce(operator.add, (self.recAttrs[bashKey] for bashKey in srcInfo.getBashTags() if bashKey in self.recAttrs)))
def importCellBlockData(cellBlock): if not cellBlock.cell.flags1.ignored: fid = cellBlock.cell.fid if fid not in cellData: cellData[fid] = {} cellData[fid+('flags',)] = {} for attr in attrs: cellData[fid][attr] = cellBlock.cell.__getattribute__(attr) for flag in flags: cellData[fid+('flags',)][flag] = cellBlock.cell.fl...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def handleCellBlock(cellBlock): modified=False for attr,value in cellData[cellBlock.cell.fid].iteritems(): if cellBlock.cell.__getattribute__(attr) != value: cellBlock.cell.__setattr__(attr,value) modified=True for flag,value in cellData[cellBlock.cell.fid+('flags',)].iteritems(): if cellBlock.cell.flags.__getattr__(fl...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def buildPatch(self,log,progress): """Merge last version of record with patched graphics data as needed.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_data = self.id_data type_count = {} for recClass in self.srcClasses: type = recClass.classType if type not in modFile.top...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def buildPatch(self,log,progress): """Make changes to patchfile.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_factions= self.id_factions type_count = {} for type in self.activeTypes: if type not in modFile.tops: continue type_count[type] = 0 for record in modFile.tops[ty...
for type,count in sorted(type_count.items()): if count: log("* %s: %d" % (type,count)) class ImportScriptContents(ImportPatcher): """Imports the contents of scripts -- currently only object/mgef scripts.""" name = _('Import Script Contents') text = _("Import the actual contents of scripts scripts.") tip = text autoRe ...
for type,count in sorted(type_count.iteritems()):
def buildPatch(self,log,progress): """Merge last version of record with patched graphics data as needed.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_data = self.id_data type_count = {} for recClass in self.srcClasses: type = recClass.classType if type not in modFile.top...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def buildPatch(self,log,progress): """Merge last version of record with patched graphics data as needed.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_data = self.id_data type_count = {} for recClass in self.srcClasses: type = recClass.classType if type not in modFile.top...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def buildPatch(self,log,progress): """Applies delta to patchfile.""" if not self.isActive: return keep = self.patchFile.getKeeper() id_deltas = self.id_deltas mod_count = {} for type in ('NPC_','CREA','CONT'): for record in getattr(self.patchFile,type).records: changed = False deltas = id_deltas.get(record.fid) if not ...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def buildPatch(self,log,progress): """Edits patch file as desired. Will write to log.""" if not self.isActive: return count = {} keep = self.patchFile.getKeeper() for record in self.patchFile.NPC_.records: race = record.race model = record.model if (model.modPath != 'Characters\_male\SkeletonBeast.nif' and model.modPat...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def buildPatch(self,log,progress): """Adds merged lists to patchfile.""" if not self.isActive: return keep = self.patchFile.getKeeper() worldsPatched = set() for worldBlock in self.patchFile.WRLD.worldBlocks: worldId = worldBlock.world.fid curRoad = worldBlock.road newRoad = self.world_road.get(worldId) if newRoad and ...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def buildPatch(self,log,progress): """Merge last version of record with patched sound data as needed.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_data = self.id_data type_count = {} for recClass in self.srcClasses: type = recClass.classType if type not in modFile.tops: ...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def buildPatch(self,log,progress): """Adds merged lists to patchfile.""" if not self.isActive: return patchFile = self.patchFile keep = self.patchFile.getKeeper() id_stat = self.id_stat allCounts = [] for type in self.activeTypes: if type not in patchFile.tops: continue typeFields = self.typeFields[type] count,counts =...
defaultItemCheck = False
defaultItemCheck = inisettings['AutoItemCheck']
def getBook(objectId,eid,full,value,iconPath,modelPath,modb_p): book = MreBook(('BOOK',0,0,0,0)) book.longFids = True book.changed = True book.eid = eid book.full = full book.value = value book.weight = 0.2 book.fid = keep((GPath('Cobl Main.esm'),objectId)) book.text = '<div align="left"><font face=3 color=4444>' book....
MelStruct('VNAM','I','soundlevel'),
MelStruct('VNAM','I','soundLevel'),
def loadData(self,record,ins,type,size,readId): if size == 48: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 40: unpacked = ins.unpack('10I',size,readId) elif size == 36: unpacked = ins.unpack('9I',size,readId) else: raise "Unexpected size encountered for IPDS:DATA subrecord: %s" % size unpac...
recAttrs_class[recClass] = ('sound',)
recAttrs_class[recClass] = ('soundLooping','soundActivation')
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
self.longTypes = set(('MGEF','ACTI','LIGH','WTHR','CONT','DOOR'))
self.longTypes = set(('MGEF','ACTI','LIGH','WTHR','CONT','DOOR','EXPL','IPCT','PROJ'))
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
MelStruct('EFID','4s',('name','REHE')),
MelFid('EFID','baseEffect'),
def __init__(self,attr='effects'): """Initialize elements.""" MelGroups.__init__(self,attr, MelStruct('EFID','4s',('name','REHE')), MelStruct('EFIT','5i','magnitude','area','duration','recipient','actorValue'), # MelGroup('scriptEffect', # MelEffects.MelEffectsScit(), # MelString('FULL','full'), # ), MelCon...
MelString('ICON','maleIconPath'), MelString('MICO','maleIcon'),
MelString('ICON','maleLargeIconPath'), MelString('MICO','maleSmallIconPath'),
# def __init__(self,attr='model',index=0):
MelString('ICO2','femaleIconPath'), MelString('MIC2','femaleIcon'),
MelString('ICO2','femaleLargeIconPath'), MelString('MIC2','femaleSmallIconPath'),
# def __init__(self,attr='model',index=0):
zip((sfloat,int,int,),fields[4:7]))
zip((sfloat,int,int),fields[4:7]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, armor, books, ingredients, keys, lights, misc, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','ARMO','BOOK','INGR','KEYM','LIGH','MISC','WEAP')] aliases = self.aliases ins = bolt.CsvReader(textPath) pack,unpack = struc...
self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}}
self.type_stats = {'ALCH':{},'AMMO':{},'ARMO':{},'BOOK':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'WEAP':{}}
def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'B...
'APPA':('value', 'eid', 'full'),
def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'B...
'CLOT':('value', 'eid', 'full'),
def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'B...
'SGST':('value', 'eid', 'full'), 'SLGM':('value', 'eid', 'full'),
def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'B...
loadFactory= LoadFactory(False,MreAlch,MreAmmo,MreAppa,MreArmo,MreBook,MreClot,MreIngr,MreKeym,MreLigh,MreMisc,MreSgst,MreSlgm,MreWeap)
loadFactory= LoadFactory(False,MreAlch,MreAmmo,MreArmo,MreBook,MreIngr,MreKeym,MreLigh,MreMisc,MreWeap)
def readFromMod(self,modInfo): """Reads stats from specified mod.""" loadFactory= LoadFactory(False,MreAlch,MreAmmo,MreAppa,MreArmo,MreBook,MreClot,MreIngr,MreKeym,MreLigh,MreMisc,MreSgst,MreSlgm,MreWeap) modFile = ModFile(modInfo,loadFactory) modFile.load(True) mapper = modFile.getLongMapper() for type in self.type_st...
loadFactory= LoadFactory(True,MreAlch,MreAmmo,MreAppa,MreArmo,MreBook,MreClot,MreIngr,MreKeym,MreLigh,MreMisc,MreSgst,MreSlgm,MreWeap)
loadFactory= LoadFactory(True,MreAlch,MreAmmo,MreArmo,MreBook,MreIngr,MreKeym,MreLigh,MreMisc,MreWeap)
def writeToMod(self,modInfo): """Writes stats to specified mod.""" loadFactory= LoadFactory(True,MreAlch,MreAmmo,MreAppa,MreArmo,MreBook,MreClot,MreIngr,MreKeym,MreLigh,MreMisc,MreSgst,MreSlgm,MreWeap) modFile = ModFile(modInfo,loadFactory) modFile.load(True) mapper = modFile.getLongMapper() changed = {} #--changed[mod...
('APPA', bolt.csvFormat('iss')+'\n', ('"' + '","'.join((_('Mod Name'),_('ObjectIndex'), _('Value'),_('Editor Id'),_('Name'))) + '"\n')),
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
('"' + '","'.join((_('Mod Name'),_('ObjectIndex'), _('Value'),_('Editor Id'),_('Name'))) + '"\n')), ('CLOT', bolt.csvFormat('iss')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
('SGST', bolt.csvFormat('iss')+'\n', ('"' + '","'.join((_('Mod Name'),_('ObjectIndex'), _('Value'),_('Editor Id'),_('Name'))) + '"\n')), ('SLGM', bolt.csvFormat('iss')+'\n', ('"' + '","'.join((_('Mod Name'),_('ObjectIndex'), _('Value'),_('Editor Id'),_('Name'))) + '"\n')),
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}}
self.type_stats = {'ALCH':{},'AMMO':{},'ARMO':{},'BOOK':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'WEAP':{}}
def __init__(self,types=None,aliases=None): """Initialize.""" self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}} self.type_attrs = { 'ALCH':('eid', 'full', 'weight', 'value', 'iconPath'), 'AMMO':('eid', 'full', 'weight', ...
'ALCH':('eid', 'full', 'weight', 'value', 'iconPath'), 'AMMO':('eid', 'full', 'weight', 'value', 'damage', 'speed', 'enchantPoints', 'iconPath'), 'APPA':('eid', 'full', 'weight', 'value', 'quality', 'iconPath'), 'ARMO':('eid', 'full', 'weight', 'value', 'health', 'strength', 'maleIconPath', 'femaleIconPath'), 'BOOK':('...
'ALCH':('eid', 'full', 'weight', 'value', 'largeIconPath', 'smallIconPath'), 'AMMO':('eid', 'full', 'speed', 'value', 'clipRounds', 'largeIconPath', 'smallIconPath'), 'ARMO':('eid', 'full', 'weight', 'value', 'health', 'ar', 'maleLargeIconPath', 'maleSmallIconPath', 'femaleLargeIconPath', 'femaleSmallIconPath'), 'BOOK...
def __init__(self,types=None,aliases=None): """Initialize.""" self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}} self.type_attrs = { 'ALCH':('eid', 'full', 'weight', 'value', 'iconPath'), 'AMMO':('eid', 'full', 'weight', ...
'KEYM':('eid', 'full', 'weight', 'value', 'iconPath'), 'LIGH':('eid', 'full', 'weight', 'value', 'duration', 'iconPath'), 'MISC':('eid', 'full', 'weight', 'value', 'iconPath'), 'SGST':('eid', 'full', 'weight', 'value', 'uses', 'iconPath'), 'SLGM':('eid', 'full', 'weight', 'value', 'iconPath'), 'WEAP':('eid', 'full', 'w...
'KEYM':('eid', 'full', 'weight', 'value', 'largeIconPath', 'smallIconPath'), 'LIGH':('eid', 'full', 'weight', 'value', 'duration','iconPath'), 'MISC':('eid', 'full', 'weight', 'value', 'largeIconPath', 'smallIconPath'), 'WEAP':('eid', 'full', 'weight', 'value', 'health', 'damage','clipsize', 'reach','ammoUse','minSprea...
def __init__(self,types=None,aliases=None): """Initialize.""" self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}} self.type_attrs = { 'ALCH':('eid', 'full', 'weight', 'value', 'iconPath'), 'AMMO':('eid', 'full', 'weight', ...
loadFactory= LoadFactory(False,MreAlch,MreAmmo,MreAppa,MreArmo,MreBook,MreClot,MreIngr,MreKeym,MreLigh,MreMisc,MreSgst,MreSlgm,MreWeap)
loadFactory= LoadFactory(False,MreAlch,MreAmmo,MreArmo,MreBook,MreIngr,MreKeym,MreLigh,MreMisc,MreWeap)
def readFromMod(self,modInfo): """Reads stats from specified mod.""" loadFactory= LoadFactory(False,MreAlch,MreAmmo,MreAppa,MreArmo,MreBook,MreClot,MreIngr,MreKeym,MreLigh,MreMisc,MreSgst,MreSlgm,MreWeap) modFile = ModFile(modInfo,loadFactory) modFile.load(True) mapper = modFile.getLongMapper() for type in self.type_st...
if type in ['ALCH','AMMO','APPA','BOOK','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP']:
if type in ['ALCH','AMMO','BOOK','INGR','KEYM','LIGH','MISC']:
def readFromMod(self,modInfo): """Reads stats from specified mod.""" loadFactory= LoadFactory(False,MreAlch,MreAmmo,MreAppa,MreArmo,MreBook,MreClot,MreIngr,MreKeym,MreLigh,MreMisc,MreSgst,MreSlgm,MreWeap) modFile = ModFile(modInfo,loadFactory) modFile.load(True) mapper = modFile.getLongMapper() for type in self.type_st...
elif type in ['CLOT','ARMO']:
elif type in ['WEAP',]: if record.model: self.model[longid] = record.model.modPath if record.shellCasingModel: self.ShellCasingmodel[longid] = record.shellCasingModel.modPath if record.scopeModel: self.Scopemodel[longid] = record.scopeModel.modPath if record.worldModel: self.Gndmodel[longid] = record.worldModel.modPath...
def readFromMod(self,modInfo): """Reads stats from specified mod.""" loadFactory= LoadFactory(False,MreAlch,MreAmmo,MreAppa,MreArmo,MreBook,MreClot,MreIngr,MreKeym,MreLigh,MreMisc,MreSgst,MreSlgm,MreWeap) modFile = ModFile(modInfo,loadFactory) modFile.load(True) mapper = modFile.getLongMapper() for type in self.type_st...
alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')]
alch, ammo, armor, books, ingredients, keys, lights, misc, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','ARMO','BOOK','INGR','KEYM','LIGH','MISC','WEAP')]
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
zip((str,sfloat,int,str),fields[4:8]))
zip((str,sfloat,int,str,str),fields[4:9]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
zip((str,sfloat,int,int,sfloat,int,str),fields[4:11]))
zip((str,sfloat,int,int,str,str),fields[4:10]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
zip((str,sfloat,int,int,int,str,str),fields[4:10]))
zip((str,sfloat,int,int,int,str,str,str,str),fields[4:13]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
zip((str,sfloat,int,int,str),fields[4:9])) elif type == 'CLOT': armor[longid] = (eid,) + tuple(func(field) for func,field in zip((str,sfloat,int,int,str,str),fields[4:10]))
zip((str,sfloat,int,str,str),fields[4:9]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
zip((str,sfloat,int,str),fields[4:8])) elif type == 'SGST': books[longid] = (eid,) + tuple(func(field) for func,field in zip((str,sfloat,int,int,str),fields[4:9])) elif type == 'SLGM': keys[longid] = (eid,) + tuple(func(field) for func,field in zip((str,sfloat,int),fields[4:8]))
zip((str,sfloat,int,str,str),fields[4:9]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
zip((str,sfloat,int,int,int,sfloat,sfloat,int,str),fields[4:13]))
zip((str,sfloat,int,int,int,int, sfloat,int,sfloat,sfloat,sfloat,int,int, sfloat,sfloat,sfloat,sfloat,sfloat, sfloat,sfloat,sfloat,sfloat, sfloat,sfloat,sfloat,sfloat,sfloat,sfloat, sfloat,sfloat,int,sfloat,str,str),fields[4:38]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
('ALCH', bolt.csvFormat('ssfiss')+'\n',
('ALCH', bolt.csvFormat('ssfisss')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Icon Path'),_('Model'))) + '"\n')),
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Large Icon Path'),_('Small Icon Path'),_('Model'))) + '"\n')),
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
('AMMO', bolt.csvFormat('ssfiifiss')+'\n',
('AMMO', bolt.csvFormat('ssfiisss')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Damage'),_('Speed'),_('EPoints'),_('Icon Path'),_('Model'))) + '"\n')),
_('Editor Id'),_('Name'),_('Speed'),_('Value'),_('Clip Rounds'),_('Large Icon Path'),_('Small Icon Path'),_('Model'))) + '"\n')),
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
('ARMO', bolt.csvFormat('ssfiiissssss')+'\n',
('ARMO', bolt.csvFormat('ssfiiissssssss')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Health'), _('AR'),_('Male Icon Path'),_('Female Icon Path'),_('Male Model Path'), _('Female Model Path'),_('Male World Model Path'),_('Female World Model Path'))) + '"\n')),
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Health'),_('AR'), _('Male Large Icon Path'),_('Male Small Icon Path'),_('Female Large Icon Path'),_('Female Small Icon Path'), _('Male Model Path'),_('Female Model Path'),_('Male World Model Path'),_('Female World Model Path'))) + '"\n')),
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
('BOOK', bolt.csvFormat('ssfiiss')+'\n',
('BOOK', bolt.csvFormat('ssfisss')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('EPoints'),_('Icon Path'),_('Model'))) + '"\n')), ('CLOT', bolt.csvFormat('ssfiissssss')+'\n', ('"' + '","'.join((_('Type'),_('Mod Name'),_('ObjectIndex'), _('Editor Id'),_('Name'),_('Weight'),_('Value'),_('EPoints'), _('Male Icon Path'),_('Female Icon Path'),_('Male M...
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Large Icon Path'),_('Small Icon Path'),_('Model'))) + '"\n')),
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
('KEYM', bolt.csvFormat('ssfiss')+'\n',
('KEYM', bolt.csvFormat('ssfisss')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
('MISC', bolt.csvFormat('ssfiss')+'\n',
('MISC', bolt.csvFormat('ssfisss')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Icon Path'),_('Model'))) + '"\n')), ('SGST', bolt.csvFormat('ssfiiss')+'\n',
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Large Icon Path'),_('Small Icon Path'),_('Model'))) + '"\n')), ('WEAP', bolt.csvFormat('ssfiiiififffiifffffffffffffffffifssssss')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Uses'),_('Icon Path'),_('Model'))) + '"\n')), ('SLGM', bolt.csvFormat('ssfiss')+'\n', ('"' + '","'.join((_('Type'),_('Mod Name'),_('ObjectIndex'), _('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Icon Path'),_('Model'))) + '"\n')), ('WEAP', bolt.csvFormat('ssfiiiff...
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Health'),_('Damage'),_('Clip Size'), _('Reach'), _('Ammo Use'), _('Min Spread'), _('Spread'), _('Sight Fov'), _('Base VATS To-Hit Chance'), _('Projectile Count'), _('Min Range'), _('Max Range'), _('Fire Rate'), _('Override - Action Point'), _('Rumble - Left Motor Stren...
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
if type == 'ARMO' or type == 'CLOT':
if type == 'ARMO':
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
recAttrs_class[recClass] = ('maleBody','maleWorld','maleIconPath','maleIcon','femaleBody','femaleWorld','femaleIconPath','femaleIcon','flags')
recAttrs_class[recClass] = ('maleBody','maleWorld','maleLargeIconPath','maleSmallIconPath','femaleBody','femaleWorld','femaleLargeIconPath','femaleSmallIconPath','flags')
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
MelStruct('WLST','IiI', 'Weather', (FID,'weather'), 'chance', (FID,'global')),
MelStructA('WLST','IiI', 'Weather', (FID,'weather'), 'chance', (FID,'global')),
# def loadData(self,record,ins,type,size,readId):
MelBase('POBA', 'marker'),
MelBase('POBA', 'marker', ''),
def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" if self.subType == 'PLDT' and record.locType != 5: result = function(record.locId) if save: record.locId = result elif self.subType == 'PLD2' and record.locType2 != 5: result = function(...
MelBase('POEA', 'marker'),
MelBase('POEA', 'marker', ''),
def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" if self.subType == 'PLDT' and record.locType != 5: result = function(record.locId) if save: record.locId = result elif self.subType == 'PLD2' and record.locType2 != 5: result = function(...
MelBase('POCA', 'marker'),
MelBase('POCA', 'marker', ''),
def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" if self.subType == 'PLDT' and record.locType != 5: result = function(record.locId) if save: record.locId = result elif self.subType == 'PLD2' and record.locType2 != 5: result = function(...
MelFid('EAMT','enchantment'),
MelOptStruct('EAMT','H', 'enchantment'),
def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that...
MelFidList('REPL','repairList'),
MelGroup('destructable', MelBase('DEST','header'), MelStructs('DSTD','=4B4I','stages','health','index','damageStage', (_flags,'flags',0L),'selfDamagePerSecond',(FID,'explosion',None), (FID,'debris',None),'debrisCount'), MelBase('DSTF','footer'), ), MelFid('REPL','repairList'),
def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that...
MelFid('NNAM','embeddedWeaponNode'),
MelString('NNAM','embeddedWeaponNode'),
def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that...
MelBase('DNAM','_dnam'), MelBase('CRDT','_crdt'),
MelStruct('DNAM','HffBBIBffffIIBIBffBIfffffffffffHBffHfff', 'animationType','animationMultiplier','reach',(_flags1,'flags1',0L), 'gripAnimation','ammoUse','reloadAnimation','minSpread','spread','unknown','sightFov',(FID,'projectile',None), 'baseVatsToHitChance','attackAnimation','projectileCount','embeddedWeaponActorVa...
def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that...
recAttrs_class[recClass] = ('iconPath','model')
recAttrs_class[recClass] = ('largeIconPath','smallIconPath','model','shellCasingModel','scopeModel','worldModel','firstPersonModel')
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}}
self.type_stats = {'ALCH':{},'AMMO':{},'ARMO':{},'BOOK':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'WEAP':{}}
def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'B...
'AMMO':('eid', 'speed', 'flags', 'value', 'clipRounds'), 'APPA':('eid', 'weight', 'value', 'quality'),
'AMMO':('eid', 'speed', 'value', 'clipRounds'),
def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'B...
'CLOT':('eid', 'weight', 'value', 'enchantPoints'),
def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'B...
'SGST':('eid', 'weight', 'value', 'uses'), 'SLGM':('eid', 'weight', 'value'), 'WEAP':('eid', 'weight', 'value', 'health', 'damage', 'clipsize', 'minSpread', 'spread', 'baseVatsToHitChance', 'minRange', 'maxRange', 'fireRate', 'overrideActionPoint', 'overrideDamageToWeaponMult', 'attackShotsPerSec', 'reloadTime', 'jamTi...
'WEAP':('eid', 'weight', 'value', 'health', 'damage','clipsize', 'reach','ammoUse','minSpread','spread','sightFov','baseVatsToHitChance','projectileCount', 'minRange','maxRange','fireRate','overrideActionPoint','rumbleLeftMotorStrength', 'rumbleRightMotorStrength','rumbleDuration','overrideDamageToWeaponMult','attackSh...
def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'B...
alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')]
alch, ammo, armor, books, ingredients, keys, lights, misc, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','ARMO','BOOK','INGR','KEYM','LIGH','MISC','WEAP')]
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
zip((sfloat,int,int,sfloat,int),fields[4:9]))
zip((sfloat,int,int),fields[4:7]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
zip((sfloat,int,int,),fields[4:7])) elif type == 'CLOT': armor[longid] = (eid,) + tuple(func(field) for func,field in zip((sfloat,int,int,),fields[4:7]))
zip((sfloat,int),fields[4:6]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
elif type == 'SGST': books[longid] = (eid,) + tuple(func(field) for func,field in zip((sfloat,int,int,),fields[4:7])) elif type == 'SLGM': keys[longid] = (eid,) + tuple(func(field) for func,field in zip((sfloat,int),fields[4:6]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
zip((sfloat,int,int,int,sfloat,sfloat,int),fields[4:11]))
zip((sfloat,int,int,int,int, sfloat,int,sfloat,sfloat,sfloat,int,int, sfloat,sfloat,sfloat,sfloat,sfloat, sfloat,sfloat,sfloat,sfloat, sfloat,sfloat,sfloat,sfloat,sfloat,sfloat, sfloat,sfloat,int,sfloat),fields[4:35]))
def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, appa, armor, books, clothing, ingredients, keys, lights, misc, sigilstones, soulgems, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','APPA','ARMO','BOOK','CLOT','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP')] aliase...
('AMMO', bolt.csvFormat('sfiifi')+'\n',
('AMMO', bolt.csvFormat('sfii')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
_('Editor Id'),_('Weight'),_('Value'),_('Damage'),_('Speed'),_('EPoints'))) + '"\n')),
_('Editor Id'),_('Speed'),_('Value'),_('Clip Rounds'))) + '"\n')),
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
('BOOK', bolt.csvFormat('sfii')+'\n',
('BOOK', bolt.csvFormat('sfi')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
_('Editor Id'),_('Weight'),_('Value'),_('EPoints'))) + '"\n')), ('CLOT', bolt.csvFormat('sfii')+'\n', ('"' + '","'.join((_('Type'),_('Mod Name'),_('ObjectIndex'), _('Editor Id'),_('Weight'),_('Value'),_('EPoints'))) + '"\n')),
_('Editor Id'),_('Weight'),_('Value'))) + '"\n')),
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
('SGST', bolt.csvFormat('sfii')+'\n',
('WEAP', bolt.csvFormat('sfiiiififffiifffffffffffffffffif')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
_('Editor Id'),_('Weight'),_('Value'),_('Uses'))) + '"\n')), ('SLGM', bolt.csvFormat('sfi')+'\n', ('"' + '","'.join((_('Type'),_('Mod Name'),_('ObjectIndex'), _('Editor Id'),_('Weight'),_('Value'))) + '"\n')), ('WEAP', bolt.csvFormat('sfiiiffi')+'\n', ('"' + '","'.join((_('Type'),_('Mod Name'),_('ObjectIndex'), _('Ed...
_('Editor Id'),_('Weight'),_('Value'),_('Health'),_('Damage'),_('Clip Size'), _('Reach'), _('Ammo Use'), _('Min Spread'), _('Spread'), _('Sight Fov'), _('Base VATS To-Hit Chance'), _('Projectile Count'), _('Min Range'), _('Max Range'), _('Fire Rate'), _('Override - Action Point'), _('Rumble - Left Motor Strength'), _('...
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
if isinstance(inName, str):
if isinstance(self.inName, str):
def __str__(self): if self.inName: if isinstance(inName, str): return self.inName+': '+self.message return self.inName.s+': '+self.message else: return _('Unknown File: ')+self.message
MelBase('VNAM','_vnam','soundLevel'),
MelBase('VNAM','soundLevel'),
def loadData(self,record,ins,type,size,readId): if size == 136: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 124: #--Else 124 byte record (skips sightUsage, semiAutomaticFireDelayMin and semiAutomaticFireDelayMax... unpacked = ins.unpack('Iff4B5fI4BffII11fIIffI',size,readId) elif size == 120...
self.longTypes = set(('MGEF','ACTI','LIGH','WTHR','CONT','DOOR','EXPL','IPCT','PROJ','ASPC','SOUN','REGN'))
self.longTypes = set(('MGEF','ACTI','LIGH','WTHR','CONT','DOOR','EXPL','IPCT','PROJ','ASPC','WEAP','SOUN','REGN'))
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
MelString('ICON','iconPath'), MelFid('ENAM','enchantment'), MelOptStruct('ANAM','H','enchantPoints'), MelStruct('DATA','fB3sIfH','speed',(_flags,'flags',0L),('unused1',null3),'value','weight','damage'),
MelString('ICON','largeIconPath'), MelString('MICO','smallIconPath'), MelGroup('destructable', MelBase('DEST','header'), MelStruct('DEST','IhH','health','count','flags'), MelGroups('stages', MelStruct('DSTD','=4B4I','health','index','damageStage','flags', 'selfDamagePerSecond',(FID,'explosion',None),(FID,'debris',None)...
def getEffectsSummary(self,mgef_school=None,mgef_name=None): """Return a text description of magic effects.""" mgef_school = mgef_school or bush.mgef_school mgef_name = mgef_name or bush.mgef_name buff = cStringIO.StringIO() avEffects = bush.actorValueEffects aValues = bush.actorValues buffWrite = buff.write if self.ef...
if size == 224:
if size == 308:
def loadData(self,record,ins,type,size,readId): if size == 224: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 96: #--Else 96 byte record (skips particle variables, and color keys # Only used twice in test shaders (0004b6d5, 0004b6d6) unpacked = ins.unpack('B3s3I3Bs9f3Bs8fI',size,readId) else:...
elif size == 96: unpacked = ins.unpack('B3s3I3Bs9f3Bs8fI',size,readId)
elif size == 300: unpacked = ins.unpack('B3s3I3Bs9f3Bs8f5I19f3Bs3Bs3Bs6f5fI5f3BsfII4f',size,readId) elif size == 284: unpacked = ins.unpack('B3s3I3Bs9f3Bs8f5I19f3Bs3Bs3Bs6f5fI5f3BsfII',size,readId) elif size == 248: unpacked = ins.unpack('B3s3I3Bs9f3Bs8f5I19f3Bs3Bs3Bs6f5fI',size,readId) elif size == 244: unpacked = ins...
def loadData(self,record,ins,type,size,readId): if size == 224: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 96: #--Else 96 byte record (skips particle variables, and color keys # Only used twice in test shaders (0004b6d5, 0004b6d6) unpacked = ins.unpack('B3s3I3Bs9f3Bs8fI',size,readId) else:...
MelEfshData('DATA','B3s3I3Bs9f3Bs8f5I19f3Bs3Bs3Bs6f',(_flags,'flags'),('unused1',null3),'memSBlend', 'memBlendOp','memZFunc','fillRed','fillGreen','fillBlue',('unused2',null1), 'fillAIn','fillAFull','fillAOut','fillAPRatio','fillAAmp', 'fillAFreq','fillAnimSpdU','fillAnimSpdV','edgeOff','edgeRed', 'edgeGreen','edgeBlue...
MelString('NAM7','holesTexture'), MelEfshData('DATA','B3s3I3Bs9f3Bs8f5I19f3Bs3Bs3Bs6f5fI5f3BsfII6f',(_flags,'flags'),('unused1',null3),'memSBlend', 'memBlendOp','memZFunc','fillRed','fillGreen','fillBlue',('unused2',null1), 'fillAIn','fillAFull','fillAOut','fillAPRatio','fillAAmp', 'fillAFreq','fillAnimSpdU','fillAnimS...
def loadData(self,record,ins,type,size,readId): if size == 224: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 96: #--Else 96 byte record (skips particle variables, and color keys # Only used twice in test shaders (0004b6d5, 0004b6d6) unpacked = ins.unpack('B3s3I3Bs9f3Bs8fI',size,readId) else:...
target = record.__getattribute__(self.attr,None)
target = record.__getattribute__(self.attr)
def dumpData(self,record,out): target = record.__getattribute__(self.attr,None) if not target: return if record.type == 0: format,attrs = ('II',('quest','queststage')) elif record.type == 1: format,attrs = ('I',('ability',)) elif record.type == 2: format,attrs = ('HB',('entrypoint','function')) else: raise ModError(ins...
target = record.__getattribute__(self.attr,None)
target = record.__getattribute__(self.attr)
def mapFids(self,record,function,save=False): target = record.__getattribute__(self.attr,None) if not target: return if record.type == 0: result = function(target.quest) if save: target.quest = result elif record.type == 1: result = function(target.ability) if save: target.ability = result
target = self.getDefault() record.__getattribute__(self.attr).append(target)
if type in ('EPFD','EPFT','EPF2','EPF3','SCHR'): target = self.getDefault() record.__getattribute__(self.attr).append(target) else: target = record.__getattribute__(self.attr)[-1]
def loadData(self,record,ins,type,size,readId): target = self.getDefault() record.__getattribute__(self.attr).append(target) element = self.loaders[type] slots = ['recordType'] slots.extend(element.getSlotsUsed()) target.__slots__ = slots target.recordType = type element.loadData(target,ins,type,size,readId)
target = record.__getattribute__(self.attr) if not target: return element = self.loaders[target.recordType] if not element: raise ModError(ins.inName,_('Unexpected type: %d') % target.recordType) element.dumpData(target,out)
for target in record.__getattribute__(self.attr): element = self.loaders[target.recordType] if not element: raise ModError(ins.inName,_('Unexpected type: %d') % target.recordType) element.dumpData(target,out)
def dumpData(self,record,out): target = record.__getattribute__(self.attr) if not target: return element = self.loaders[target.recordType] if not element: raise ModError(ins.inName,_('Unexpected type: %d') % target.recordType) element.dumpData(target,out)