1) Remove "Foundation.ShipDef.Shuttle = Foundation.FedShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile })"
2) Relocate "Foundation.ShipDef.Shuttle.SubMenu = "Shuttles"" to underneath import Foundation
3) Remove the submenus completely?
Alright i'll give those a try.
EDIT: Well the third issue is resolved. Removing the shipdef info line on the ships that i've relocated removes the new entry so I had to put it back in for them but it worked with the others fine. Removing the submenu lines for the G and Sov parts fixed that issue too. I just need the Shuttle , Kessok Mine and both Comm Arrays to only show up in there new locations.
Shuttle should be in Fed Ships/Shuttles only.
##### Created by:
##### Bridge Commander Universal Tool
import App
import Foundation
abbrev = "Shuttle"
iconName = "FedShuttle"
longName = "Type 6"
shipFile = "Shuttle"
species = App.SPECIES_GALAXY
menuGroup = "Fed Ships"
playerMenuGroup = "Fed Ships"
Foundation.ShipDef.Shuttle = Foundation.FedShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile })
Foundation.ShipDef.Shuttle.name = "Type 6"
Foundation.ShipDef.Shuttle.SubMenu = "Shuttles"
Foundation.ShipDef.Shuttle.hasTGLName = 1
Foundation.ShipDef.Shuttle.hasTGLDesc = 1
Foundation.ShipDef.Shuttle.fMaxWarp = 6.5 + 0.0001
Foundation.ShipDef.Shuttle.fCruiseWarp = 4.5 + 0.0001
Foundation.ShipDef.Shuttle.sBridge = "Type11Bridge"
if menuGroup: Foundation.ShipDef.Shuttle.RegisterQBShipMenu(menuGroup)
if playerMenuGroup: Foundation.ShipDef.Shuttle.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]
Kessok Mine should be in Kessok Ships only.
##### Created by:
##### Bridge Commander Universal Tool
import App
import Foundation
abbrev = "KessokMine"
iconName = "KessokMine"
longName = "Kessok Mine"
shipFile = "KessokMine"
species = App.SPECIES_GALAXY
menuGroup = "Kessok Ships"
playerMenuGroup = "Kessok Ships"
Foundation.ShipDef.KessokMine = Foundation.KessokShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile })
Foundation.ShipDef.KessokMine.name = "Kessok Mine"
Foundation.ShipDef.KessokMine.hasTGLName = 1
Foundation.ShipDef.KessokMine.hasTGLDesc = 1
if menuGroup: Foundation.ShipDef.KessokMine.RegisterQBShipMenu(menuGroup)
if playerMenuGroup: Foundation.ShipDef.KessokMine.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]
CommArray and CommLight should be in Bases only.
##### Created by:
##### Bridge Commander Universal Tool
import App
import Foundation
abbrev = "CommArray"
iconName = "CommArray"
longName = "Communications Array"
shipFile = "CommArray"
species = App.SPECIES_GALAXY
menuGroup = "Bases"
Foundation.ShipDef.CommArray = Foundation.StarBaseDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile })
Foundation.ShipDef.CommArray.name = "Communications Array"
Foundation.ShipDef.CommArray.hasTGLName = 1
Foundation.ShipDef.CommArray.hasTGLDesc = 1
if menuGroup: Foundation.ShipDef.CommArray.RegisterQBShipMenu(menuGroup)
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]
##### Created by:
##### Bridge Commander Universal Tool
import App
import Foundation
abbrev = "CommLight"
iconName = "CommLight"
longName = "Communications Array Light"
shipFile = "CommLight"
species = App.SPECIES_GALAXY
menuGroup = "Bases"
Foundation.ShipDef.CommLight = Foundation.StarBaseDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile })
Foundation.ShipDef.CommLight.name = "Communications Array Light"
Foundation.ShipDef.CommLight.hasTGLName = 1
Foundation.ShipDef.CommLight.hasTGLDesc = 1
if menuGroup: Foundation.ShipDef.CommLight.RegisterQBShipMenu(menuGroup)
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]