Hooks

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

Moderators: Darksaber, General_Trageton, Forceflow, DTM, JeremyaFr

Post Reply

Re: Hooks

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

Post by JeremyaFr » Fri Apr 24, 2020 4:06 pm

UPDATE

The crash was caused by a conflict between the mission tie hook and the mission object hook. The same offset was hooked in both hook.

I've fixed the conflict in the misson object hook.

Please redownload the mission object hook.

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Fri Apr 24, 2020 10:31 pm

JeremyaFr wrote:
Fri Apr 24, 2020 4:06 pm
UPDATE

The crash was caused by a conflict between the mission tie hook and the mission object hook. The same offset was hooked in both hook.

I've fixed the conflict in the misson object hook.

Please redownload the mission object hook.
Both hooks seem to be working fine now :) Thanks for the quick fix
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Sun Apr 26, 2020 3:27 pm

JeremyaFr wrote:
Fri Apr 24, 2020 4:06 pm
UPDATE
I've fixed the conflict in the misson object hook.

Please redownload the mission object hook.
Hi again :)
I think you need a small change In the default hook_mission_objects.cfg file.
Right now it's set to UnlimitedTurretLaser = 1 which is forever powered lasers.
Should be set to 0 by default in your download versions or it affects gameplay.
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
Darksaber

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

Post by Darksaber » Sun Apr 26, 2020 3:52 pm

Just checked in a vanilla game, gunner cockpit lasers are unlimited

It's only in the actual cockpit the laser bars decrease
“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
JeremyaFr
Commander
XWAU Member
Posts: 2229
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Apr 26, 2020 6:43 pm

I will keep the setting to 1 as it is how the vanilla game works.
Set it to 0 may increase the missions difficulty.

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Mon Apr 27, 2020 1:59 pm

Don't worry it was a misunderstanding in something I was testing.
Was getting weird results. It's all good now.
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

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

Post by JeremyaFr » Mon May 04, 2020 1:01 pm

UPDATE

Hello,
I've updated the exterior hook.

Now you can set a lod distance for MFD target on a craft basis.

Suppose that the craft is "FlightModels\[Model].opt".

To set the MFD lod distance, create a file named "FlightModels\[Model]Exterior.txt" or create a section named "[Exterior]" in "FlightModels\[Model].ini".
The format is:
LodDistance = value

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Tue May 05, 2020 3:24 pm

Hi Jeremy. Can I suggest something like a master hook update list please?
There are so many updates lately and fixes that aren't always clear it's hard to keep up sometimes.
For example in the start of this thread a small list of which hooks have been updated, what and when to help make it obvious.
Example:

Hook_Weapon_Color.dll - Updated 5/5/20 - Bugs fixed
Hook_Textures_Tag - Updated 10/3/20 - Bugs fixed
Reticule Hook created - Updated 30/4/20


I know you often update the start of the individual thread but it's not always clear when it updated.
Obviously people can download all the hooks again as needed but not everyone will know it's needed.
Sorry if it's just me but I think it would help people a lot to keep track simply. Especially as most hooks won't get updated unless the relevant craft is updated online or a large patch.
Thanks, keep up your amazing work :)
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

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

Post by JeremyaFr » Tue May 05, 2020 4:14 pm

Hello,

There is the hooks code history here:
xwa_hooks history

The latest hooks can be downloaded using XwaHooksSetup.

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Tue May 05, 2020 4:21 pm

JeremyaFr wrote:
Tue May 05, 2020 4:14 pm
Hello,

There is the hooks code history here:
xwa_hooks history

The latest hooks can be downloaded using XwaHooksSetup.
Brillaint! Didn't know of that link to the history.
Maybe put that in the main post would help. :) Thanks again!
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
BenKenobi
Cadet 2nd Class
Posts: 54
Joined: Wed Mar 18, 2020 12:30 pm

Post by BenKenobi » Tue May 05, 2020 6:45 pm

Jeremy is way ahead of you, at least since february 2019... :D

From the opening post:
Schermafbeelding 2020-05-05 om 20.43.30.png
You do not have the required permissions to view the files attached to this post.

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

Post by JeremyaFr » Tue May 05, 2020 6:51 pm

Strange.
I've edited the post today but the date is not updated.

User avatar
BenKenobi
Cadet 2nd Class
Posts: 54
Joined: Wed Mar 18, 2020 12:30 pm

Post by BenKenobi » Tue May 05, 2020 7:49 pm

JeremyaFr wrote:
Tue May 05, 2020 6:51 pm
Strange.
I've edited the post today but the date is not updated.
Oops, hahaha, Well it's in the opening post one way or the other. :)

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

Post by JeremyaFr » Wed May 06, 2020 12:25 pm

UPDATE

Hello,
I've updated the main hook.

I've added a setting to enable or disable the output hooks stats feature.
By default, it is disabled.

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Tue May 19, 2020 4:00 am

Hi Jeremy. There's still a Hook_Weapon_Color bug

Load a MINE FIELD in a Skirmish or Battle 3 Mission 4 and the game crashes.
I put back the Hook dated ‎06 ‎February ‎2020, which I had been using until the one updated on the 15th May and everything worked fine.

Help us Jeremy, you are our only hope! ;)

Code: Select all

Faulting application name: XwingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: Hook_Weapon_Color.dll, version: 1.0.0.1, time stamp: 0x5ebea7bd
Exception code: 0xc0000005
Fault offset: 0x00009523
Faulting process ID: 0x4120
Faulting application start time: 0x01d62d8f33152da8
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\Star Wars X-Wing Alliance\XwingAlliance.exe
Faulting module path: C:\Program Files (x86)\Steam\steamapps\common\Star Wars X-Wing Alliance\Hook_Weapon_Color.dll
Report ID: a042b48b-598a-4b3e-9137-c41d52f894f8
Faulting package full name: 
Faulting package-relative application ID: 
This Hook in the Zip is the one that DOES work.
Hope that helps.
You do not have the required permissions to view the files attached to this post.
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

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

Post by JeremyaFr » Tue May 19, 2020 12:24 pm

Hello,
You can try this WIP version:

EDIT: link removed

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Tue May 19, 2020 12:47 pm

JeremyaFr wrote:
Tue May 19, 2020 12:24 pm
Hello,
You can try this WIP version:


xwa_hook_weapon_color_WIP.zip
A quick test seemed fine. The mines no longer crash things. They really show up on the radar improvements now too lol
Brilliant work as always Jeremy. Thank you :)

You may want to edit your readme file slightly though.

** Setup ***
Place hook_weapon_color.dll next to xwingalliance.exe
Copy the "ANIMATIONS.DAT" file in the "RESDATA" directory.


If people aren't clued up and copy ANIMATIONS.DAT from the Hook download then they will overwrite any of the effects improvements like Hyperspace.
Might want to add a bit that it's not needed if you have newer version?

Keep up the great work!
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

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

Post by JeremyaFr » Tue May 19, 2020 1:31 pm

UPDATE

Hello,
I've updated the weapon color hook.
I've merged the changes from the WIP version.
I've updated the readme file to indicates that "animations.dat" is a sample.

Post Reply