Author Topic: Change Starting ship and Bridge in QB  (Read 1732 times)

Offline Nexxus21

  • Commanding USS Solaris Mk-I Refit
  • Posts: 115
  • Cookies: 4
  • Our Continuing Mission Of Exploration
Change Starting ship and Bridge in QB
« on: December 13, 2010, 10:01:14 PM »
Okay I know how to change my start up ship and bridge in QBR but I want to do it for QB. Does anyone know what scripts I need to edit to make this change?



I placed this in Tech Support not sure if it needs to be moved to BC Scripting if this is the incorrect forum
If we value the pursuit of knowledge, we must be free to follow wherever that search may lead us...-Adlai E. Stevenson Jr.

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Change Starting ship and Bridge in QB
« Reply #1 on: December 14, 2010, 07:27:54 AM »
if you have KM, that is already included...
if not, you would need the older verson of KM's script and tweak that...  i dont recall the name of the exact script, it begins with "zzz" tho... 
(the newer version of KM's script relies on UMM...)

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2200
  • Cookies: 1707
  • Life is life
Re: Change Starting ship and Bridge in QB
« Reply #2 on: December 14, 2010, 03:59:50 PM »
Code: [Select]
# Name the script zzz_StartingShip for example and dump in autoload folder, also replace SomeScript with the name of the ship script you want to use
import Custom.Ships.SomeScript
Foundation.MutatorDef.Stock.startShipDef = Foundation.ShipDef.SomeScript
Acta, non verba.
aka USS Sovereign

Offline Nexxus21

  • Commanding USS Solaris Mk-I Refit
  • Posts: 115
  • Cookies: 4
  • Our Continuing Mission Of Exploration
Re: Change Starting ship and Bridge in QB
« Reply #3 on: December 14, 2010, 10:45:46 PM »
Thank you both for pointing me in the right direction the script that I needed to modify was zzzShipReplacement.py

I was able to change the start up bridge and ship by changing the following marked in BLACK

# GPL - Defiant <erik@defiant.homedns.org>

import Foundation
import StaticDefs

#mode = Foundation.MutatorDef("Default Replacement")

def GetBridge(self):
    return 'NX21TMPRefitBridge'


Foundation.ShipDef.GetBridge = GetBridge
#import Custom.Ships.DJAthena
Foundation.MutatorDef.Stock.startShipDef = Foundation.ShipDef.DJAthena

#Foundation.OverrideDef.DefaultReplacement = Foundation.OverrideDef("DefaultReplacement", "Foundation.MutatorDef.Stock.startShipDef", "Foundation.ShipDef.Defiant", dict = { "modes": [ mode ] } )
#Foundation.OverrideDef.DefaultReplacement = Foundation.OverrideDef("DefaultReplacement", "Foundation.ShipDef.GetBridge", __name__ + "GetBridge", dict = { "modes": [ mode ] } )



Final Test Product:

If we value the pursuit of knowledge, we must be free to follow wherever that search may lead us...-Adlai E. Stevenson Jr.

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: Change Starting ship and Bridge in QB
« Reply #4 on: December 15, 2010, 06:54:06 AM »
Shameless advertisement:

If you get tired of setting your starting Ship and Bridge manually via that script, you could download that file:
http://bridgecommander.filefront.com/file/QBStartShip_Bridge_Selector;104491

As Jimmy already said it needs UMM (and is activatet via the "startup" Menu if i remember correctly).
I heard once that MLeo also did a version similar to that one, but wasn't able to find it the last time i checked.

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Change Starting ship and Bridge in QB
« Reply #5 on: December 15, 2010, 07:40:19 AM »
aaah okee - i wasnt aware that was out there on it's own, i thought it was only found in KM...

Offline Nexxus21

  • Commanding USS Solaris Mk-I Refit
  • Posts: 115
  • Cookies: 4
  • Our Continuing Mission Of Exploration
Re: Change Starting ship and Bridge in QB
« Reply #6 on: December 15, 2010, 08:39:28 AM »
Shameless advertisement:

If you get tired of setting your starting Ship and Bridge manually via that script, you could download that file:
http://bridgecommander.filefront.com/file/QBStartShip_Bridge_Selector;104491

As Jimmy already said it needs UMM (and is activatet via the "startup" Menu if i remember correctly).
I heard once that MLeo also did a version similar to that one, but wasn't able to find it the last time i checked.

Krrks you go right ahead and continue with your shameless advertising I can't believe I missed this and its been out over a year.
It makes it a heck of a lot easier I am pretty much old school doing things the hard way as you can tell from my previous fix of manually modifying the scripts every time I want to change my ship and bridge.


aaah okee - i wasnt aware that was out there on it's own, i thought it was only found in KM...


If so let me know I have KM installed and hadn't seen it unless it's one of the umpteen million mutators I overlooked and knowing me its possible :funny
If we value the pursuit of knowledge, we must be free to follow wherever that search may lead us...-Adlai E. Stevenson Jr.

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Change Starting ship and Bridge in QB
« Reply #7 on: December 15, 2010, 09:56:21 AM »
if you have the latest version of KM (2009.12 and the 2010.02 update) then you have the starting ship and bridge selector as shown...

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: Change Starting ship and Bridge in QB
« Reply #8 on: December 15, 2010, 10:59:23 AM »
Quote
If so let me know I have KM installed and hadn't seen it unless it's one of the umpteen million mutators I overlooked and knowing me its possible funny

If I remember correctly there should be as Switch to activate it, somewhere in the UMM "Startup Options". If that one is activated the menu itself should show up below the Mutators, somewhere near the DS9FX- and GalaxyCharts- Options.

Offline Nexxus21

  • Commanding USS Solaris Mk-I Refit
  • Posts: 115
  • Cookies: 4
  • Our Continuing Mission Of Exploration
Re: Change Starting ship and Bridge in QB
« Reply #9 on: December 16, 2010, 01:14:37 AM »
if you have the latest version of KM (2009.12 and the 2010.02 update) then you have the starting ship and bridge selector as shown...

No I didn't have the latest version. I couldn't find it on BCFiles but located on the Kobayashi Maru site I have bookmarked it for future reference. I could have sworn I downloaded KM1.0 from BCFiles must have been mistaken.
http://bckobayashimaru.de/ws/index.php?id=downloads

I wonder how many other people may have missed this.

krrks mod works; now my only concern is whether I should try installing the latest vesion over what I have now and how it would affect GC2.0 and other installs. I'll have to take a look at it first.
If we value the pursuit of knowledge, we must be free to follow wherever that search may lead us...-Adlai E. Stevenson Jr.

Offline Nebula

  • BC elder / BCC Vice Admin
  • Administrator
  • Posts: 5500
  • Cookies: 1129
  • KM - Mod Team Member & BC - Elder (2002)
    • 9th fleet HQ
Re: Change Starting ship and Bridge in QB
« Reply #10 on: December 16, 2010, 02:31:16 AM »
just so you know... do not install KM 1.0 before KM 2009.12 and 2010.02. 2009.12 is KM 1.0's replacement.
Canon is what people argue exists on ships that don't exist.

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Change Starting ship and Bridge in QB
« Reply #11 on: December 16, 2010, 07:47:23 AM »
I could have sworn I downloaded KM1.0 from BCFiles must have been mistaken.
you probably did at first, BCFiles pulled KM some time ago however and wont allow it, or any later versions, hosted because of some of the music within KM...

just so you know... do not install KM 1.0 before KM 2009.12 and 2010.02. 2009.12 is KM 1.0's replacement.
neb - in some post here somewhere, you perfectly illustrated the install orders of the last few versions of KM, can you find it somewhere and post it here?

Offline Nebula

  • BC elder / BCC Vice Admin
  • Administrator
  • Posts: 5500
  • Cookies: 1129
  • KM - Mod Team Member & BC - Elder (2002)
    • 9th fleet HQ
Re: Change Starting ship and Bridge in QB
« Reply #12 on: December 16, 2010, 09:14:14 AM »
You mean this? :D

=====================================================================================
KM .9  ---|
              | ---------------- (first versions of KM)
KM .9.1 --| - req KM .9
======================================================================================
KM 1.0 ----- Stand Alone (second large revision of the mod)
======================================================================================
KM 2009.12 Beta |-- Stand Alone
                        | ----------------------- (3rd revision does not require KM 1.0 and shouldn't be installed on top)
KM 2010.02 Beta |-- req 2009.12

Canon is what people argue exists on ships that don't exist.