[Register] [771999 Members] [83474 Online; 406 Members, 83068 Guests]  
Bridge Commander
File Search





Bridge Commander Downloads > Utilities > 3rd party Scripting:
SubMenu (3.7)
Filename: submenuv3_7.zip


Size:
Version:
Developer:
Downloads:
Date Added:
Requirements:
Type / Category:
10.97 KB
3.7
MLeoDaalder
25941
08-29-2006
Foundation
Utilities > 3rd party Scripting


Average User Rating: 8.8
Number of Votes: 28
Related Files:
Latest 5 Utilities > 3rd party Scripting:
- NEMESIS INTERFACE (3.0)
- Shield Percentages (0.1)
- BC Stabilizer (20090919)
- Karronades Accelerated Intercept (1.0.1)
- Stock Plug-in Override (2.0)

5 Other Files by MLeoDaalder:
- FTech ( Foundation Technologies )
- Unified Main Menu (1.0)
- NanoFX2b Fixes (1.0)
- FPS Counter 2.0
- Skinning and Damaging Tool V2.0

 Bridge Commander
 » About
 » Screenshots
 » Screenshots 2
 » System Requirements
 » Default Key Layout
 » Downloads
    - Bridges
    - Official Releases
    - Maps
    - Mods
    - Media
    - Sounds
    - Utilities
     - Star Trek
        - Ships
        - Stations
        - Enterprise Series
        - Starfleet Museum
    - Star Wars
    - BSG Ships
    - Babylon5 Ships
 » File Search
 » Submit Files

 The News
 » News
 » News Archive
 » Submit News

 The Community
 » Tutorials
 » Links
 » Official BC Forums
    - BC General
    - Modding & Editing
    - Help Forum
    - Star Trek Talk

 » BCC - Forums
    - Modding
    - Scripting
    - Bridge Modding
    - Releases
    - Tech Support

 » Submit PotD
 » PotD Archive

 The Site
 » Latest Poll
 » Rules
 » FAQ
 » About
 » Staff
 » Contact Us
 » Apply to Volunteer





SubMenu (3.7) - File Description  


Tech: 10
Quality: 10
Stability: 10
Creativity: 10
Item Placement: 10
Size vs. Usefulness: 10
Installation Instructions: 10

Overall Rating: 10

Description:
This is a new version of SubMenu from MLeo. It has enhanced support for MVAM ships, alphabetical sorting and hiding ships in the menu without loosing the shipdef (again useful for mvam ships in particular).

Sub Menu is already a well established script, this new version only adds to its legacy.

Recommended Download



SubMenu (3.7) - Screenshots  
Screenshots:
Click to enlarge Click to enlarge


SubMenu (3.7) - File Download Options  

Primary Download Locations:
  Name:
Location:
Provided by:
Worldwide Mirror by FileFront
usa - USA Central USA Central
FileFront.com
 

Download from Worldwide Mirror by FileFront Download SubMenu!



SubMenu (3.7) - Readme  
Readme File:
Sub Menu Ship Selection mod V3.7

By MLeo Daalder


About this version:
This isn't unfortunatly V4. But some people reported bugs in V3 (more than a year after it's release),
so I thought I fix those. I have started work on V4 (a long time ago) but one of it's intended features
isn't cooperating (see the Features for the future section), so I've ported one of the intended features
to this version, namely, alphabetic sorting of menu's and ships.
The version number is 3.7 because 3.5 is the alphabetic sorting, and I've applied 2 fixes which upped it to 3.7.


Requirements:
The Foundation. And that's all.
But the effects of the new functions of this mod shall only be seen when you have MVAM Infinity installed.
And then only when you have the MVAM plugin for the ships which are using this mod.


What are the functions so far?
Sub Menu's in the ship selection screen. (In V1)
Sub Menu's to the Sub Menu's (to any level). (In V2)
MVAM based Sub Menu's. (New in V3)
Alphabetic sorting. (New in V3.5)
Ability to exclude a ship from being listed. (New in V3.5)
Ability to exclude a MVAM ship from it's menu (or remove the entire menu all together). (New in V3.5)


Features for the future:
Allowing the end user to sort his/her menu's by hand (moving ship entries up and down, within their current menu though).


Alphabetic sorting of menu's:
This is done automagicly and can't currently be influenced.
There is one "problem" with it, it's that it uses the non TGL name of the ship, so the Cardasian Hybrid is listed before
the Galor, this is because the Hybrid's name is internally CardHybrid, which comes before Galor.


How to make your MVAM capable ships use this:
It already does this automaticly. :)

If you want to disable the MVAM menu for all the ships, add this to your parent (integrated) ship plugin:
bMvamMenu = 0
You can also use None instead of 0, but 0 is more natural (in absence of true and false keywords).

You can now also exclude a sub ship from that list, you can do that by adding the same bMvamMenu to that subship plugin.

You can add bMvamMenu in the same way as you do SubMenu and SubSubMenu (more about this in "Using the previous features").


A new feature I've added in the last minute is a feature targetted at Mission scripters, that want to use the ShipDef
mechanism in Foundation for diffrent ships (to use FoundationTechnologies for example) but not let them show in the menu.
This can be done by adding the attribute "Do not display" (with the spaces, use the first method or the second method,
second way as explained in the next sections), if this attribute is not 0 or None then the ship is omitted from the menu.



Using the previous features:

General instructions:
Getting the ships instance:
The ships instance is a variable where the ships instance is stored, it can be found if you find the ShipDef line and take the part before the =
For example:

Foundation.ShipDef.YourShip = Foundation.FedShipDef(abbrev, species, {<Configuration>})

Here Foundation.ShipDef.YourShip is the ships instance, this is where you will do your configuration on.
<Configuration> is not the actual text, it generally holds the additional configuration in the following format:
{"Key 1": "Value 1", "Key 2": "Value 2", ...}

The ... is placed there because there can be any number of key->value pairs. The keys and values can be variables, but are
in the example shown as text (strings).
The structure they are contained in is known as a dictionary.
The key->value pairs are separated by comma's (,).

Adding attributes and configuration to the ships instance:
This can be done in 2 ways, some of the possible configuration could be done easier in the first way than in the second way
but both are always possible.

The first way of adding attributes (which will be used as configuration) is by adding it in the configuration dictionary.
For instance:
{<Other Configuration>, "Attribute 1": "Value of Attribute 1", "Attribute 2": "Value of Attribute 2"}

If you need to add additional key->value pairs, just put the cursor of your file editor before the } and
any other character (apart for ,) and add:
, "Another attribute": "Value of Another attribute"

The other way consists of getting the ships instance and adding it directly as attribute:
Foundation.ShipDef.YourShip.NewAttribute = "Value of NewAttribute"

If your new attribute must contain a space, it's also possible:
Foundation.ShipDef.YourShip.__dict__["New Attribute with spaces"] = "Value of New Attribute with spaces"


The values of the attributes don't need to be text (strings created by putting text between "" or '')
they can be numbers (both integers and floating point), objects, lists, tuples, dictionaries, even functions and classes.

Note for scripters: this does not work for variables gotten out of App! They are reference/shadow/proxy objects.


Adding a submenu to a ship:
This is done by using either way as explained in the previous section.
The attribute is SubMenu and it's value can be a string (which is the name of the submenu)
or a list of sub menu's (like this: ["Sub menu 1", "Sub menu 2", "Sub menu 3"]).
There isn't a limit to the number of sub menu's, but 6 can be considerd extreme, this is because the menu's and buttons
get shorter with each level. Experiment, and you will see what I mean. also, on higher resolutions, the text can become
bigger.

Another note, the list method is fine for post V1 versions of SubMenu, but the end user will get a BSOD if you use this
if the end user has V1 installed, preferably use the following section for additional sub menu's or for all your submenu's.


Adding additional sub menu's to a ship:
As before, this is done by using either way as explained in the "Adding attributes and configuration to the ships instance"
section.

The relevant attribute is SubSubMenu and it's value can be a string (name of sub menu)
or a list of sub menu's (see previous section, just with the SubSubMenu attribute).
If the plugin has a SubMenu attribute, that first is done, and additionally the SubSubMenu is added.
You can also only have the SubSubMenu and leave out the SubMenu.


As with my previous mods when this mod is not installed, the modifications to the ship plugin are not used.


Credits:
Dasher42 for his Foundation, of which this is a mild modification.
Sneaker98 for his MVAM Infinity, or this mod wouldn't have a reason to exist. ;)
And for making me make this mod do it's stuff automaticly.
Mark (Ignis) for asking me more than a year ago to make the menu's sort.


Licence:
You may include this mod with your own mod. But credits must atleast be given to Dasher42!
If you want to publish a mod which has a modified version of this mod (or a modification of this mod)
then I would like to know first due to compatibility reasons (I would like to see the modification myself).


SubMenu (3.7) - User Comments  
The following comments are owned by the user that posted them. BC Files is not responsible for their content.

Total comments: 13 | Last comment: 02-25-2007 at 05:55

 #1 - 08-29-2006 at 04:41
Barks60
From: (Ipswich)
Joined: September 1st, 2004
Posts: 44
they just keep on getting better

 #2 - this came out in 2002 - 08-29-2006 at 04:53
darth5ava63
From: (red deer)
Joined: July 8th, 2006
Posts: 69
after 4 years i hope things get better

 #3 - 08-29-2006 at 07:22
JamesTiberiusKirk
From:
Joined: November 11th, 2004
Posts: 1720
@2... last version is 2004Roll Eyes (sarcastic)

nice work 10/10

 #4 - 08-29-2006 at 09:54
mldaalder
From:
Joined: November 17th, 2002
Posts: 137
I would just like to add: Sorry for the delay, it has been more than 18 months since the last release, and sorry that this isn't V4 yet.frown

So, V4 in 2008?stick out tongue

 #5 - 08-29-2006 at 10:57
ChiefBrex
From: (North Carolina)
Joined: November 17th, 2003
Posts: 524
FINALLY! Alphabetical listings in QB. This has been driving me insane! Thanks MLeo.

 #6 - Yes!!! - 08-29-2006 at 15:28
DKealt
From: (Neston)
Joined: September 2nd, 2003
Posts: 91
Finally that bug where ships appear as ??? has now gone!

 #7 - star trek bridge commander - 08-29-2006 at 18:54
darth5ava63
From: (red deer)
Joined: July 8th, 2006
Posts: 69
was out in 2002

 #8 - 08-30-2006 at 06:42
JamesTiberiusKirk
From:
Joined: November 11th, 2004
Posts: 1720
then you post was useless... because just after 1 year, things went alot better for bc LOL.... (think at p81 ships, although they are now considered today as outdatet)

 #9 - @DKealt - 08-30-2006 at 11:09
mldaalder
From:
Joined: November 17th, 2002
Posts: 137
Then there could be a bug as well, since the only bug that happens in the case of ??? is because the author of the ship either forgot the tgl's or the author introduced a bug in the ship's plugin.

 #10 - 08-31-2006 at 09:55
Wundai
From:
Joined: March 12th, 2005
Posts: 2793
great work Mleo

10/10 wink

 #11 - I like it - 09-01-2006 at 17:40
CJones
From: (Albany, New York)
Joined: August 19th, 2002
Posts: 263
This is a welcome addition to the submenu mod..

awesome job!

 #12 - Hum.... - 10-06-2006 at 11:51
BlackRook32 (Staff)
From: (Augusta, Georgia)
Joined: June 15th, 2002
Posts: 695
I'd have to agree, Nice update here Rock

-BR32

 #13 - I was surprised. - 02-25-2007 at 05:55
MustangTy92
From:
Joined: September 5th, 2006
Posts: 203
The SubMenu's are very easy to get in the game. I was very, very surprised, actually.

10/10.



When posting comments, you must follow these rules:
  1. No "Yay I got First Post!" posts, no exceptions and no matter what other content the post has!
  2. No Pornographic Material. Any sexually oriented imagery or links to such content will not be tolerated.
  3. No Warez or Illegal Software. This includes linking to software, posting about it, and suggesting to get it.
  4. No Cursing or Swear words. We encourage you to use our comment sections as a forum to debate files, news, etc., but please use proper adjectives to express yourself. We will not tolerate abuse upon another member or author.
  5. No Attacks / Retaliation of any kind against a member, or group of members.
  6. Please do not advertise for other sites or forums here.
  7. Maximum of 3 smileys per regular member.
The high interactivity of this site should be considered a luxury, not a right. If you cannot follow these simple rules, you can and will be warned or banned from the comments, site or the entire network for any period of time.
Now enjoy yourself and behave!



  • Register: To get your own Username, click here!
  • Forgot your password? click here!
  • You can use UBB here!
Username:     Password:  
Remember my username and password
Comment Title:
Your comments for this File please:


 Latest Files
 » Frag-O-Matic trailer
 » JJ_enterprise Mk.. (1.0)
 » OPEN BETA Imperi.. (1.0)
 » Vakor ShipYard .. (1.0 )
 » Uss Deimos Luna .. (1.0)
 » Uss Titan Luna C.. (1.0)
 » Yaris class ship (1.0)
 » Rayfield Cargo[.. (1.0 )
 » Annie Tug (1.0)
 » SFSY_Runabout (1.0)

 Latest News
 » Weekly Poll Results ..
 » Weekly Poll Results ..
 » Weekly Poll Results ..
 » Weekly Poll Results ..
 » Weekly Poll Results ..
 » Weekly Poll Results ..
 » Weekly Poll Results ..
 » Weekly Poll Results ..
 » Weekly Poll Results ..
 » Weekly Poll Results ..

 The Network
 » Gaming News
 » Game Demos
 » Game Patches
 » Trailer Videos
 » Gaming Forums

 Game Portals:
 » Age of Empires 3
 » Aliens vs Predator 2
 » America's Army
 » ArmA 2
 » Armada 2
 » Battlefield 1943
 » Bridge Commander
 » Brothers in Arms 2
 » Call of Duty 4
 » Command & Conquer
 » Company of Heroes
 » Crysis
 » Counter-Strike: Source
 » Dawn of War Series
 » Day of Defeat: Source
 » Diablo 3
 » Doom 3
 » Elite Force
 » Enemy Territory
 » Fallout 3
 » Far Cry 2
 » F.E.A.R.
 » Flight Simulator X
 » GTA San Andreas
 » Half-Life 2
 » Halo
 » Jedi Knight 3
 » Knights of the Old Republic
 » Left 4 Dead 2
 » LOTR: Battle 4 Middle Earth
 » Medal of Honor
 » Operation Flashpoint
 » Quake 4
 » Red Faction: Guerrilla
 » rFactor
 » Silent Hunter 4
 » Sins of a Solar Empire
 » Soldier of Fortune 2
 » S.T.A.L.K.E.R.
 » Star Trek: Legacy
 » Star Wars Battlefront 2
 » Star Wars Empire at War
 » StarCraft II
 » Starfleet Command III
 » Supreme Commander
 » Team Fortress 2
 » The Elder Scrolls IV
 » The Sims 2
 » TrackMania United
 » Unreal Tournament 3
 » Warcraft III
 » World of Warcraft
 » X3: Terran Conflict

You got served by in 0.2981 seconds using 6 MySQL queries and 14 includes
Copyright © 2013 FileFront, Inc. All rights reserved.
Design by Jos Jongejan aka Pro-Filer & Delta. Use of Bridge Commander Files materials is subject to certain Terms & Conditions.
TM & © 2013 Paramount Pictures. All rights reserved. Star Trek: TNG and related marks are trademarks of Paramount Pictures in the U.S. and/or other countries.