Created
July 15, 2010 20:33
-
-
Save valda/477484 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8-dos; mode: python -*- | |
import bosh | |
from bolt import GPath | |
bosh.initDirs() | |
bosh.initSettings(readOnly=True) | |
bosh.oblivionIni = bosh.OblivionIni() | |
bosh.modInfos = bosh.ModInfos() | |
bosh.modInfos.refresh() | |
fileInfo = bosh.ModInfo('.', GPath('LoversVoiceAR.esp')) | |
loadFactory = bosh.LoadFactory(True,bosh.MreDial,bosh.MreInfo) | |
modFile = bosh.ModFile(fileInfo,loadFactory) | |
modFile.load(True) | |
for dial in modFile.DIAL.records: | |
print '%08X %s %s' % (dial.fid,dial.recType,dial.eid) | |
for info in dial.infos: | |
print ' %08X %s' % (info.fid,info.recType) | |
for response in info.responses: | |
print ' %s' % response.responseText |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment