Editing S-Foils

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderators: Darksaber, General_Trageton, Forceflow, JeremyaFr, DTM

Post Reply

Re: Editing S-Foils

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1607
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Sep 10, 2019 3:27 pm

WIP
Hello,
I've added settings to disable the s-foils animation in hyperspace and to slow down the opening/closing animation.

To enable or disable the S-Foils closing/opening in before/after hyperspace, create a setting named "CloseSFoilsInHyperspace". To enable, set "1". To disable, set "0". The default value is "0".
To slow down the animation, create a setting named "SFoilsAnimationSpeed". For instance, if you set "2", the animation will be slowed down by a factor of 2. The default value is "1" (normal speed).

Code: Select all

CloseSFoilsInHyperspace = 1
SFoilsAnimationSpeed = 1
EDIT: link removed

User avatar
DTM
Lieutenant Commander
XWAU Member
Posts: 1312
Joined: Tue Apr 22, 2003 11:01 pm
Contact:

Post by DTM » Tue Sep 10, 2019 5:55 pm

May I suggest to set the default value as "0" (if it's possible)?
Most of the crafts does not have s-foil, but have landing gears. This new feature should be restricted to X-Wing, B-Wing, U-Wing, VSD and few others...
Thanks!!!!

MTD industries
WIPs: REBCP version 2

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1607
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Sep 10, 2019 7:09 pm

Done.
I've changed the default value. S-Foils will not be closed in hyperspace by default.

Rookie_One1
Lieutenant Commander
Rebel Alliance
Posts: 1331
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Wed Sep 11, 2019 2:33 pm

Will try to test it ASAP :)
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1607
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Sep 12, 2019 6:45 pm

WIP
Hello,
I've found how to separate s-foils and landing gears animations.

To create landing gears, create a file named "FlightModels\[Model]SFoilsLandingGears.txt" or create a section named "[SFoilsLandingGears]" in "FlightModels\[Model].ini".
The format is a line per mesh:
mesh index, angle, closing speed, opening speed.

Landing gears are deployed when a craft in is the hangar. When the s-foils are closed in space, the landing gears are not deployed.

User avatar
ual002
Ensign
Galactic Empire
Posts: 488
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Thu Sep 12, 2019 6:47 pm

Excellent find. Well done. Will be reporting soon on the recent Sfoil changes.

As a simple thought project, how likely is it to ever be able to tie the Sfoil open/close animations to craft orders?
For the glory of his majesty Emperor Palpatine! Image Image Image Image

User avatar
Driftwood
Lieutenant Commander
XWAU Member
Posts: 1712
Joined: Wed Oct 22, 2003 11:01 pm
Contact:

Post by Driftwood » Thu Sep 12, 2019 7:57 pm

So if the s foils actuate via keybind, the landing gear meshes do not rotate in flight? And hangar landing and take off sequences they do? Separate keybinds (shouldn't be necessary)?

User avatar
Trevor
Cadet 1st Class
Posts: 188
Joined: Thu Dec 04, 2014 7:11 pm

Post by Trevor » Thu Sep 12, 2019 8:11 pm

Excellent work.

XWA just keeps getting better and better.

Trev

User avatar
keiranhalcyon7
Ensign
Posts: 275
Joined: Tue Jan 02, 2018 6:41 am

Post by keiranhalcyon7 » Thu Sep 12, 2019 8:57 pm

YES. Jeremy, you never cease to amaze! But of course I have a few questions:

With this change, would we ever see the landing gear animate? Do (or could) the landing gear deploy/retract along with the s-foils closing/opening during landing approaches/launches?
What happens when you're flying a ship that has landing gear, but no traditional s-foils, and you try to actuate them?

Potential next steps:
Currently I think only mesh rotations are possible. Is it feasible to add support for linear transformations (in support of landing gear for the Corellian transports)?
Is it feasible to trigger the landing gear animation during the launch/landing sequence, so that the landing gear retract as the ship is lifting off/flying out the hangar door (& vice-versa)?
Are additional categories with independently-timed animations in the hangar feasible? (For open canopies, hatches, & ingress/egress ramps.)

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10319
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Thu Sep 12, 2019 10:53 pm

If it's possible to bind a key to opening and closing the landing gear the "D" key is free

I've been going through all the manuals

Shift-D = Dock with targeted craft
Alt-D = Cycle graphics detail settings

But nothing for the "D" key :D

Or you could use Ctrl-L
“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

Rebelyell
Cadet 4th Class
Posts: 21
Joined: Fri Jun 14, 2019 1:35 am

Post by Rebelyell » Thu Sep 12, 2019 11:21 pm

Awesome! I found if you order friendlies to "go home" (control h i think) they will close their s-foils and head out.

prior to this hook update tho they would also drop landing gear so this amazing!

User avatar
Driftwood
Lieutenant Commander
XWAU Member
Posts: 1712
Joined: Wed Oct 22, 2003 11:01 pm
Contact:

Post by Driftwood » Fri Sep 13, 2019 1:27 am

I think CTRL+L would be ideal since that would avoid any accidental deployments of landing gear.

User avatar
General_Trageton

Fleet Admiral (Administrator)
Posts: 12133
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by General_Trageton » Fri Sep 13, 2019 6:05 am

Ok while we’re on a roll, I’ll throw this one in: Would it be possible to have landing gear on appropriate craft trigger upon docking to another?
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's Modding HQ | Blue Phantom Chronicles WIki | My Steam Workshop

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10319
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Sep 13, 2019 6:26 am

I wouldn't get your hopes up too much we don't even know if a Key can be used yet :)
“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

User avatar
General_Trageton

Fleet Admiral (Administrator)
Posts: 12133
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by General_Trageton » Fri Sep 13, 2019 6:30 am

Fair enough. Just had the thought and wanted it written down XD
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's Modding HQ | Blue Phantom Chronicles WIki | My Steam Workshop

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10319
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Sep 13, 2019 9:44 am

Sorry GT, that wasn't really meant to answer your post, when I came on to the topic, and Driftwoods post was the last post, I got distracted and didn't post my answer until after you posted, sorry for the confusion :)
“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

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10319
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Sep 13, 2019 10:24 am

Ok Jeremy, since no one else has got back to you who said they where going to test, I thought I had better test these new features

Testing with Battle1 Mission 4: Rescue Echo Base Prisoners

Flying an Xwing, I kept my eye on the other xwings, before they enter Hyperspace they close there wings, looks good, but exiting out of hyperspace they seems to all have there wings already open.

Now on to the Landing Gear S-Foils

This is what I having in the Xwing.ini file

Code: Select all

[SFoils]
;mesh index, angle, closing speed, opening 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
SFoilsAnimationSpeed = 1

[SFoilsLandingGears]
;mesh index, angle, closing speed, opening speed
35, 64, 20, 3
36, 64, 20, 3
37, 50, 4, 8
38, 12, 1, 2
39, 12, 1, 1
40, 12, 1, 1
This seems to work fine if your just flying the Pilot Proving Ground, your in thr hangar with the landing gear down, you enter space with the rings, and if you Press "V" the Landing Gear does not show, this is great

But testing in the mission mentioned above, you enter the mission, I tested the s-foils, the landing gear came down the same time as the wings closed, it doesn't seem to work in missions, only in the Pilot Proving Ground.

EDIT: Also noticed if you add the [SFoilsLandingGears] to the Shuttle, it no longer lifts it's landing gear when taking off from the hangar in either the Pilot Proving Ground or a Mission.

(On a side note for ever one else, I had to alter the rear landing gear on the X-wing as they showed when the wings where closed), so if anyone else bothers to test this, the Xwing is fixed for the next release or patch?

@DTM you might want to test the landing gear with your Z-95's with S-Foils, plus Spyders X-wing :D
“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

User avatar
General_Trageton

Fleet Admiral (Administrator)
Posts: 12133
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by General_Trageton » Fri Sep 13, 2019 10:57 am

Sorry wasnt able to test over the past days, swapping between rehearsals and gigs. Won‘t be doing anything XWA before monday :kopfwand:
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's Modding HQ | Blue Phantom Chronicles WIki | My Steam Workshop

Rookie_One1
Lieutenant Commander
Rebel Alliance
Posts: 1331
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Fri Sep 13, 2019 1:12 pm

I was a bit occupied lately, so did not had the time to test, will try tomorrow at the latest
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
ual002
Ensign
Galactic Empire
Posts: 488
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Fri Sep 13, 2019 3:17 pm

Lol, Darksaber with the guilt trip. I have been moving into a new house and getting used to my new step dogs. Just been too busy to devote large swaths of undivided attention yet. I should have time this weekend to throw the sfoil changes thru a few custom missions.
For the glory of his majesty Emperor Palpatine! Image Image Image Image

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10319
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Sep 13, 2019 3:29 pm

It's the only way to get things done around here lol :D

Guilt you all into doing something :lachtot: :lachtot:
“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

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1607
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Sep 13, 2019 3:47 pm

WIP
Hello,
I've mapped the landing gears to the Ctrl+L key.

Changelog:
- changed the model filter to use SFoils or LandingGears depending on the pressed key
- changed the shuttle animation in hangar to use SFoils and LandingGears instead of SFoils
- added Control+L key for opening or closing landing gears

To open or close s-foils, use the V key. To deploy or retract landing gears, use the Ctrl+L key.
Known issue:
- when you switch between s-foils and landing gears, the craft may not immediatly respond. You may have to press the key a second time.

Not tested yet:
- docking

User avatar
ual002
Ensign
Galactic Empire
Posts: 488
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Fri Sep 13, 2019 3:50 pm

Docking will be interesting. Some ships would need to fold sfoils, some wont, same with probably landing gear/struts. Something to tackle later I'm sure.
For the glory of his majesty Emperor Palpatine! Image Image Image Image

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10319
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Sep 13, 2019 3:56 pm

Thank you Jeremy :applaus:
“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

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10319
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Sep 13, 2019 6:22 pm

Reported this previously, but thought I'd include it again
In missions, player craft deploy the landing craft when V key is pressed, also the CTRL=L key doesn't work in missions

Tested in the Pilot Proving Ground
------------------------------------------------
Craft with no Landing gear, the S-foils work OK
B-Wing
Skipray Blastboat

Craft with Landing Gear but No S-foils when you start the landing gear is down
A-Wing
Y-Wing
Z-95
Pinook Fighter

Craft with Landing Gear and S-foils the craft start with the Landing gear up and the S-foils opening
X-Wing
Missileboat
Assault Gunboat

Seems as though craft with No S-foils the Landing Gear is down

Tested in Skirmish
-------------------------
Craft with no Landing gear, the S-foils work OK
B-Wing
Skipray Blastboat

Craft with Landing Gear but No S-foils when you start the landing gear is Up
A-Wing
Y-Wing
Z-95
Pinook Fighter

Craft with Landing Gear and S-foils the craft start with the Landing gear up and the S-foils opening
X-Wing
Missileboat
Assault Gunboat

Landing Gear Message, is about the S-Foils Opening
Craft with no Landing the message it "This Craft does not have S-Foils
I think the message need to be altered for Landing Gear

The Shuttle seems to be fine now in the hangar :D
“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

Post Reply