Author Topic: Stock Ship renaming  (Read 1267 times)

Offline Mandalore

  • Posts: 11
  • Cookies: 0
  • Mandalorian Warrior
Stock Ship renaming
« on: April 26, 2009, 07:44:11 AM »
I am currently reorganizing my Fed ships and while I can put the stock ships in submenues, I'd also like to rename them (As example "Nebula" to "USS Nebula"). Is there a way similar to the one used for submenues to do this?
I have allready tried this and it doesn't work:
Code: [Select]
import Foundation

Foundation.ShipDef.Nebula.longName = 'USS Nebula'
Foundation.ShipDef.Nebula.SubMenu = "Nebula Class"
Foundation.ShipDef.Nebula.SubSubMenu = "Standard"

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Stock Ship renaming
« Reply #1 on: April 26, 2009, 07:51:55 AM »
Add:
Code: [Select]
Foundation.ShipDef.Nebula.hasTGLName = 0
Also, I'm sure Jimmy can help you 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 JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Stock Ship renaming
« Reply #2 on: April 26, 2009, 08:42:52 AM »
i think using BCUT you'd be able to change stock ship names (i havent yet tried doing it tho)...

otherwise, try adding in
Code: [Select]
Foundation.ShipDef.Nebula.name = "USS Nebula"
under
Code: [Select]
import App
import Foundation

Offline Mandalore

  • Posts: 11
  • Cookies: 0
  • Mandalorian Warrior
Re: Stock Ship renaming
« Reply #3 on: April 26, 2009, 09:14:58 AM »
That worked. Thanks Jimmy