Author Topic: the use of certain ships  (Read 1567 times)

m35gibson

  • Guest
the use of certain ships
« on: February 13, 2008, 08:46:56 AM »
hi guys
im hoping im doing this thread in the right section.
my question, i use kmo1, and it gives u a nice selection of ships, is there any way at all that i can use some of the ships i downloaded, they work fine in quick battle, in multiplayer? the only reason i ask this is because a friend wants to pit his nxo1 against my tos enterprise.
thanks
kevin

captainstull

  • Guest
Re: the use of certain ships
« Reply #1 on: February 13, 2008, 10:27:00 AM »
I was also wondering if there was anyway to use other downloaded ships, like the Dreadnought, in multiplayer games.  Would all players have to have it installed on their computers or would KM 1.0 prevent only ships that it has choosen to use?  Thanks in advance!

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: the use of certain ships
« Reply #2 on: February 13, 2008, 07:18:11 PM »
All players have to use the exact same install to make that work.

Aside for the fact that the MP menu isn't loaded from the same "source" as a normal ship list.
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.

m35gibson

  • Guest
Re: the use of certain ships
« Reply #3 on: February 14, 2008, 09:58:40 AM »
hi,
is there a way of adding ships to your mp menu
thank
kevin

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: the use of certain ships
« Reply #4 on: February 14, 2008, 05:45:32 PM »
hi,
is there a way of adding ships to your mp menu
thank
kevin
Doesn't seem likely, does it? Considering things like KM. :P (Yes, I am pulling your leg here, sorry about that).

You need to edit SpeciesToShip.py (found in scripts/Multiplayer), remember, each ship needs to have an unique number, and it needs to match in the ship plugin.

I believe that's "it".
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.

Picard_1

  • Guest
Re: the use of certain ships
« Reply #5 on: February 24, 2008, 01:58:33 AM »
Quote
You need to edit SpeciesToShip.py (found in scripts/Multiplayer), remember, each ship needs to have an unique number, and it needs to match in the ship plugin.

MLeo, are you referring to the species number in the ship hardpoint?

Offline El

  • Master Hardpointer
  • Retired Administrator
  • Posts: 653
  • Cookies: 123
  • Former Vice Admin
Re: the use of certain ships
« Reply #6 on: February 24, 2008, 05:34:04 AM »
Moved to tech support

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: the use of certain ships
« Reply #7 on: February 24, 2008, 06:53:36 AM »
That, and in the ship file (in scripts/Ships) and in the plugin scripts/Ships/Custom.

This is used to identify each ship, and will provide the correct icon as well.
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.

Picard_1

  • Guest
Re: the use of certain ships
« Reply #8 on: February 24, 2008, 07:06:49 PM »
Ok, here I replaced the Constitution with a Constellation. The number 103 corresponds with the hardpoint. Is this correct?

EXIMIUS                 = 76
CENTAUR                 = 77
MIRANDA                 = 78
MIRADORN                = 79
CONSTELLATION            = 80


("Miranda",   147, "Federation", 1),
        ("Miradorn", 922, "Other", 1),
        ("DMconstellation",   103, "Federation", 1),
        ("Merchantman", 924, "Other", 1),

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: the use of certain ships
« Reply #9 on: February 25, 2008, 03:01:43 PM »
All the Constellation numbers (assuming you intended those to be the same) _must_ have the same number, everywhere.
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.

Picard_1

  • Guest
Re: the use of certain ships
« Reply #10 on: February 25, 2008, 05:40:46 PM »
Right, then I must be missing something here. The only number I see is the
species number in the HP file. I don't see any numbers in the ships/myship.py
or custom/ships/myship.py

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: the use of certain ships
« Reply #11 on: February 25, 2008, 05:57:22 PM »
You don't, except for example this little nugget:
Code: [Select]
Multiplayer.SpeciesToShip.ASTEROIDH2Which references that constant you defined (you noticed the Mutliplayer.SpeciesToShip? Yep, that's the file you are editing).
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.

Picard_1

  • Guest
Re: the use of certain ships
« Reply #12 on: February 25, 2008, 07:04:24 PM »
Then the  multi-player code for scripts/USSConstellation1017A should refer to the ship itself
and be written as:

Code: [Select]
import Multiplayer.SpeciesToShip.USSConstellation1017A
But lets take the Breen ship included with KM 1.0. It's custom/ships/myship.py
doesn't have a multi-player code but it functions in MP. The code only says:

Code: [Select]
import Foundation
import App

That is, I should only have to enter the multi-player code for the scripts/myship.py correct?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: the use of certain ships
« Reply #13 on: February 26, 2008, 01:28:38 PM »
I don't have a scripts/Custom/Ships/myship.py

And if it's empty, then it doesn't provide a ship (a single file in Custom/Ships can define 0 or more ships).
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.