Page 5 of 11

Re: Editing S-Foils

Posted: Tue Sep 10, 2019 3:27 pm
by JeremyaFr
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

Re: Editing S-Foils

Posted: Tue Sep 10, 2019 5:55 pm
by DTM
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!!!!

Re: Editing S-Foils

Posted: Tue Sep 10, 2019 7:09 pm
by JeremyaFr
Done.
I've changed the default value. S-Foils will not be closed in hyperspace by default.

Re: Editing S-Foils

Posted: Wed Sep 11, 2019 2:33 pm
by Rookie_One1
Will try to test it ASAP :)

Re: Editing S-Foils

Posted: Thu Sep 12, 2019 6:45 pm
by JeremyaFr
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.

Re: Editing S-Foils

Posted: Thu Sep 12, 2019 6:47 pm
by ual002
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?

Re: Editing S-Foils

Posted: Thu Sep 12, 2019 7:57 pm
by Driftwood
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)?

Re: Editing S-Foils

Posted: Thu Sep 12, 2019 8:11 pm
by Trevor
Excellent work.

XWA just keeps getting better and better.

Trev

Re: Editing S-Foils

Posted: Thu Sep 12, 2019 8:57 pm
by keiranhalcyon7
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.)

Re: Editing S-Foils

Posted: Thu Sep 12, 2019 10:53 pm
by Darksaber
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

Re: Editing S-Foils

Posted: Thu Sep 12, 2019 11:21 pm
by Rebelyell
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!

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 1:27 am
by Driftwood
I think CTRL+L would be ideal since that would avoid any accidental deployments of landing gear.

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 6:05 am
by Vince T
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?

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 6:26 am
by Darksaber
I wouldn't get your hopes up too much we don't even know if a Key can be used yet :)

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 6:30 am
by Vince T
Fair enough. Just had the thought and wanted it written down XD

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 9:44 am
by Darksaber
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 :)

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 10:24 am
by Darksaber
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

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 10:57 am
by Vince T
Sorry wasnt able to test over the past days, swapping between rehearsals and gigs. Won‘t be doing anything XWA before monday :kopfwand:

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 1:12 pm
by Rookie_One1
I was a bit occupied lately, so did not had the time to test, will try tomorrow at the latest

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 3:17 pm
by ual002
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.

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 3:29 pm
by Darksaber
It's the only way to get things done around here lol :D

Guilt you all into doing something :lachtot: :lachtot:

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 3:47 pm
by JeremyaFr
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

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 3:50 pm
by ual002
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.

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 3:56 pm
by Darksaber
Thank you Jeremy :applaus:

Re: Editing S-Foils

Posted: Fri Sep 13, 2019 6:22 pm
by Darksaber
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