Engine glow count / opt limit hook
Moderator: JeremyaFr
Engine glow count / opt limit hook
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the opt limit hook.
I've increased the engine glow count limit per opt. The limit was 16. It is now 255.
When a mesh is hidden, its engine glows are also hidden.
Hello,
I've updated the opt limit hook.
I've increased the engine glow count limit per opt. The limit was 16. It is now 255.
When a mesh is hidden, its engine glows are also hidden.
- Ace Antilles
- Posts: 7702
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
That's brilliant! That should help a lot with something I was working on.
@Master Qui-Gon you might be interested in this too
@Master Qui-Gon you might be interested in this too

Your focus determines your reality.
- Master Qui-Gon
- Posts: 1425
- Joined: Tue Oct 23, 2001 11:01 pm
IAce Antilles wrote: ↑Sat Jan 29, 2022 1:48 pmThat's brilliant! That should help a lot with something I was working on.
@Master Qui-Gon you might be interested in this too![]()



Your focus determines your reality.
- Vince T
- Posts: 14028
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
Holy smokes, this is fantastic!
Any chance you'll be able to increase the number of rotating turrets, too? eh? eh?
Any chance you'll be able to increase the number of rotating turrets, too? eh? eh?
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
-
- Posts: 1157
- Joined: Mon Apr 05, 2004 11:01 pm
That's on my wish list too Vince.
But as RandomS. indicated the RotaryGunTurret type meshes are limited to a fixed array of 16. Each of the 16 meshes can have at most a pair of Laser HPs that alternate in a firing sequence. My other wish is the ability to have more than three different laser/weapon type systems. i.e. 282, 283, 284, 285, 289, 290, 303, 304, 305, 307, & other projectiles. 


W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
-
- Posts: 16
- Joined: Mon Mar 25, 2019 5:22 am
On windows 7 hook_opt_limit.dll doesn't work.
Crash.
As if the .dll did not load
Crash.
As if the .dll did not load
- Master Qui-Gon
- Posts: 1425
- Joined: Tue Oct 23, 2001 11:01 pm
This is working like it should except in the Tech Globe. You can still see the hidden glows.
In-Flight it is perfect.
In-Flight it is perfect.
Your focus determines your reality.
-
- Posts: 16
- Joined: Mon Mar 25, 2019 5:22 am
OK thank you.
It gives me problems with ddraw 2.0, apparently.
It gives me problems with ddraw 2.0, apparently.
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the opt limit hook.
I've fixed a bug in the Tech Library where engine glows are showns on hidden meshes.
Hello,
I've updated the opt limit hook.
I've fixed a bug in the Tech Library where engine glows are showns on hidden meshes.
Your focus determines your reality.
-
- Posts: 16
- Joined: Mon Mar 25, 2019 5:22 am
Hola
On windows 7 64 sp1 in flight random crash.
On windows 7 64 sp1 in flight random crash.
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the opt limit hook.
I've fixed a crash related to engine glows
Hello,
I've updated the opt limit hook.
I've fixed a crash related to engine glows
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the opt limit hook.
I've include a patch to disable hitzone bounds check on render.
Hello,
I've updated the opt limit hook.
I've include a patch to disable hitzone bounds check on render.
- JeremyaFr
- Posts: 3838
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the opt limit hook.
You can now show/hide engine glows based on the ship speed.
Suppose that the craft is "FlightModels\[Model].opt".
To define which engine glows are rendered based on the craft speed, create a file named "FlightModels\[Model]EngineGlows.txt" or create a section named "[EngineGlows]" in "FlightModels\[Model].ini".
The format is a line per engine:
engine index, percent, mglt.
If the percent value is -1 then it is not used.
If the mglt value is -1 then it is not used.
Hello,
I've updated the opt limit hook.
You can now show/hide engine glows based on the ship speed.
Suppose that the craft is "FlightModels\[Model].opt".
To define which engine glows are rendered based on the craft speed, create a file named "FlightModels\[Model]EngineGlows.txt" or create a section named "[EngineGlows]" in "FlightModels\[Model].ini".
The format is a line per engine:
engine index, percent, mglt.
If the percent value is -1 then it is not used.
If the mglt value is -1 then it is not used.