* Star Trek: Bridge Commander aka BCFiles is back! Now on Gamefront! https://www.gamefront.com/games/bridge-commander
##### Created by:##### Bridge Commander Ship Menu Creator v4.0import Appimport Foundationabbrev = 'BajoranAssault'iconName = 'PeragrineF1'longName = 'Bajoran Assault'shipFile = 'BajoranAssault'species = App.SPECIES_GALAXY# SubMenumenuGroup = 'Other Ships'playerMenuGroup = 'Other Ships'Foundation.ShipDef.BajoranAssault = Foundation.ShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile })Foundation.ShipDef.BajoranAssault.fMaxWarp = 9.0 + 0.0 # 0.0 makes sure that the number is a decimal numberFoundation.ShipDef.BajoranAssault.fCruiseWarp = 6.0 + 0.0 # 0.0 makes sure that the number is a decimal numberFoundation.ShipDef.BajoranAssault.desc = 'No Description'if menuGroup: Foundation.ShipDef.BajoranAssault.RegisterQBShipMenu(menuGroup)if playerMenuGroup: Foundation.ShipDef.BajoranAssault.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]
import Appimport Multiplayer.SpeciesToShipdef GetShipStats():kShipStats = {"FilenameHigh": "data/Models/Ships/BajoranAssaultVessel/BajoranAssault.nif","FilenameMed": "data/Models/Ships/BajoranAssaultVessel/BajoranAssault.nif","FilenameLow": "data/Models/Ships/BajoranAssaultVessel/BajoranAssault.nif","Name": "BajoranAssaultVessel","HardpointFile": "BajoranAssault","Species": Multiplayer.SpeciesToShip.GALAXY}return kShipStatsdef LoadModel(bPreLoad = 0):pStats = GetShipStats()# Create the LOD infoif (not App.g_kLODModelManager.Contains(pStats["Name"])):# Params are: File Name, PickLeafSize, SwitchOut Distance,# Surface Damage Res, Internal Damage Res, Burn Value, Hole Value,# Search String for Glow, Search string for Specular, Suffix for specularpLODModel = App.g_kLODModelManager.Create(pStats["Name"])pLODModel.AddLOD(pStats["FilenameHigh"], 10, 200.0, 15.0, 15.0, 400, 900, "_glow", None, "_spec")pLODModel.AddLOD(pStats["FilenameMed"], 10, 400.0, 15.0, 15.0, 400, 900, "_glow", None, "_spec")pLODModel.AddLOD(pStats["FilenameLow"], 10, 800.0, 15.0, 30.0, 400, 900, "_glow", None, None)# kDebugObj = App.CPyDebug()if (bPreLoad == 0):pLODModel.Load()# kDebugObj.Print("Loading " + pStats["Name"] + "\n")else:pLODModel.LoadIncremental()# kDebugObj.Print("Queueing " + pStats["Name"] + " for pre-loading\n")def PreLoadModel():LoadModel(1)
Usually scripts/ships, but could also be custom/ships. Make sure the paths to the model are correctly spelt and using the same case (ie every capital letter in the actual path to the filename, as well as the filename, must be a capital letter in the path written in the pointer script etc). Make sure if it suggests there should be high, low and medium resolution models that they are either there (even if they are the same model) or the request gets deleted. Computers are very pedantic things and its the easiest thing in the world to look at a script you've just written and simply not noticed a tiny mistake. The computer will notice it.