Editing S-Foils
Moderator: JeremyaFr
Re: Editing S-Foils
- Vince T
- Posts: 13966
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
I've got a silly idea, probably a bad one as well, but for the sake of it:
Would it be possible to "suppress" the option to enter the hangar if/when landing gear isn't out and/or S-Foils are in combat mode?
This would be more of an immersion/RPG thing and I'd probably get annoyed by it after crashing into the hangar for the third time, but still. Had it floating around my head.
Would it be possible to "suppress" the option to enter the hangar if/when landing gear isn't out and/or S-Foils are in combat mode?
This would be more of an immersion/RPG thing and I'd probably get annoyed by it after crashing into the hangar for the third time, but still. Had it floating around my head.
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear
Vince T's X-Wing HQ - where the bad guys get their gear
- JeremyaFr
- Posts: 3709
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Done.
EDIT: link removed
To require s-foils being closed before enter hangar, set the CloseSFoilsAndOpenLangingGearsBeforeEnterHangar setting.
When set to 0, normal behavior
When set to 1, s-foils must be closed and landing gears opened before enter hangar
See "hook_sfoils.cfg".
EDIT: link removed
To require s-foils being closed before enter hangar, set the CloseSFoilsAndOpenLangingGearsBeforeEnterHangar setting.
When set to 0, normal behavior
When set to 1, s-foils must be closed and landing gears opened before enter hangar
See "hook_sfoils.cfg".
- Vince T
- Posts: 13966
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
Seriously? You actually pulled that through?
You're crazy & awesome Jérémy!
You're crazy & awesome Jérémy!

Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear
Vince T's X-Wing HQ - where the bad guys get their gear
- keiranhalcyon7
- Posts: 599
- Joined: Tue Jan 02, 2018 6:41 am
That reminds me of a bug - well, "difficulty" - I once saw. My mothership had flown into a position such that its hangar was very near the hyperspace departure point. Trying to enter the hangar, I was instead taken back to the (very hot) combat zone. Could landing gear state be used to resolve the ambiguity of which action spacebar will initiate?
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear
Vince T's X-Wing HQ - where the bad guys get their gear
- JeremyaFr
- Posts: 3709
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Done.
EDIT: link removed
Now when the landing gears are deployed, the player can't go in hyperspace.
EDIT: link removed
Now when the landing gears are deployed, the player can't go in hyperspace.
- Vince T
- Posts: 13966
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
Sweet Jeremy!
I can wait for the first ppl to yell "my hyperspace is bugged!"
Well There are no craft with the feature enabled, so I guess we're good
I can wait for the first ppl to yell "my hyperspace is bugged!"

Well There are no craft with the feature enabled, so I guess we're good

Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear
Vince T's X-Wing HQ - where the bad guys get their gear
-
- Posts: 1136
- Joined: Mon Apr 05, 2004 11:01 pm
Awesome! Thanks Jeremy. Another idea... is it possible to have a starship's (mothership)'s hangar doors or semi-transparent force field mesh open when the player and A.I. craft approach and then the mesh closes after "FG xxx has landed" message appears?
Maybe one of the hangar hardpoints triggers that.

W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- JeremyaFr
- Posts: 3709
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've merged the changes from the WIP version into the stable version.
I've added a config file to enable or disable the new features. They are disabled by default.
To require s-foils being closed before enter hangar, set the CloseSFoilsAndOpenLangingGearsBeforeEnterHangar setting.
When set to 0, normal behavior
When set to 1, s-foils must be closed and landing gears opened before enter hangar
To require landing gears being closed before enter hyperspace, set the CloseLangingGearsBeforeEnterHyperspace setting.
When set to 0, normal behavior
When set to 1, landing gears must be closed before enter hyperspace
Hello,
I've merged the changes from the WIP version into the stable version.
I've added a config file to enable or disable the new features. They are disabled by default.
To require s-foils being closed before enter hangar, set the CloseSFoilsAndOpenLangingGearsBeforeEnterHangar setting.
When set to 0, normal behavior
When set to 1, s-foils must be closed and landing gears opened before enter hangar
To require landing gears being closed before enter hyperspace, set the CloseLangingGearsBeforeEnterHyperspace setting.
When set to 0, normal behavior
When set to 1, landing gears must be closed before enter hyperspace
- Trevor
- Posts: 523
- Joined: Thu Dec 04, 2014 7:11 pm
Wow, yet more awsome stuff.
The hangar doors sound cool but I beleve only 1 instance has been seen onscreen and that was EpIII intro - Oh, theres an idea, stop cap ships from launching more ties if the hangar is disabled (or blast door closed in the event this feature does make its way in)
Trev
The hangar doors sound cool but I beleve only 1 instance has been seen onscreen and that was EpIII intro - Oh, theres an idea, stop cap ships from launching more ties if the hangar is disabled (or blast door closed in the event this feature does make its way in)
Trev
-
- Posts: 1136
- Joined: Mon Apr 05, 2004 11:01 pm
Hi Jeremy, here's another approach. If the Mothership (Starship/Station etc.) is assigned to a starfighter FG's "Arrival By" and "Depart By" flag, we know their S-Foils are triggered when they are at an approximate distance from the mothership.opt, or the mothership's hangar hardpoint. What if that instance is hooked the opposite way too? If a hangar hardpoint or some trigger hardpoint is placed on a starfighter.opt file, then it triggers the MotherShip's mesh doors to open as long as the Mothership has a designated "SFoils" mesh index added to it's *.ini or .txt file? Maybe something clever along that line of thought . . .
@Trevor, well one way to do that now would be to make the Hangar Meshes destroy-able which is easy to do, and but they house the hangar hardpoints which guide the A.I. FG's and player craft "Hit SpaceBar to Enter Hangar". It it would require some creative thought as far as design, extra meshes as to what the "inside" hangar or rather the breached hull looks like after it has suffered damage and so forth. This would also consider some mission design thought too as to having a backup mothership or station that the player's craft and perhaps other FG's could fly home to when the mission is over. Not absolutely necessary but there's flexibility there.
@Trevor, well one way to do that now would be to make the Hangar Meshes destroy-able which is easy to do, and but they house the hangar hardpoints which guide the A.I. FG's and player craft "Hit SpaceBar to Enter Hangar". It it would require some creative thought as far as design, extra meshes as to what the "inside" hangar or rather the breached hull looks like after it has suffered damage and so forth. This would also consider some mission design thought too as to having a backup mothership or station that the player's craft and perhaps other FG's could fly home to when the mission is over. Not absolutely necessary but there's flexibility there.
Last edited by Bman on Fri Apr 10, 2020 11:46 pm, edited 1 time in total.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- Driftwood
- Posts: 2173
- Joined: Wed Oct 22, 2003 11:01 pm
- Contact:
Assuming the hangar functions would work as anticipated if the hangar mesh was destroyed, then yes every ship that has deatroyable hangar mesh would need a damage model tucked in behind it or you'd be able to see through and fly into the model.
-
- Posts: 1136
- Joined: Mon Apr 05, 2004 11:01 pm
Yeah that's what I'm referring to more or less. Another issue... Is maybe the limits. We have a many to one relationship now, meaning different FG's and types of Starfighters have an arrival by or depart to flag set to a starship or two, or via hyperspace by default. But on the flip side how would the mothership's SFoils patch activate if you needed to assign more than one or two Starfighters FG's ? Perhaps by ship type or categories rather than just flight groups defined in the mission files. I think I'm going to test this now. Have a starship with an arrival by and/or a depart by flag to an xwing with a hold steady order in a test mission to see if I can make a given hullmesh move near the hangar when the xwing approaches. Will add hangar hardpoints to xwing. I don't think it's that simple but idea is there.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
-
- Posts: 1136
- Joined: Mon Apr 05, 2004 11:01 pm
Followup note. Confirmed, I tested multiple ways using GT's Trade Federation model--Invisbile Hand (IHand.opt) making the shieldgenerator meshes RotaryWing types, edited transformation vectors, and tested "arrival by" and "depart by" flags in AlliED and with a StarShipFlyHome order at 0% throttle. Also included an Xwing "fly home" order and added Outside and Inside Hangar hardpoints to the base Xwing.opt model with a random "hangar" type mesh.
Adding [SFoils] header to the IHand.ini file for meshes 33 and 34 had no effect except for pre-post/Hyperspace triggering, something more appropriate say for the wings of GT's new VSD-I model. I thought the hangar hardpoints might work with any object category besides starfighters and light shuttle crafts. Was worth a try.

W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
-
- Posts: 2263
- Joined: Sat Nov 29, 2003 12:01 am
- Contact:
Just wanna comment that JeremyaFr is everyone's hero. What a boss. And Darksaber, thanks for fixing my StarViper so it could be included in your Craft Pack several years ago. I did notice it then, but I didn't know what to say because I didn't really feel confident in it. I think the modeling on the StarViper is decent, but the textures are a little flat. And then there's the cockpit, with the "unsolvable" problem of there being a huge bar down the center of the pilot's view. Maybe one day I'll go back and try to fix these problems, improve the textures, add landing gear, etc.. I just got the idea that maybe the pilot's seat could be offset to one side in the cockpit.
- Ace Antilles
- Posts: 7254
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
This is a cool idea and works well!
When I use the X-wing it says this ship doesn't have landing gear. Obviously as it's modded onto the ship.
Is there any ships in game right now that do have unique landing gear or is that something for the future?
When I use the X-wing it says this ship doesn't have landing gear. Obviously as it's modded onto the ship.
Is there any ships in game right now that do have unique landing gear or is that something for the future?
- DarHan
- Posts: 324
- Joined: Mon Dec 05, 2005 12:01 am
- Contact:
@ Ace Antilles
I suppose it’ll be implemented in later updates to the ship set, but until then you can edit the ini files in the Flightmodels folder to make the landing gear work on the X-Wing, A-Wing, and Y-Wing.
-----
In XWing.ini:
Change
to
-----
In YWing.ini and AWing.ini:
Change
to
I suppose it’ll be implemented in later updates to the ship set, but until then you can edit the ini files in the Flightmodels folder to make the landing gear work on the X-Wing, A-Wing, and Y-Wing.
-----
In XWing.ini:
Change
Code: Select all
[SFoils]
;mesh index, angle, opening speed, closing speed
1, 8, 1, 1
2, 12, 1, 1
3, 12, 1, 1
4, 8, 1, 1
10, 8, 1, 1
11, 12, 1, 1
12, 12, 1, 1
13, 8, 1, 1
14, 8, 1, 1
15, 12, 1, 1
16, 12, 1, 1
17, 8, 1, 1
35, 64, 2, 1
36, 64, 2, 1
37, 50, 2, 2
38, 12, 1, 1
39, 12, 1, 1
40, 12, 1, 1
Code: Select all
[SFoils]
;mesh index, angle, opening speed, closing speed
1, 8, 1, 1
2, 12, 1, 1
3, 12, 1, 1
4, 8, 1, 1
10, 8, 1, 1
11, 12, 1, 1
12, 12, 1, 1
13, 8, 1, 1
14, 8, 1, 1
15, 12, 1, 1
16, 12, 1, 1
17, 8, 1, 1
CloseSFoilsInHyperspace = 1
[SFoilsLandingGears]
35, 64, 2, 1
36, 64, 2, 1
37, 50, 2, 2
38, 12, 1, 1
39, 12, 1, 1
40, 12, 1, 1
In YWing.ini and AWing.ini:
Change
Code: Select all
[SFoils]
Code: Select all
[SFoilsLandingGears]
Last edited by DarHan on Mon Apr 20, 2020 6:19 pm, edited 2 times in total.
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian
— Hobbie Klivian
- Trevor
- Posts: 523
- Joined: Thu Dec 04, 2014 7:11 pm
Oh, you get that error too? I thought I fluffed something up when testing various hooks and settings
Trev
Trev
- BenKenobi
- Posts: 94
- Joined: Wed Mar 18, 2020 12:30 pm
My Xwing.ini looks like this (in both my XWAUpgrade and DSUCP folder)DarHan wrote: ↑Mon Apr 20, 2020 3:20 pm
In XWing.ini:
Change
...
to-----Code: Select all
[SFoils] ;mesh index, angle, opening speed, closing speed 1, 8, 1, 1 2, 12, 1, 1 3, 12, 1, 1 4, 8, 1, 1 10, 8, 1, 1 11, 12, 1, 1 12, 12, 1, 1 13, 8, 1, 1 14, 8, 1, 1 15, 12, 1, 1 16, 12, 1, 1 17, 8, 1, 1 CloseSFoilsInHyperspace = 1 [SFoilsLandingGears] 35, 64, 2, 1 36, 64, 2, 1 37, 50, 2, 2 38, 12, 1, 1 39, 12, 1, 1 40, 12, 1, 1
Code: Select all
[SFoils]
;mesh index, angle, opening speed, closing speed
1, 8, 1, 1
2, 12, 1, 1
3, 12, 1, 1
4, 8, 1, 1
10, 8, 1, 1
11, 12, 1, 1
12, 12, 1, 1
13, 8, 1, 1
14, 8, 1, 1
15, 12, 1, 1
16, 12, 1, 1
17, 8, 1, 1
35, 64, 2, 1
36, 64, 2, 1
37, 50, 2, 2
38, 12, 1, 1
39, 12, 1, 1
40, 12, 1, 1
Code: Select all
[SFoilsLandingGears]
- JeremyaFr
- Posts: 3709
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the s-foils hook.
I've fixed a bug where the player can fire lasers when the s-foils are closed.
Hello,
I've updated the s-foils hook.
I've fixed a bug where the player can fire lasers when the s-foils are closed.
- Ace Antilles
- Posts: 7254
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
Does anyone have perfect ini settings for ship landing gear please?
My new Z95 is perfect but not the rest.
The YW is all over the place.
The AW closes ok but opens slowly.
The XW rear is ok but the front strut 2 parts are out of sync
My new Z95 is perfect but not the rest.
The YW is all over the place.
The AW closes ok but opens slowly.
The XW rear is ok but the front strut 2 parts are out of sync
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station