How to pilot capital ships and frigates

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

User avatar
wilkos
Private
Posts: 30
Joined: Sun May 04, 2008 4:48 pm

How to pilot capital ships and frigates

Post by wilkos »

i know nothing about modding
but i was wondering if it was possible to make capital ships and frigates "drive-able", i mean that you can jump inside and drive them

and even have seats for gunners


take for example that new map where you fight as rebels or empire inside a star destroyer, there is a nice bridge, its very well done.
so imagine if you could stand where darth vader stands in the movies and press "E" (or your custom enter/exit button) and slowly turn that gigantic star destroyer.
or sit on one of those computers and shoot a turbolaser.

wouldn't that be great?
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: how to pilot capital ships and frigates

Post by Grev »

I can't be sure, but I think that would be heavily lag inducing. However, it's very possible, the simplest way being to switch a ship model to the capital ship model in it's .odf. However, before you even try that, read all the documentations, and THEN start modding.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: how to pilot capital ships and frigates

Post by Fiodis »

It is impossible to fly a capital ship, because then the command posts and spawn points and vehicle spawns and capture/control regions would stay still and just sit there in space.

And that's not to mention the fact that capital ships have four separate meshes.

It is possible to rig a frigate, however, to be flyable.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: how to pilot capital ships and frigates

Post by MercuryNoodles »

I believe there's a topic on making ships pilotable somewhere. However, motherships, like the ISD are never made that way because the physics don't allow for it (units move independently of the ship, if memory serves), you can't move things like regions, or spawn paths, and the fact that the large ships are actually several separate models placed next to one another. If it were an empty, solid, ship (no CPs, no other units inside, all one model), it may be doable and might play out ok.

I should also mention you could move ships using ZE animation, where you could link multiple objects so they move as one. Although you can't control the ship ingame, it could provide the illusion of ships trying to maneuver.

Entering a heavy turbolaser turret wouldn't be too difficult to do, since it's just turret, like any other in the game. In fact, that's the easiest of your suggestions. It should be as simple as a quick odf edit, and making the linkage to a turret chair in ZE.
User avatar
wilkos
Private
Posts: 30
Joined: Sun May 04, 2008 4:48 pm

Re: how to pilot capital ships and frigates

Post by wilkos »

ok, so capital ships can't be moved

so, what if we make a hge change in space battles?
what if now, not only fighters and bombers dogfight in space, but also frigates
is it possible to make the space maps dimension bigger?
so that we could place two or three more frigates and have more space to manuver
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: how to pilot capital ships and frigates

Post by MercuryNoodles »

Frigates are doable.

Changing the size of a space map can be done via the lua command SetWorldExtents(). Things like this I'm pretty sure are covered somewhere in the docs. Make sure you look those over, as it will eliminate a lot of basic questions.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: how to pilot capital ships and frigates

Post by Fiodis »

Let it be mentioned that you'd have to scale the frigate down - otherwise good luck trying to fit it in a hanger.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: how to pilot capital ships and frigates

Post by FragMe! »

Good point, you cannot "enter" the frigate if it is in space. You may be able to make it so it is like a remote turret like the wookie uses, or something similar to that you would just have to make it so you go to a command chair on the main ship. Or have it so it is selfpiloted but chances are it will just crash into things.
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Re: how to pilot capital ships and frigates

Post by trainmaster611 »

Yeah, frag has a good solution to that. You could put the bridge somewhere out of site and then you hop in the chair and remote control the ship. Perhaps you could place the bridge inside of the frigate itself and have a spawnpoint inside of the bridge, then you could auto force the player/unit into the seat when they spawn. (I forget, did we ever figure out how to do that?)

But I have a gut feeling that vehicles of that size will have some issues relative to how it is controlled. Vehicles in SWBF2 weren't meant to be that size and from experience, if it wasn't intended to be used that way, there will probably be some difficulties associated with it. Maybe memory pool or 'control' problems. I dunno.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: how to pilot capital ships and frigates

Post by Frisbeetarian »

trainmaster611 wrote:Perhaps you could place the bridge inside of the frigate itself and have a spawnpoint inside of the bridge,
I don't think that you can move spawn points, so you'd be creating the same problem you have with the capital ships. Also, if you force a unit inside a vehicle, I'm pretty sure it doesn't matter where they spawn.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: how to pilot capital ships and frigates

Post by Fiodis »

To throw a further monkey wrench in the thinking gears, you may want to take into account that the frigates are outside the landing regions. I'm not sure if that matters any, but there might be some complications involving getting into vehicles outside landing regions. For one thing, you can only enter a vehicle if it is in a landing region, right? And the frigate is outside one, ergo it ought to be impossible. But it has no pilot, so there is a vacancy that you could fill in the pilot's seat, and anyway without a pilot it's not going anywhere. Assuming you can get into the pilot's chair of a frigate, there is a further thing to ponder: landing regions make it impossible to land outside them. Does that mean you can't take off outside them either?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: how to pilot capital ships and frigates

Post by Maveritchell »

Fiodis wrote:Does that mean you can't take off outside them either?
No.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: How to pilot capital ships and frigates

Post by Fiodis »

Ok, thanks. There's the other things to consider.

And something else: you won't be able to get out of it, since the landing regions are inside hangers and there's no way that thing's fitting in a hanger.
User avatar
wilkos
Private
Posts: 30
Joined: Sun May 04, 2008 4:48 pm

Re: How to pilot capital ships and frigates

Post by wilkos »

do you remember the death star dogfight map?
that where, as a rebel, you spawn on Yavin IV, jumped into an x-wing and when you get high enough you are "teleported" to the deathstar
may be we could do the same as the modder of that map
and build a landing zone in one planet, where frigates spawn next to the edge of a platform
like in this picture

http://lh6.ggpht.com/quedificiles/R9l_q ... umb%5B4%5D

and when you get the frigate to some heigh in the sky you are teleported to space and start a fight there

may be the enemy stays the same as in default space maps
i mean:
"a star destroyers attacks corellia, the corellian space command lunches their frigates to attack the incoming enemy"


and for the frigates, i was thinking how many seats should they have? it depends on how many turrets, maybe 3? one armed with a heavy laser to strike the enemy shields and parts and two anti aircraft laser to defend from bombers and fighters
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: How to pilot capital ships and frigates

Post by MercuryNoodles »

I should note that a landing region doesn't have to be inside a hangar bay. It's a region, so you can put it virtually anywhere. All you really need is an object the ship can land on. wilkos has the right idea here. The degree of realism displayed is basically a matter of desire.

The number of seats and what weapons they have is up to you, so long as it stays within the game's limitations. If I remember correctly, the max is 5 positions, pilot included. Keep in mind any turrets would need to be modeled on, if they are to move with the ship, since turrets as used in the stock game are individual models. Barring that, you can have weapons fire from the frigate's own hardpoints, if I'm thinking through this correctly.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: how to pilot capital ships and frigates

Post by [RDH]Zerted »

Frisbeetarian wrote:I don't think that you can move spawn points
You can't, but you can be forced spawn at any matrix (basically any object, unit, or region).
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: How to pilot capital ships and frigates

Post by Fiodis »

I'll toss out that the Dogfighting Death Star map didn't use teleports to get from the "planet" to the Trench.

But yeah, the degree of realism is up to the modder. I just think that realism is fairly important, unless you completely junk it and go Dann_Boeing style.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: How to pilot capital ships and frigates

Post by MercuryNoodles »

What I was thinking of when I posted that was that one could set it so you were forced into a frigate that was sitting in space, on invisible geometry. It may not exactly seem realistic, but it wouldn't be entirely disruptive, either.
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Re: How to pilot capital ships and frigates

Post by KnightsFan »

I was reading this yesterday and got a crazy idea about making a pilot-able capital ship.

You'd make a series of turrets with LUA weapons and when you fire those weapons it plays an animation (the kind made in ZE) that moves all the ship's parts and vehicle spawn and all.
Of course, you can't move spawn nodes with the anim. So you'd make a command walker with the geometry of a CP and use that instead.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: How to pilot capital ships and frigates

Post by YaNkFaN »

Of course, you can't move spawn nodes with the anim.
exactly why it won't work
Post Reply