Bridge Commander Central
BC Forums => BC Scripting => Topic started by: 086gf on June 03, 2008, 02:27:45 AM
-
Im gonna use the Space Facility as an example.
Here is the scripts/Custom/Ships file I created.
##### Created by:
##### Bridge Commander Ship Menu Creator v5.5
import App
import Foundation
abbrev = 'spacefacility'
iconName = 'SpaceFacility'
longName = 'Space Facility'
shipFile = 'spacefacility'
species = App.SPECIES_GALAXY
SubMenu = 'Other Stations'
menuGroup = 'Bases'
playerMenuGroup = ''
Foundation.ShipDef.spacefacility = Foundation.StarBaseDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile, 'SubMenu': SubMenu })
# Foundation.ShipDef.spacefacility.fMaxWarp
# Foundation.ShipDef.spacefacility.fCruiseWarp
Foundation.ShipDef.spacefacility.desc = ''
if menuGroup: Foundation.ShipDef.spacefacility.RegisterQBShipMenu(menuGroup)
if playerMenuGroup: Foundation.ShipDef.spacefacility.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]
Specifically, I want this station to be with the Terran base.
-
yay search function! ;) :P
http://bc-central.net/forums/index.php?topic=3287.0
-
I prefer Jimmies way, er, my way. :S
Simply because it doesn't overwrite anything (except for submenu placing of course).
-
I was gonna do a search but for some odd reason I had no idea what I was going to type. O_O
And yes I've already read that thread when it was new lol.
Thanks.
-
I was gonna do a search but for some odd reason I had no idea what I was going to type. O_O
lol thats ok :)
were you able to put your ship into a submenu? if not, lemme know and i can work with ya on it...
-
I think we ought to be asking why you would want to do it the way you proposed we do it?
TBH, in this case, I view my way as superior since we don't make a big change.
Also, it's quite possible I might change things in the future regarding submenu's and storing ships meaning that doing it this way means you get a "duplicate" entry (not exactly duplicate, since for BC both are different).
-
@JB76
All stations are now right were I want them.
@MLeo
The only double enteries I get is in the F3 add ships menu but thats no big deal for me really.
-
I'm just saying that's it's possible in the future that Foundation becomes more SubMenu aware, meaning no accidental overwriting ships. Which, basicly, you are doing right now.
So, I'll ask again:
I think we ought to be asking why you would want to do it the way you proposed we do it?
^_^
-
The only double enteries I get is in the F3 add ships menu but thats no big deal for me really.
same here - my Add Ships list is all screwed up lol they are all there, but all in different menu spots... i can find my ships, it just takes a little bit of hunting to locate exactly where they are...
-
I'll take a look, I think it's something simple. Like not using FoundationMenus (if it did, then it would automaticly get SubMenu improvements :)).
-
well, in my case, i have my Dominion, Cardassian, and Federation ships separated into submenus "Cruisers", "Warships", and "Battleships" (so far)... and i think because different races share the same submenu name, it tends to confuse the Add Ships section and kinda groups things together in all sorts of mixed up ways lol
i can post a screenshot, if youd like...
-
Hey Jimmy, I'm having the problem. Only mine are sorted by era (TOS, TMP, etc.) Are we thread hijacking or has the current problem been solved? :?
-
which problem do you mean? moving stock ships/stations into submenus? or how the ships appear all over the place in the Add Ships section?
-
The Add Ships menu problem.
-
aaah... well there is no fix for that (as of yet)...
-
Considering I too will soon have era submenus for some races I don't mind one bit.
-
it's just when different races have the same submenu names within them... that makes Add Ships all sorts of confused lol
the ships are all there in Add Ships, just kinda all over the place it seems; not as they should be tho...
-
Well, I could just do "Fed ENT", "Kling TOS", "Rom TMP" then to avoid said confuzzelment.
-
I'll repeat my question another time, why choose the "destructive" way (sorry, don't know how to phrase it differently ATM) over the adapting way?
As for the AddShip problem (which wasn't obvious from the first question), AddShipGUI doesn't use FoundationMenu for it's menu thing, if it had, then it would have worked exactly as excepted.
What it does do, is look for the SubMenu attribute (so one layer) and if the ship is MVAM, I think that the AddShipGUI did the MVAM already by itself before I added that to SubMenu in V3.
-
I'll repeat my question another time, why choose the "destructive" way (sorry, don't know how to phrase it differently ATM) over the adapting way?
Im guessing this is to me.
Cause this is the way I want it...blame the OCD? idk lol
-
You know, I had to look up idk, otherwise I thought you just didn't want to answer. :roll: