Author Topic: Overwriting stock ship description  (Read 1430 times)

Offline angryandorian

  • Posts: 156
  • Cookies: 5
  • Prepare for the future...
Overwriting stock ship description
« 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?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Overwriting stock ship description
« Reply #1 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).
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline angryandorian

  • Posts: 156
  • Cookies: 5
  • Prepare for the future...
Re: Overwriting stock ship description
« Reply #2 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!

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Overwriting stock ship description
« Reply #3 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).
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline angryandorian

  • Posts: 156
  • Cookies: 5
  • Prepare for the future...
Re: Overwriting stock ship description
« Reply #4 on: February 27, 2009, 07:10:32 PM »
Gladly! Thanks for your help by the way.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Overwriting stock ship description
« Reply #5 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.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline angryandorian

  • Posts: 156
  • Cookies: 5
  • Prepare for the future...
Re: Overwriting stock ship description
« Reply #6 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.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Overwriting stock ship description
« Reply #7 on: February 28, 2009, 01:18:49 PM »
Even the icon?

Considering you changed your post.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline angryandorian

  • Posts: 156
  • Cookies: 5
  • Prepare for the future...
Re: Overwriting stock ship description
« Reply #8 on: February 28, 2009, 03:46:00 PM »
Yes, even the icon. Thanks again. 

Offline angryandorian

  • Posts: 156
  • Cookies: 5
  • Prepare for the future...
Re: Overwriting stock ship description
« Reply #9 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?

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2186
  • Cookies: 1706
  • Life is life
Re: Overwriting stock ship description
« Reply #10 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
Acta, non verba.
aka USS Sovereign

Offline angryandorian

  • Posts: 156
  • Cookies: 5
  • Prepare for the future...
Re: Overwriting stock ship description
« Reply #11 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. 

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2186
  • Cookies: 1706
  • Life is life
Re: Overwriting stock ship description
« Reply #12 on: March 06, 2009, 10:12:26 AM »
hasTGLDesc must be set to 0 in the plugin.

Code: [Select]
Foundation.ShipDef.myship.hasTGLDesc = 0
Acta, non verba.
aka USS Sovereign

Offline angryandorian

  • Posts: 156
  • Cookies: 5
  • Prepare for the future...
Re: Overwriting stock ship description
« Reply #13 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.

Offline FloFfm

  • Posts: 1
  • Cookies: 0
Re: Overwriting stock ship description
« Reply #14 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?