32-bit mode hook
Moderator: JeremyaFr
32-bit mode hook
- JeremyaFr
- Posts: 3847
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
This hook enables 32-bit mode.
8-bit OPTs are converted to 32 bits and the game can load 32-bit OPTs.
The game can load 32-bit DAT images. Existing DAT images are converted to 32 bits.
Download link
xwa_hook_32bpp.zip
Known issues:
- The models can appear too dark or too bright.
Before installing, I recommend that you check that you have the latest version of the hooks. The easy way is to use XwaHooksSetup.
I also recommend that you use an updated ddraw.dll that include the commit to reduce memory usage (mine has version v1.3.7). Else the game may run out of memory and crashes in kernelbase.dll.
8-bit OPTs are converted to 32 bits and the game can load 32-bit OPTs.
The game can load 32-bit DAT images. Existing DAT images are converted to 32 bits.
Download link
xwa_hook_32bpp.zip
Known issues:
- The models can appear too dark or too bright.
Before installing, I recommend that you check that you have the latest version of the hooks. The easy way is to use XwaHooksSetup.
I also recommend that you use an updated ddraw.dll that include the commit to reduce memory usage (mine has version v1.3.7). Else the game may run out of memory and crashes in kernelbase.dll.
-
- Posts: 1157
- Joined: Mon Apr 05, 2004 11:01 pm
Great job. Will test. Maybe the Reshade topic guys can counter this issue. Illumination problem?
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:
With this hook the planet backgrounds look wonderful, but there is a big problem Illuminations seems to have disappeared
The floor of the Hangar is illuminated within game, but all the other textures in the hangar have had illumination applied to the opt, but are no longer illuminated, the only thing on the shuttle that should be illuminated are the engines.
There are some of use that don't like the Reshade thing, plus no amount of tweaking Reshade isn't going to sort this problem out.
The floor of the Hangar is illuminated within game, but all the other textures in the hangar have had illumination applied to the opt, but are no longer illuminated, the only thing on the shuttle that should be illuminated are the engines.
There are some of use that don't like the Reshade thing, plus no amount of tweaking Reshade isn't going to sort this problem out.
You do not have the required permissions to view the files attached to this post.
“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
- JeremyaFr
- Posts: 3847
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
I've updated the hook.
It seems that the textures that are illuminated and the textures that are not illuminated are inversed.
I've updated the hook.
It seems that the textures that are illuminated and the textures that are not illuminated are inversed.
You do not have the required permissions to view the files attached to this post.





- DarHan
- Posts: 324
- Joined: Mon Dec 05, 2005 12:01 am
- Contact:
Here’s what it looks like on my setup with the current version. All models are 8bpp.


“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian
— Hobbie Klivian
- JeremyaFr
- Posts: 3847
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
You do not have the required permissions to view the files attached to this post.
“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
- blue_max
- Posts: 2285
- Joined: Wed Mar 20, 2019 5:12 am
The second-to-last image looks much better; but why is the last image so red? Is that what you expected?
- ual002
- Posts: 982
- Joined: Wed Sep 24, 2008 2:23 am
Its the alarm for when your mothership is taking damage.





-
- Posts: 1157
- Joined: Mon Apr 05, 2004 11:01 pm
Well done Jeremy. This is awesome!
Yes, when mothership has it's shields down or it's hull is at certain percentage, don't recall which triggers, the alarm effect goes off. I suppose you could change the hangar's FG texture to red lights for the ceiling and so forth to match when the mission is designed to start out that way. But it probably wouldn't work dynamically during an actual mission. Say when the mothership is normal and then later takes on severe damage later on during the mission and you're back in hangar to reload torpedoes.
Yes, when mothership has it's shields down or it's hull is at certain percentage, don't recall which triggers, the alarm effect goes off. I suppose you could change the hangar's FG texture to red lights for the ceiling and so forth to match when the mission is designed to start out that way. But it probably wouldn't work dynamically during an actual mission. Say when the mothership is normal and then later takes on severe damage later on during the mission and you're back in hangar to reload torpedoes.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- JeremyaFr
- Posts: 3847
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
You can see the red effect in Battle 2, Mission 5: Defend CRS Liberty (1B2M5G.tie).
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
If the hargars aren't illuminated they look far too dark, but the drawback to this is when the Red alarm is in effect the rest of the hangar doesn't red I can't understand why TG made it so the floor of the hangar is permanently illuminated but they didn't do so for the rest of the hangar, but saying that the floor does have to be at a specific level for it to be highlighted, if the floor is above or below this level, it will not highlight and the shadows of the craft and object do not appear.
You can see the highlighted floor here is this image, it's not illuminated.
But this is how the hangar would look like if the walls and other textures where not illuminated, to be it look awful and would sooner see it lit up, but like I said the drawback is the Red Alarm
You can see the highlighted floor here is this image, it's not illuminated.
But this is how the hangar would look like if the walls and other textures where not illuminated, to be it look awful and would sooner see it lit up, but like I said the drawback is the Red Alarm

You do not have the required permissions to view the files attached to this post.
“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
- JeremyaFr
- Posts: 3847
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
The hook now reads the brightness setting.
Level 0:
Level 4:
The hook now reads the brightness setting.
Level 0:
Level 4:
You do not have the required permissions to view the files attached to this post.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Just tested it, Wow that look much better 

“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
Very nice, thanks. Yep DS, that's what I meant to say. Didn't understand why they didn't light up ceiling either. Maybe it's the normals of the ceiling mesh and probably the red light source is shining from above the hangar mesh. Maybe if the engine could be patched so the source of light can also shine from below the floor up . . . ?
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- JeremyaFr
- Posts: 3847
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Yes, the lights are based on the normals.
I succeeded to apply the red light to the white parts of the textures.
I succeeded to apply the red light to the white parts of the textures.
You do not have the required permissions to view the files attached to this post.
“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
- DarHan
- Posts: 324
- Joined: Mon Dec 05, 2005 12:01 am
- Contact:
I just wanted to report, the departure hangar looks great with that latest version, but the “mission failed” hangar seems to still have the problem where texture illumination is inverted.
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian
— Hobbie Klivian
- ual002
- Posts: 982
- Joined: Wed Sep 24, 2008 2:23 am
So far all the ships I've been testing seem to have better color resolution as expected. Very well done sir.





- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
The lighting in the hangar looks great, but looking at other craft or in this case stations in game, just looking through the missions this is the first prologue mission with the Azzameen Base
This is how it look like before and after the 32 bbp hook is installed
Without the hook the lighting was never great, but you can see the structural layers of the station but after the hook has been applied the station looks flat, there is no definition to the structure anymore there is no longer any, I suppose you call it ambient lighting
Don't get me wrong the Hangar now looks fabulous, the lighting on the shuttle looks great, it pissed me off for years that the shuttle wings where always darker than they should be, but the station now look wrong
This is how it look like before and after the 32 bbp hook is installed
Without the hook the lighting was never great, but you can see the structural layers of the station but after the hook has been applied the station looks flat, there is no definition to the structure anymore there is no longer any, I suppose you call it ambient lighting
Don't get me wrong the Hangar now looks fabulous, the lighting on the shuttle looks great, it pissed me off for years that the shuttle wings where always darker than they should be, but the station now look wrong

You do not have the required permissions to view the files attached to this post.
“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
DS, does any adjustments via the game's video menu settings help with shadowing? I'm going to test with ReShade to see if there is any improvement with the models.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.