Bridge Commander Central

BC Forums => BC Scripting => Topic started by: angryandorian on February 27, 2009, 06:48:26 PM

Title: Overwriting stock ship description
Post by: angryandorian on February 27, 2009, 06:48:26 PM
I recently replaced the stock galaxy in BC with the DJ Galaxy Pack USS Enterprise-D (not the Season 1 version), by changing the longName to Galaxy in the DJEnterprise.py in the Custom/ships/ folder. This went on with out a hitch, but the new ship retains the description from the stock ship in the menus. How do I change this?
Title: Re: Overwriting stock ship description
Post by: MLeo on February 27, 2009, 06:52:30 PM
It's because it's from a TGL (mostlikely).

To fix it, comment out one of the 2 tgl lines in the plugin (by placing a # infront of a line).
Title: Re: Overwriting stock ship description
Post by: angryandorian on February 27, 2009, 07:05:43 PM
Well I don't find any TGL lines in the plugin. I'm assuming your referring to the DJEnterprise.py plugin in the Custom/Ships/ folder. Usually I'm able to overcome this problem by changing the abbrev to the name of the stock ship i'm replacing. For example, when I replaced the stock ambassador with another ship, I changed the abbrev to ambassador and imputed my own description. When I start the game, the new ship description appears. I tried to doing the same for the galaxy class, but when I do, the ship appears ingame with the stock nebula-class icon in the tactical interface!
Title: Re: Overwriting stock ship description
Post by: MLeo on February 27, 2009, 07:07:04 PM
Could you attach your changed plugin here?

I'll take a look at it in the morning and fix it if I can (currently 1AM here).
Title: Re: Overwriting stock ship description
Post by: angryandorian on February 27, 2009, 07:10:32 PM
Gladly! Thanks for your help by the way.
Title: Re: Overwriting stock ship description
Post by: MLeo on February 27, 2009, 07:18:26 PM
I did it right away, I think this should work. I have also disabled the name, so you may want to edit it again (incase the name from the TGL was intended).
The names speak for themselves.
Title: Re: Overwriting stock ship description
Post by: angryandorian on February 28, 2009, 11:24:04 AM
I played around with Foundation.ShipDef.DJEnterprise.hasTGLName , set it to 1 and it worked thank you.
Title: Re: Overwriting stock ship description
Post by: MLeo on February 28, 2009, 01:18:49 PM
Even the icon?

Considering you changed your post.
Title: Re: Overwriting stock ship description
Post by: angryandorian on February 28, 2009, 03:46:00 PM
Yes, even the icon. Thanks again. 
Title: Re: Overwriting stock ship description
Post by: angryandorian on March 05, 2009, 07:22:56 PM
You won't believe it, but it seems the problem has returned. I was checking the descriptions today, and the stock Galaxy description reappeared!  I don't know what happened since I hadn't touch anything since my last post. Is the description hard-wired into the game or something?
Title: Re: Overwriting stock ship description
Post by: Mario on March 06, 2009, 07:06:56 AM
1. Download BCUT, install it and run it
2. Go to Foundation Section of BCUT
3. Install QB Description Fix which is designed to fix the issue which you're having
Title: Re: Overwriting stock ship description
Post by: angryandorian on March 06, 2009, 10:03:48 AM
Nope, that didn't work. If I change the abbrev to Galaxy, I get the Nebula icon again. I can't fathom why this happens. 
Title: Re: Overwriting stock ship description
Post by: Mario on March 06, 2009, 10:12:26 AM
hasTGLDesc must be set to 0 in the plugin.

Code: [Select]
Foundation.ShipDef.myship.hasTGLDesc = 0
Title: Re: Overwriting stock ship description
Post by: angryandorian on March 06, 2009, 04:04:41 PM
Well I seemed to have fixed it again. I not going to go into details cause I'm a little PO at the game right now.  :x  In any case, I've attached the modified py file to show anyone with a similar dilemma how I fixed it.
Title: Re: Overwriting stock ship description
Post by: FloFfm on October 12, 2021, 12:39:10 PM
Well...

12 years after you solve this problem, i have the same.

Unfortunately the file is not online anymore.
Can someone please tell me how to fix the issue, that BC shows the Nebula Class icon instead the Galaxy?