pyffi :: spells :: nif :: fix :: SpellFixTexturePath :: Class SpellFixTexturePath
[hide private]
[frames] | no frames]

Class SpellFixTexturePath

source code

   object --+            
            |            
        Spell --+        
                |        
         NifSpell --+    
                    |    
SpellParseTexturePath --+
                        |
                       SpellFixTexturePath
Known Subclasses:

Fix the texture path. Transforms 0x0a into n and 0x0d into r. This fixes a bug in nifs saved with older versions of nifskope. Also transforms / into . This fixes problems when packing files into a bsa archive. Also if the version is 20.0.0.4 or higher it will check for bad texture path form of e.g. c:program filesbethsoftobtexturesfilepath.dds and replace it with e.g. texturesfilepath.dds.
Instance Methods [hide private]
 
substitute(self, old_path)
Helper function to allow subclasses of this spell to change part of the path with minimum of code.
source code

Inherited from SpellParseTexturePath: branchentry, branchinspect, datainspect

Inherited from NifSpell: inspectblocktype

Inherited from NifSpell (private): _datainspect

Inherited from Spell: __init__, branchexit, dataentry, dataexit, recurse

Inherited from Spell (private): _branchinspect

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from Spell: get_toast_stream, toastentry, toastexit

Class Variables [hide private]
  SPELLNAME = 'fix_texturepath'
A str describing how to refer to the spell from the command line.

Inherited from SpellParseTexturePath: READONLY

Inherited from Spell: changed, data, stream, toaster

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

substitute(self, old_path)

source code 
Helper function to allow subclasses of this spell to change part of the path with minimum of code. This implementation returns path unmodified.
Overrides: SpellParseTexturePath.substitute
(inherited documentation)