Skip to content

Instantly share code, notes, and snippets.

@valda
Created July 15, 2010 20:33
Show Gist options
  • Save valda/477484 to your computer and use it in GitHub Desktop.
Save valda/477484 to your computer and use it in GitHub Desktop.
# -*- 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