Page 1 of 1

Engine glow count / opt limit hook

Posted: Sat Jan 29, 2022 1:29 pm
by JeremyaFr
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.

Re: Engine glow count / opt limit hook

Posted: Sat Jan 29, 2022 1:48 pm
by Ace Antilles
That's brilliant! That should help a lot with something I was working on.

@Master Qui-Gon you might be interested in this too :)

Re: Engine glow count / opt limit hook

Posted: Sat Jan 29, 2022 4:00 pm
by Master Qui-Gon
JeremyaFr wrote:
Sat Jan 29, 2022 1:29 pm
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.
Yes....Thank you!

Re: Engine glow count / opt limit hook

Posted: Sat Jan 29, 2022 4:01 pm
by Master Qui-Gon
Ace Antilles wrote:
Sat Jan 29, 2022 1:48 pm
That's brilliant! That should help a lot with something I was working on.

@Master Qui-Gon you might be interested in this too :)
I :D :D :D

Re: Engine glow count / opt limit hook

Posted: Sat Jan 29, 2022 4:49 pm
by Vince T
Holy smokes, this is fantastic!

Any chance you'll be able to increase the number of rotating turrets, too? eh? eh?

Re: Engine glow count / opt limit hook

Posted: Thu Feb 03, 2022 6:53 am
by Bman
That's on my wish list too Vince. :D 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. :D

Re: Engine glow count / opt limit hook

Posted: Thu Feb 03, 2022 4:11 pm
by marcelo999
On windows 7 hook_opt_limit.dll doesn't work.

Crash.

As if the .dll did not load

Re: Engine glow count / opt limit hook

Posted: Thu Feb 03, 2022 8:51 pm
by Master Qui-Gon
This is working like it should except in the Tech Globe. You can still see the hidden glows.

In-Flight it is perfect.

Re: Engine glow count / opt limit hook

Posted: Thu Feb 03, 2022 11:20 pm
by marcelo999
OK thank you.
It gives me problems with ddraw 2.0, apparently.

Re: Engine glow count / opt limit hook

Posted: Thu Mar 31, 2022 11:28 am
by JeremyaFr
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.

Re: Engine glow count / opt limit hook

Posted: Thu Mar 31, 2022 1:21 pm
by Master Qui-Gon
JeremyaFr wrote:
Thu Mar 31, 2022 11:28 am
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.
Thank you, Thank you

Re: Engine glow count / opt limit hook

Posted: Fri Apr 01, 2022 11:48 pm
by marcelo999
Hola

On windows 7 64 sp1 in flight random crash.

Re: Engine glow count / opt limit hook

Posted: Thu May 12, 2022 7:47 pm
by JeremyaFr
UPDATE

Hello,
I've updated the opt limit hook.

I've fixed a crash related to engine glows

Re: Engine glow count / opt limit hook

Posted: Sun Jun 12, 2022 7:09 am
by JeremyaFr
UPDATE

Hello,
I've updated the opt limit hook.

I've include a patch to disable hitzone bounds check on render.

Re: Engine glow count / opt limit hook

Posted: Sat Dec 10, 2022 9:05 am
by JeremyaFr
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.