Editing S-Foils
Moderator: JeremyaFr
Re: Editing S-Foils
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
WIP
- I've fixed the rotation angle.
- I've added a line to show the rotation axis.
- I've added a button to save the OPT file.
- The ini file is now saved.
EDIT: link removed
Before testing, I recommand to make a backup of the ini and/or txt files for the craft being tested.
- I've fixed the rotation angle.
- I've added a line to show the rotation axis.
- I've added a button to save the OPT file.
- The ini file is now saved.
EDIT: link removed
Before testing, I recommand to make a backup of the ini and/or txt files for the craft being tested.
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
The rotation angle is dependent from the lenght of the "Look" vector. So I think the vector length can be used to slow down the rotation while still being smooth. I've not tested that.
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
WIP
I've added a button to save the OPT file.
I've added a button to save the OPT file.
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
WIP
The ini file is now saved.
On saving, the ini file is updated. If a txt file already exists, it will also be updated.
The ini file is now saved.
On saving, the ini file is updated. If a txt file already exists, it will also be updated.
“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
- Vince T
- Posts: 14028
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
Tested it on the VSD and it works great! Thanks Jeremy!
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: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've added Xwa SFoils Editor to Xwa Opt Editor.
Hello,
I've added Xwa SFoils Editor to Xwa Opt Editor.
“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
-
- Posts: 18
- Joined: Mon Nov 04, 2019 4:17 am
can I assume that for this to look right in game, I will need updated ship files? Using the files in that zip the sfoils work (aside from the guns staying in place) but there is no landing gear (presumable because of lack of FlightModels\[Model]SFoilsLandingGears.txt files). I'm eager to see sfoils and landing gear separate, but I can wait until someone makes those filesJeremyaFr wrote: ↑Sat Sep 21, 2019 8:13 pmNice suggestion.Driftwood wrote: ↑Thu Sep 19, 2019 9:38 pmRelated to this, would it be possible to create a tool that would allow you to import an opt into it, then using sliders, or a text based interface like your hangar editor assigned to whatever rotational axis that the S-foil / landing gear animations use, use it to rotate the meshes to a desired open/closed angle, then allow you to export the mesh rotation data into the relevant ship.ini file? This would really help with not having to go ingame to see if your animated meshes are rotating to the correct position several times.
I am working on it.
The hook upload is fine. You can check the date here: https://github.com/JeremyAnsel/xwa_hook ... sfoils/zip
*FEW MINUTE$ LATER*
Or I can make them myself

-
- Posts: 1157
- Joined: Mon Apr 05, 2004 11:01 pm
Hi Jeremy, can you give an example of how the AssaultGunboat.ini file should look (syntax), specifically the LandingGears Hook ? Ctrl + L
[Pilot]
x, x,x,x, for rotating pilot head
[SFoils]
x, x,x,x, for the actual rotary wings
CloseSFoilsInHyperspace = 1
SFoilsAnimationSpeed = 1
[SFoilsLandingGears] = 0 or 1 ? Is this a section header or a normal syntax statement ? Can it be here too, or does it only go into an AssultGunBoatSFoilsLandingGears.txt .txt file ?
x,x,x,x for rotary landing gear meshes
Also what order should the above sections/statements be in?
Thanks!
[Pilot]
x, x,x,x, for rotating pilot head
[SFoils]
x, x,x,x, for the actual rotary wings
CloseSFoilsInHyperspace = 1
SFoilsAnimationSpeed = 1
[SFoilsLandingGears] = 0 or 1 ? Is this a section header or a normal syntax statement ? Can it be here too, or does it only go into an AssultGunBoatSFoilsLandingGears.txt .txt file ?
x,x,x,x for rotary landing gear meshes
Also what order should the above sections/statements be in?
Thanks!
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
this is my AssaultGunboat.ini
To open or close s-foils, use the V key. To deploy or retract landing gears, use the Ctrl+L key. You can't open the other when one is open.
I suppose the [Headers] can be in any order, I like to do them alphabetical
[SFoilsLandingGears] is a section header, you now need both if your craft has Landing Gear, if not just use the [SFoils] header
Code: Select all
;AssaultGunboat.ini
[Camera]
;Camera X,Y,Z
X = -300
Y = 500
Z = 70
FamX = -300
FamY = 500
FamZ = 70
[Pilot]
;mesh index, angle, speed, behavior
12, 32, 2, 2
[SFoils]
;mesh index, angle, closing speed, opening speed
4, 50, 2, 2
5, 50, 2, 2
6, 88, 2, 2
7, 88, 2, 2
CloseSFoilsInHyperspace = 0
SFoilsAnimationSpeed = 1
[SFoilsLandingGears]
;mesh index, angle, closing speed, opening speed
10, 128, 8, 8
11, 128, 8, 8
[Size]
ClosedSFoilsElevation = 55
ClosedSFoilsElevationInverted = 55
[Sound]
EngineSoundInterior = 5
EngineSoundFlyBy = 5
EngineSoundWash = 1
WeaponSoundBehavior = Empire
[WeaponColor]
WeaponColor = 0
WeaponColor282 = 0
WeaponColor283 = 0
WeaponColor284 = 2
WeaponColor285 = 2
WeaponImpactColor_3100 = 80C71585
WeaponImpactColor_3200 = 80FF0000
WeaponImpactColor_3300 = BF55FF00
WeaponImpactColor_3400 = 804A0080
WeaponImpactColor_3500 = BFFFE700
WeaponImpactColor282 = BF55FF00
WeaponImpactColor283 = BF55FF00
WeaponImpactColor284 = 80C71585
WeaponImpactColor285 = 80C71585
EnergyBarColorLaserHigh = FF00FF00
EnergyBarColorLaserLow = FF009E00
EnergyBarColorIonHigh = FFDB1893
EnergyBarColorIonLow = FF961065
WeaponLightColor282 = 0
WeaponLightColor283 = 0
WeaponLightColor284 = C71585
WeaponLightColor285 = C71585
I suppose the [Headers] can be in any order, I like to do them alphabetical
[SFoilsLandingGears] is a section header, you now need both if your craft has Landing Gear, if not just use the [SFoils] header
“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
-
- Posts: 1157
- Joined: Mon Apr 05, 2004 11:01 pm
Thanks DS. That's perfect. I came up with similar configuration after I posted. The problem I was having was that the landing gears were rotating constantly on AI wingmen craft. I discovered that changing the mesh type from rotorarycommandsystem to rotarywing mesh works. So mesh type does matter in most cases. I have files I need to send you too pretty soon. Thanks mate.
EDIT: The EngineSoundWash = 1 statement you posted above, only applies to starships. I don't think it works for fighter craft.
EDIT: The EngineSoundWash = 1 statement you posted above, only applies to starships. I don't think it works for fighter craft.
Last edited by Bman on Wed Mar 18, 2020 3:25 am, edited 3 times in total.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
You can actually leave Landing Gear mesh type as 1-MainHull on the opt, as long as it is set in the txt/ini file it should rotate
“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
- Vince T
- Posts: 14028
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
Got a problem here. ...
WIth the latest release the NPC Sfoils no longer close in hyperspace. Could you take a look?
WIth the latest release the NPC Sfoils no longer close in hyperspace. Could you take a look?
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: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
I've checked the s-foils hook.
It seems that all is fine.
By default, the s-foils don't close when entering into hyperspace.
This feature has to be set on a per-craft basis by setting "CloseSFoilsInHyperspace = 1" in the [SFoils] section.
I've checked the s-foils hook.
It seems that all is fine.
By default, the s-foils don't close when entering into hyperspace.
This feature has to be set on a per-craft basis by setting "CloseSFoilsInHyperspace = 1" in the [SFoils] section.
- Vince T
- Posts: 14028
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
This is weird. I didn't change anything in the ini file and it did work before 

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: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
In the WIP version of the hook, the default value for CloseSFoilsInHyperspace was 1. I have then modified it to 0 as a DTM request.
Maybe I can add a global default value in a config file for the hook?
So without editing the ini files, in the WIP version the S-Foils automatically close by default, but in the stable release, since the default value is inverted, this feature has to be explicitly enabled for a specific craft.
Maybe I can add a global default value in a config file for the hook?
- Vince T
- Posts: 14028
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
Hm, I had set it to 1 already ... I wonder if the rotary gun turrets might be interferring here?
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
- Rookie_One1
- Posts: 1656
- Joined: Thu Feb 26, 2004 12:01 am
bug report time : the s-foil sound play at hyperspace when you have landing gears meshed activated in the in ini file (tested with the Y-Wing)
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death
Current Holder of the Frying Pan of Death
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Thanks for the bug report.
Good catch.
I've fixed it.
Please redownload the hook.
Good catch.
I've fixed it.
Please redownload the hook.
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death
Current Holder of the Frying Pan of Death
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
i've updated the sfoils hook.
I've fixed a bug introduced in the last fix.
The bug was that the S-Foils don't automatically open at mission start. I've fixed it.
Hello,
i've updated the sfoils hook.
I've fixed a bug introduced in the last fix.
The bug was that the S-Foils don't automatically open at mission start. I've fixed it.
-
- Posts: 39
- Joined: Sun Mar 15, 2020 3:56 pm
Thanks a lot! This fixes my issue with the A-Wing (doesn't wants to fire because the "S-Foils are closed")
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the sfoils hook.
You can now set the initial state of the s-foils and landing gears.
Suppose that the mission is "[MissionDir]\[Mission].tie".
To override the mission data, create a file named "[MissionDir]\[Mission].txt" or create a section named "[mission_tie]" in "[MissionDir]\[Mission].ini".
The format is a line per replacement.
To replace the flight group s-foils state, the format is: "fg", fg number, "close_SFoils", 1.
To replace the flight group landing gears state, the format is: "fg", fg number, "open_LandingGears", 1.
Hello,
I've updated the sfoils hook.
You can now set the initial state of the s-foils and landing gears.
Suppose that the mission is "[MissionDir]\[Mission].tie".
To override the mission data, create a file named "[MissionDir]\[Mission].txt" or create a section named "[mission_tie]" in "[MissionDir]\[Mission].ini".
The format is a line per replacement.
To replace the flight group s-foils state, the format is: "fg", fg number, "close_SFoils", 1.
To replace the flight group landing gears state, the format is: "fg", fg number, "open_LandingGears", 1.