Here are the fixed snippits.
Remember, this tend not to propagate outside of their files, unless requested.
File 1 BazTMPRace.py
import Foundation
oBazTMPRace = Foundation.RaceDef("BazTMP", "BTMP")
File 2 BazTMPShipDef.py
import Foundation
import BazTMPRace
class BazTMPShipDef(Foundation.ShipDef):
def __init__(self, abbrev, species, dict):
dict['race'] = BazTMPRace.BazTMPRace
Foundation.ShipDef.__init__(self, abbrev, species, dict)
File 3 BCrefit.py
##### Created by:
##### Bridge Commander Ship Menu Creator v5.6
import App
import Foundation
import BazTMPShipDef
abbrev = 'bcrfit'
iconName = 'bcrefit'
longName = 'Baz1701 Refit Enterprise'
shipFile = 'bcrfit'
species = App.SPECIES_GALAXY
# SubMenu
menuGroup = 'Fed Ships'
playerMenuGroup = 'Fed Ships'
Foundation.ShipDef.bcrfit = BazTMPShipDef.BazTMPShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile })
# Foundation.ShipDef.bcrfit.fMaxWarp
# Foundation.ShipDef.bcrfit.fCruiseWarp
Foundation.ShipDef.bcrfit.desc = 'After complete its historic 5 year mission the Enterprise under went an 18 month refit. As described by Captain Willard Decker she was almost an totally new ship.'
if menuGroup: Foundation.ShipDef.bcrfit.RegisterQBShipMenu(menuGroup)
if playerMenuGroup: Foundation.ShipDef.bcrfit.RegisterQBPlayerShipMenu(playerMenuGroup)
if Foundation.shipList._keyList.has_key(longName):
Foundation.ShipDef.__dict__[longName].friendlyDetails[2] = Foundation.shipList[longName].friendlyDetails[2]
Foundation.ShipDef.__dict__[longName].enemyDetails[2] = Foundation.shipList[longName].enemyDetails[2]