hi,
i ve been trying to rearange my ships in the quickbattle menus.
up till now everything worked fine but now i encountered a problem..
i have two ships called "Endeavour" and they dont work together cos they have the same name so i wanted to rename them, but the nebula endeavour plugin file is inside a multiple ship plugin so it dont work with BCUT.. i opened it in notepad.. changed the name to Endeavour-B but it dont seem to work..
this is my script..
...BEGIN OF THE SCRIPT (OTHER SHIPS I HAVENT TOUCHED)
##### USS Endeavour
abbrev = 'Endeavour-B'
iconName = 'Nebula'
longName = 'U.S.S. Endeavour-B'
shipFile = 'Endeavour-B'
species = App.SPECIES_GALAXY
SubMenu = 'Nebula Class'
menuGroup = 'Fed Ships'
playerMenuGroup = 'Fed Ships'
Foundation.ShipDef.Endeavour-B = Foundation.FedShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile, 'SubMenu': SubMenu})
Foundation.ShipDef.Endeavour-B.sBridge = 'nebulabridge'
Foundation.ShipDef.Endeavour-B.__dict__["Default Bridge"] = "nebulabridge"
Foundation.ShipDef.Endeavour-B.fMaxWarp = 9.6
Foundation.ShipDef.Endeavour-B.fCruiseWarp = 9.2
Foundation.ShipDef.Endeavour-B.desc = 'U.S.S. Endeavour-B NCC-71805'
if menuGroup: Foundation.ShipDef.Endeavour-B.RegisterQBShipMenu(menuGroup)
if playerMenuGroup: Foundation.ShipDef.Endeavour-B.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]
def Endeavour-BIDSwap(self):
retval = {"Textures": [["ID_glow", "Data/Models/SharedTextures/Nebula/EndeavourID_glow.tga"], ["ID_spec", "Data/Models/SharedTextures/Nebula/EndeavourID_spec.tga"]]}
return retval
Foundation.ShipDef.Endeavour-B.__dict__['SDT Entry'] = Endeavour-BIDSwap
... REST OF THE PLUGIN
i also changed the name of the gamedir/scripts/ships file to endeavour-B
what am i doing wrong..?
thanks in advance..
AnU
ps: sry if this is a stupid mistake but im new to this scripting stuff and you gotta start somewhere right..? :p