Editing S-Foils

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

Moderator: JeremyaFr

Post Reply

Re: Editing S-Foils

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Mon Jun 22, 2020 5:59 am

Hey Jeremy, concerning the hyper-space s-foil behavior, is it normal that no matter the setting that the player craft will ALWAYS close it's s-foils when entering hyperspace ?
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Jun 22, 2020 4:33 pm

Hello,
Are you using the latest versions of the hooks?

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Mon Jun 22, 2020 5:55 pm

Yes
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Wed Jun 24, 2020 3:19 pm

do we know what is causing the player craft (not the AI craft, important distinction there) to close it's s-foils no matter what the CloseSFoilsInHyperspace setting is setted to ?
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Sep 02, 2020 10:41 am

UPDATE

Hello,
I've updated the s-foil hook.

I've updated the landing gears description.

The format of the ini section is the same for S-Foils and Landing Gears.
The s-foils are opened by default. When the mesh rotation angle is 0, it means that the s-foil is opened. When the mesh rotation angle is equal to the setting angle, it means that the s-foil is closed.
The landing gears are closed by default. When the mesh rotation angle is 0, it means that the landing gear is closed. When the mesh rotation angle is equal to the setting angle, it means that the landing gear is opened.
So closing and opening speeds are inverted for the landing gears.

For S-Foils, the format is:

Code: Select all

mesh index, angle, closing speed, opening speed.
For Landing Gears, the format is:

Code: Select all

mesh index, angle, opening speed, closing speed.

Exiled
Recruit
Posts: 8
Joined: Thu Jul 09, 2020 6:33 pm

Post by Exiled » Wed Sep 02, 2020 1:00 pm

Hello Jeremy

I've just downloaded the hooks using XWAHookSetup, but the date for the Hook_Sfoils.dll is 22/07/2020, then looking at the individual zip in the Hooks folder, I unzipped xwa_hook_sfoils.zip, and the only file to be updated what the readme file, the dll hasn't changed

also it might be helpful it you updated the example txt files to show what you have changed and give a proper example as you explanation above isn't very clear

Your XwingSFoils.txt, BWingSFoils.txt and ShuttleSFoils.txt are only relevant for the original craft models and not the XWAUP craft models, since your involved with the XWAUP, wouldn't examples for the XWAUP craft be better?

For example your XWingSFoils.txt looks like this

Code: Select all

;mesh index, angle, closing speed, opening speed
1, 8, 1, 1
2, 12, 1, 1
3, 12, 1, 1
4, 8, 1, 1

CloseSFoilsInHyperspace = 1
SFoilsAnimationSpeed = 1
But the Xwing.ini the Sfoils and landing gear sections look like this

Code: Select all

[SFoils]
;mesh index, angle, closing speed, opening speed
1, 8, 1, 1
2, 12, 2, 2
3, 12, 2, 2
4, 8, 1, 1
10, 8, 1, 1
11, 12, 2, 2
12, 12, 2, 2
13, 8, 1, 1
14, 8, 1, 1
15, 12, 2, 2
16, 12, 2, 2
17, 8, 1, 1

CloseSFoilsInHyperspace = 1
SFoilsAnimationSpeed = 1

[SFoilsLandingGears]
;mesh index, angle, closing speed, opening speed
34, 64, 20, 3
35, 64, 20, 3
36, 50, 4, 8
37, 12, 1, 2
38, 12, 1, 1
39, 12, 1, 1
This is without your latest changes, would you please give an example of what these sections now look like with your latest changes please

Thank you, this would be a greater help to understanding what you have changed

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Sep 02, 2020 2:29 pm

Hello,

I only changed the readme:
hook_sfoils: update landing gears description

Exiled wrote:
Wed Sep 02, 2020 1:00 pm
This is without your latest changes, would you please give an example of what these sections now look like with your latest changes please

Code: Select all

[SFoils]
;mesh index, angle, closing speed, opening speed
1, 8, 1, 1
2, 12, 2, 2
3, 12, 2, 2
4, 8, 1, 1
10, 8, 1, 1
11, 12, 2, 2
12, 12, 2, 2
13, 8, 1, 1
14, 8, 1, 1
15, 12, 2, 2
16, 12, 2, 2
17, 8, 1, 1

CloseSFoilsInHyperspace = 1
SFoilsAnimationSpeed = 1

[SFoilsLandingGears]
;mesh index, angle, opening speed, closing speed
34, 64, 20, 3
35, 64, 20, 3
36, 50, 4, 8
37, 12, 1, 2
38, 12, 1, 1
39, 12, 1, 1

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Wed Sep 02, 2020 3:01 pm

So what Jeremy is saying, just to be completely clear for everyone in non technical speak, there are NO changes to the Hook itself.
All that has changed is the readme file to reflect a better editing experience.

Old INI files will say
[SFoilsLandingGears]
;mesh index, angle, closing speed, opening speed

New ones in the future will say.

[SFoilsLandingGears]
;mesh index, angle, opening speed, closing speed

It's just switching 2 lines around for the Landing Gear description so that it makes proper sense.
It has no affect on the performance of any ships currently made. So nothing needs reinstalling etc. Just a descriptive wording change.
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Oct 10, 2020 3:01 pm

UPDATE

Hello,
I've updated the s-foils hook.

Changes are:
- fix CloseSFoilsInHyperspace for player craft
- add AllowFireWhenSFoilsAreClosed
- add AutoCloseSFoils

The CloseSFoilsInHyperspace setting now works for the player craft.
With the AllowFireWhenSFoilsAreClosed setting, the player can fire when the s-foils are closed.
With the AutoCloseSFoils setting, you can choose between automaticaly or manualy close and open the s-foils and landing gears.

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Sat Oct 17, 2020 9:25 pm

Thanks Jeremy
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Oct 22, 2020 6:18 pm

UPDATE

Hello,
I've updated the s-foils hook.

I've added support for object replacement.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Feb 25, 2021 5:34 pm

UPDATE

Hello,
I've updated the s-foils hook.

I've added a "ParkOrderSFoilsClosed" setting.
To close the S-Foils when the craft is parked, set the ParkOrderSFoilsClosed setting. To enable, set "1". To disable, set "0". The default value is "0".

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Mar 16, 2021 2:10 pm

UPDATE

Hello,
I've updated the sfoils hook.

Thank to @marcop000, the in-game messages are now translated.

To set the language of the messages, set the Language setting.
Possible values are: it, es, fr, de, en
The default value is en.

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Tue Mar 16, 2021 3:17 pm

JeremyaFr wrote:
Tue Mar 16, 2021 2:10 pm
UPDATE
Hello,
I've updated the sfoils hook.
Thank to @marcop000, the in-game messages are now translated.
To set the language of the messages, set the Language setting.
Possible values are: it, es, fr, de, en
The default value is en.
Great work Jeremy and Marco! To elaborate with a little more detail for people:
The translated messages refer to in-game S-foil events, like: Open S-foils, close Landing Gear, that kind of thing.

To use the Language setting, open Hook_Sfoils.cfg from the main XWA folder with Notepad etc.
The setting will be at the bottom of the list. The options are: it (Italian), es (Spanish), fr (French), de (German), en (English)
Change the Language = setting from en to to what you want it to be. The default value is en.

These Updates will also be in our next release. If you change the setting you may sometimes find you have to reset it after some Update installations.
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

marcop000
Cadet 1st Class
Posts: 213
Joined: Fri Dec 27, 2019 7:08 pm

Post by marcop000 » Tue Mar 16, 2021 4:30 pm

Hi @Ace Antilles ,

This is only the beginning.

My plan is translate xwing converter, xvt converter and TFTC in (Italian, Spanish, French and German).

In these days I'am working to a software that do it.

I have tried to send another private message to JeremyaFr, but the message is not sent I don't known why.

I ask here my question:

I have some problem to translate the ingame messages becouse if are long will be cutted (Generally the Italian, Spanish, German are more longer then English) and is frequent that are cutted.

For this reason I like to remove this limit if is possible.

@JeremyaFr I ask if you can help me for this.

I don't sure to have sufficent experience to solve this problem.

Thanks !

User avatar
JaggedFel
Galactic Empire
Posts: 432
Joined: Wed Sep 06, 2006 11:01 pm
Contact:

Post by JaggedFel » Mon Apr 12, 2021 12:05 am

@JeremyaFr, I'm looking at rolling in the latest updates to the hooks to YOGEME and I noticed that for the S-foils hook in the Mission section, it's looking for "CloseSFoilsAndOpenLangingGearsBeforeEnterHangar" and "CloseLangingGearsBeforeEnterHyperspace". Readme also says this, so technically everything's fine, but fixing the typo will probably cause less head scratching as people use it.
Ye Olde Galactic Empire Mission Editor v1.15.6
Current software WIPs: TIE Layout and Cutscene Editor, TIE/XvT Cockpit Editor
Libraries / Format specs: *.tie, *.plt, *.tfr, *.lfd , *.act, *.dat image files, *.fnt

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Apr 12, 2021 3:21 pm

UPDATE

Hello,
I've updated the s-foils hook.

I've fixed a typo reported by @JaggedFel (Thank you)

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Mon Apr 12, 2021 5:23 pm

JaggedFel wrote:
Mon Apr 12, 2021 12:05 am
@JeremyaFr, I'm looking at rolling in the latest updates to the hooks to YOGEME and I noticed that for the S-foils hook in the Mission section, it's looking for "CloseSFoilsAndOpenLangingGearsBeforeEnterHangar" and "CloseLangingGearsBeforeEnterHyperspace". Readme also says this, so technically everything's fine, but fixing the typo will probably cause less head scratching as people use it.
I think I was trying that the other day. No wonder it didn't work!
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun May 30, 2021 7:16 pm

UPDATE

Hello,
I've updated the sfoils hook.

I've added Sfx_SFoil. You can now add custom sounds for the s-foils on a per-craft basis.

For SFoil sounds, sounds defined in "Wave\Sfx_SFoil.lst" are used if the lst file exists. The sounds are indexed by the crafts model index.

To setup Sfx_SFoil, copy the following files to WAVE\Sfx_SFoil\
From WAVE\FE_HIGH_RES\
Copy files:
S-Foil.wav

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Nov 27, 2021 2:58 pm

WIP

Hello,
Here is a WIP version of the S-Foils hook.

I've added a new feature: hangar doors.

To create hangar doors, create a file named "FlightModels\[Model]SFoilsHangarDoors.txt" or create a section named "[SFoilsHangarDoors]" in "FlightModels\[Model].ini".

The format is a line per mesh:
mesh index, angle, opening speed, closing speed.

When a craft of the same team approach the hangar, the doors are opened. The doors are not opened if an enemy craft is near the hangar. When there is no craft near the hangar, the doors are closed.
To define the distance from the craft with the hangar, create a setting name "HangarDoorsDistance". The default value is 16384.
The hook uses hangars for Starships, Freighters, Platforms, and uses near crafts for Starfighters, Utility Vehicules, Transports, Droids.

Download:
xwa_hook_sfoils_WIP.zip
You do not have the required permissions to view the files attached to this post.

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Sat Nov 27, 2021 3:02 pm

Oh this is great! I have a load of custom ship remakes in the pipeline that can benefit from this!
Great work!
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Sat Nov 27, 2021 3:03 pm

This looks very interesting!
Hopefully next we can get opening canopys or ramps when you land inside the hangar itself :)
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Sun Nov 28, 2021 6:15 am

Awesome Jeremy. Thanks! In addition, I suppose in a clever way, as long as the transformation vectors of the hangar door mesh(es) are setup correctly, they could even act as "force field" meshes. Maybe have a static transparent texture replaced with a delayed semi-transparent animations effect. Not sure how the timing would work, or if such a trigger event could work with the effects animation feature. I'm thinking of the new Platform stations for example with their forcefields.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Dec 24, 2021 1:54 pm

WIP

Hello,
Here is a new WIP of the sfoils hook.

I've added hangar hatches. Hatches can be opening canopies or ramps.

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

Download:
xwa_hook_sfoils_WIP_2112232005.zip
You do not have the required permissions to view the files attached to this post.

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7824
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Fri Dec 24, 2021 11:19 pm

JeremyaFr wrote:
Fri Dec 24, 2021 1:54 pm
WIP

Hello,
Here is a new WIP of the sfoils hook.

I've added hangar hatches. Hatches can be opening canopies or ramps.

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

Download:
xwa_hook_sfoils_WIP_2112232005.zip
This works brilliantly so far!!
Lots of new possibilities and some have already been planned in advance :D ;)
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

Post Reply