Bridge Commander Central

BC Forums => BC Scripting => Topic started by: tiqhud on January 19, 2009, 04:44:11 PM

Title: Shuttle Launches in HP [manual setup]
Post by: tiqhud on January 19, 2009, 04:44:11 PM
Very Important, after some trial & error with a ships Hardpoint, (in the HP there Must be the same name for your Shuttle Bay an your Shuttle Bay OEP)

Example Shuttle Bay an Shuttle Bay OEP , is OK , However Shuttle Bay  an Main Shuttle Bay  will not work. at least I could not get it to Launch.
Title: Re: Shuttle Launches in HP [manual setup]
Post by: MLeo on January 19, 2009, 04:59:42 PM
Are you sure you have written down everything? The parentheses () seem to imply that you wanted to add something after the comma (,) yet before the ().
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on January 19, 2009, 05:08:12 PM
Are you sure you have written down everything? The parentheses () seem to imply that you wanted to add something after the comma (,) yet before the ().

well I was going to start the line with the Example up there, but figured it would be best viewed down a-bit, I just neglected to remove it, Thanks for clarifying though
Title: Re: Shuttle Launches in HP [manual setup]
Post by: MLeo on January 19, 2009, 05:13:45 PM
Btw, what types does the not-OEP and the OEP hardpoitns need to be? Hull? Emitter?
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on January 19, 2009, 05:50:22 PM
Btw, what types does the not-OEP and the OEP hardpoitns need to be? Hull? Emitter?
Yes the actual  shuttle bay is a Hull property named Shuttle Bay and the Shuttle Bay OEP is a object emitter named Shuttle Bay OEP. and there need to be Both of them in the HPs .
Title: Re: Shuttle Launches in HP [manual setup]
Post by: JimmyB76 on January 19, 2009, 07:34:24 PM
if you have KM, there is a doc folder...  in that folder, there is a Tech Framework folder...
within that, is a tutorial about making ships capable of launching shuttles, which says that...
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on January 19, 2009, 08:37:41 PM
if you have KM, there is a doc folder...  in that folder, there is a Tech Framework folder...
within that, is a tutorial about making ships capable of launching shuttles, which says that...

Good
Title: Re: Shuttle Launches in HP [manual setup]
Post by: Worf359Alpha on August 06, 2009, 05:28:24 PM
For any1 lookin to launch shuttles or Fighters from their ship/s you need to have the same name in the ship property in the HP as well as the shuttle launch script. for instance ship property "Neghvar" in the HardPoint and "Neghvar" for the name of the launching script in scripts/custom/carriers. That eluded me for somtime when i was carrierizing all my ships.
Title: Re: Shuttle Launches in HP [manual setup]
Post by: ACES_HIGH on August 06, 2009, 05:35:16 PM
For any1 lookin to launch shuttles or Fighters from their ship/s you need to have the same name in the ship property in the HP as well as the shuttle launch script. for instance ship property "Neghvar" in the HardPoint and "Neghvar" for the name of the launching script in scripts/custom/carriers. That eluded me for somtime when i was carrierizing all my ships.

the carrier script creator on Defiant's website does that automatically.
http://defiant.homedns.org/~erik/STBC/carrier/ (http://defiant.homedns.org/~erik/STBC/carrier/)

of course that also means that if you have multiple ships i.e. Galaxy, Venture, Enterprise-D, and they all have the same ship property name, i.e. Galaxy, they will all load the carrier file for the same ship, in this case Galaxy.
Title: Re: Shuttle Launches in HP [manual setup]
Post by: Mario on August 07, 2009, 12:08:08 PM
Alternatively if you want something localized (a program) you can use BCUT's carrier creator which also creates ship carrier plugins. BC Tools->Carrier Creator.
Title: Re: Shuttle Launches in HP [manual setup]
Post by: ACES_HIGH on August 07, 2009, 07:45:51 PM
I forgot about that one.
Title: Re: Shuttle Launches in HP [manual setup]
Post by: Worf359Alpha on August 09, 2009, 03:31:56 AM
Nice!, ive been manualy making carrier plugins for my collection of ships, and though im comfertible with it, thats a nice way to make it easy :lol:
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on August 10, 2009, 02:42:46 PM
Nice!, ive been manualy making carrier plugins for my collection of ships, and though im comfertible with it, thats a nice way to make it easy :lol:
and it is easy
Title: Re: Shuttle Launches in HP [manual setup]
Post by: dEjavU on November 17, 2009, 04:12:32 AM
I need a little help please? I've been trying for some time now(off and on)to get my NX Enterprise(http://bridgecommander.filefront.com/file/NX_Class_Mod_Pack_MEDIUM;41033)to launch the NX shuttle(http://bridgecommander.filefront.com/file/NX_01_shuttle_pod;21080)with no luck. I try to use Defiants' carrier file creator web link, ran it through but I get this everytime....

sorry, bad hardpoint file: unable to find a shuttle oep emitter

After having read down this thread twice and having gone through the entire HP file for this particular ship I realize that this model doesn't have a Shuttle Bay OEP, can somebody tell me how do I add this OEP emitter to this ship?
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on November 17, 2009, 08:17:55 AM
I need a little help please? I've been trying for some time now(off and on)to get my NX Enterprise(http://bridgecommander.filefront.com/file/NX_Class_Mod_Pack_MEDIUM;41033)to launch the NX shuttle(http://bridgecommander.filefront.com/file/NX_01_shuttle_pod;21080)
After having read down this thread twice and having gone through the entire HP file for this particular ship I realize that this model doesn't have a Shuttle Bay OEP, can somebody tell me how do I add this OEP emitter to this ship?

If you have MPE, they can be added very easily, but I recomend HIGHLY, Not doing this manually, it is just to easy to mess-up, and overwrite something vital, like a period or comma.

And you need then to add 2 things Shuttle Bay and then Shuttle Bay OEP, in order for it to work.
Title: Re: Shuttle Launches in HP [manual setup]
Post by: dEjavU on November 17, 2009, 10:17:31 AM
Thanks Tiq but I'm been having trouble getting ship properties to show up right whenever I try to load a ship in MPE(kinda keep getting discouraged from using it because of this)not much specifics on how to actually load ships that are not currently in the GlobalPropertyTemplates file..so instead, after pouring through ships after ships I ended up running into your Bonaventure that you scripted to launch shuttles(http://bridgecommander.filefront.com/file/Bonaventure_shuttle_launching;91898). I guess I used it as a template, copied both Shuttle Bay1 and the Shuttle Bay OEP parts into my NXEnterprise HP. Hek I even used the ships carrier file and just taylored it to my NX ship. It works great except for the fact that the shuttles are launching from the rear of the ship(not very cannon). Any chance I can get some help with the re-positioning to have them launch forward?
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on November 17, 2009, 11:39:52 AM
Thanks Tiq but I'm been having trouble getting ship properties to show up right whenever I try to load a ship in MPE(kinda keep getting discouraged from using it because of this)
I even used the ships carrier file and just taylored it to my NX ship. It works great except for the fact that the shuttles are launching from the rear of the ship(not very cannon). Any chance I can get some help with the re-positioning to have them launch forward?
Dont give-up on MPE, yes at the beggining it is very Hard. but worth the effort.
Look here tooo http://bcs-tng.com/forums/index.php?board=76.0     might help

suee it can be fixed for you, just upload the Hp here
Title: Re: Shuttle Launches in HP [manual setup]
Post by: dEjavU on November 17, 2009, 09:08:12 PM
  :eek Oh man, I'm such an idiot! The reason the ship properties are not loading right in MPE was because I kept loading the ship's .PY file and not the ships HP file. Thanks Tiq for the link, helped clear out another question I have for quite some time about making docking possible for non-dockable stations(it's patricaly the same as scripting a ship to launch shuttles isn't it)anyways I saved the page for further future reference, I have a feeling I'm going to need it again.

Okay here's the ships HP file, the additions I made is towards the end of the file. I had an idea last night about salvaging the ship's original shuttle bays that the NX model came with and see if they can launch with a taylored OEP entry driving them, I'll post back to see if it works......
Title: Re: Shuttle Launches in HP [manual setup]
Post by: dEjavU on November 17, 2009, 09:58:04 PM
Sorry, I don't mean to ask anymore of you but seeing as how these two problems are somewhat related can I ask what to do about the shuttles not responding to any recall commands. I don't understand, the shuttle recall works on allot of my ships but for some reason some ships, like this NX model here, the return shuttle command don't work right? Have you ever ran into this problem before?

Okay it didn't work the way I expected(it's the same exit point and direction for the shuttles as with the first attempt)so now I see that the OEP is actually the emitter point in the model where that particular system(in this case the shuttle bay)is executed from. I've edited all four shuttle bays that the ship came with but the coordinates for each OEP entries are all the same so the shuttles are all coming out the same way in the same direction  :( Tiq can you help me out here. Here's the HP for the salvaged shuttle bays with the one OEP driving them, again the alterations are all at the end of the file....
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on November 18, 2009, 08:17:34 AM
Sorry, I don't mean to ask anymore of you but seeing as how these two problems are somewhat related can I ask what to do about the shuttles not responding to any recall commands. I don't understand, the shuttle recall works on allot of my ships but for some reason some ships, like this NX model here, the return shuttle command don't work right? Have you ever ran into this problem before?
Actually, this is common, the Hull radius on the Shuttle [you are recalling] is large than the radius of the shuttle bay.

maybe this will work for you, if I put-up the right one.
Title: Re: Shuttle Launches in HP [manual setup]
Post by: dEjavU on November 19, 2009, 08:11:06 AM
Sorry Tiq it still don't work right, still launches from the rear in the wrong direction....

(http://i378.photobucket.com/albums/oo221/dEjavU__/FoRruMs/ScreenShot002-3.jpg)

...what I did noticed though is that the shuttles are coming out of the other rear launch door. Kind of cool considering my first attemp resulted in the shuttles coming out of the other rear door, and I was thinking of as a comprimise was to get two shuttles to come out from both rear doors than I'd be settled and satisfied but when I went and used the OEP coordinates for your Bonaventure scripted ship for Launch Drop Bay 1 and Launch Drop Bay 2(yes I changed the coordinates for their hull property counterparts as well)and deleted the .PYC file but it didn't do squat..same result, they all come out from the same door. It's like their all following the leader or something. Whatever you did seemed to have partially fixed the problem with the return shuttle though. I say partially because I could only dock one shuttle and after that, for some reason, the mothership(NX01)seems to keep reverting back to having a full payload of shuttles..even though there are still the other shuttles flying around and I patiently kept trying, none of the rest will dock with the ship(just the first one at a time)......

(http://i378.photobucket.com/albums/oo221/dEjavU__/FoRruMs/ScreenShot004-1.jpg)

That's very confusing because I only have the ships carrier file accomidate 4 shuttles(one for each bay). Here's how the NX's carrier file set up, can you tell me if theres anything wrong with this....

Carrier = __import__("ftb.Carrier")
class NX01Enterprise(Carrier.Carrier):
    def __init__(self, pShip):
        Carrier.Carrier.__init__(self, pShip)
        LauncherGroup = __import__("ftb.LauncherGroup")
        group = LauncherGroup.LauncherGroup()

        LauncherManager = __import__("ftb.LauncherManager")

   launcher1 = LauncherManager.GetLauncher("Main Hangar 1", pShip)
   group.AddLauncher("Main Hangar 1", launcher1)

   launcher1.AddLaunchable("NX01Shuttle", "ftb.friendlyAI", 1)

   launcher1 = LauncherManager.GetLauncher("Main Hangar 2", pShip)
   group.AddLauncher("Main Hangar 2", launcher1)

   launcher1.AddLaunchable("NX01Shuttle", "ftb.friendlyAI", 1)

   launcher1 = LauncherManager.GetLauncher("Shuttle Drop Bay 1", pShip)
   group.AddLauncher("Shuttle Drop Bay 1", launcher1)

   launcher1.AddLaunchable("NX01Shuttle", "ftb.friendlyAI", 1)

   launcher1 = LauncherManager.GetLauncher("Shuttle Drop Bay 2", pShip)
   group.AddLauncher("Shuttle Drop Bay 2", launcher1)

   launcher1.AddLaunchable("NX01Shuttle", "ftb.friendlyAI", 1)



   self.AddLauncher("Group 1", group)

 # Define how much Shuttles we can carry maximal (Return Shuttles script)
    def GetMaxShuttles(self):
       return 4
    # Don't use the following Tractors to Dock:
    def IgnoreTractors(self):       
       return ["Aft Tractor", "Forward Tractor"]

ShipManager = __import__("ftb.ShipManager")
ShipManager.RegisterShipClass("NX01Enterprise", NX01Enterprise)

Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on November 19, 2009, 08:24:20 AM
Sorry it didnt work like you wanted
Did you Target each shuttle before ordering it to return [easy to forget]

well TBH I have had troubles at times activating the Return any way, it seems to be something we just got to live with.

If memory serves "Main Hangers" are mainly for , Landing and unloading supplies for the ship [resupply] , I dont recall ever seeing them used in any episode [correct me if I wrong]

Best thing to do is remove "Main Hanger stuff, else it will always use Main Hanger. although a new carrier py will have to be made
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on November 19, 2009, 08:48:20 AM
I will fix the HP now, but remember I will be removing "MainHanger" so a new carrier file is going to need to be made. {have you got BCUT, good toool]  http://bridgecommander.filefront.com/file/Bridge_Commander_Universal_Tool;106619


There you are But remember create a new carrier
Title: Re: Shuttle Launches in HP [manual setup]
Post by: dEjavU on November 19, 2009, 10:02:39 AM
No your right, I don't think they ever showed the ship using the main hanger bays either. Okay I did what you said and removed all Main Hangers entries, worked with only the Launch Drop Bays which I used your coordinates for the OEP entries for the HP file you tweaked. Made a brand new carrier file for it and.. :eek .....

(http://i378.photobucket.com/albums/oo221/dEjavU__/FoRruMs/ScreenShot00.jpg)

..it works! Maybe a bit cheesy with the shuttle bay doors not opening and the shuttles all coming out from the same spot but it sure beats the hek out of setteling for rear shuttle launches  :P

Thanks allot Tiq, your freakin' awesome!
Title: Re: Shuttle Launches in HP [manual setup]
Post by: dEjavU on November 19, 2009, 10:08:47 AM
I will fix the HP now, but remember I will be removing "MainHanger" so a new carrier file is going to need to be made. {have you got BCUT, good toool]  http://bridgecommander.filefront.com/file/Bridge_Commander_Universal_Tool;106619


There you are But remember create a new carrier


Sorry couldn't catch this in time never the less the effort is very much appreciated(thanks). How are you creating the coordinates for the entries? I would like to see(know)if it's possible to launch from the other drop bay doors.
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on November 19, 2009, 11:51:12 AM
Quote
Maybe a bit cheesy with the shuttle bay doors not opening

 How are you creating the coordinates for the entries?

That we can do Nothing about the doors. and creating the coordinates is why dont give-up on learning MPE
Title: Re: Shuttle Launches in HP [manual setup]
Post by: dEjavU on November 19, 2009, 09:50:24 PM
I understand, again a million thanks Tiq. Hopefuly(as time progresses)you'll continue to provide additional tutorials and scripting tips over at that BCS forrum page you provided earlier.  :)
Title: Re: Shuttle Launches in HP [manual setup]
Post by: tiqhud on November 20, 2009, 08:13:53 AM
I understand, again a million thanks Tiq. Hopefuly(as time progresses)you'll continue to provide additional tutorials and scripting tips over at that BCS forrum page you provided earlier.  :)
The main question, is, Did you understand them?   I try to make them easy to understand.
Title: Re: Shuttle Launches in HP [manual setup]
Post by: dEjavU on November 20, 2009, 11:28:46 AM
Yes I understand them perfectly(their all great). Maybe, if you have time, you can make an introduction tutorial for advanced users(or beginners)on how to properly use the MPE.  ;)
Title: Re: Shuttle Launches in HP [manual setup]
Post by: milenent on November 29, 2009, 06:01:31 AM
I've read it 3 times but I'm still not getting what is the shuttle class. I'm using http://defiant.homedns.org/~erik/STBC/carrier/ . I've selected the HP but I don't know what is the ship class. Any suggestions  :(
Title: Re: Shuttle Launches in HP [manual setup]
Post by: KrrKs on November 29, 2009, 10:00:58 AM
Most likely it is the name of the Shuttles Ship - file in scripts/ships.