MAFINS / MenyooSP

[or Menyoo PC] - Trainer/mod menu for Grand Theft Auto V (single-player).
https://www.gta5-mods.com/scripts/menyoo-pc-sp
GNU General Public License v3.0
771 stars 491 forks source link

[Bug] HasSiren detection detects Mule has a siren #486

Closed WithLithum closed 1 year ago

WithLithum commented 1 year ago

Screenshot

Description

HasSiren method that was used to resolve the issue #436 works incorrectly and presumably detected an incorrect bone which caused most vehicles do not have Siren features even if they were supported before the commit dfdf278e.

Excepted behaviour

Only vehicles that has siren1 will have Siren options support.

Actual behaviour

A weird set vehicles (some do have siren, some do not) have siren options support regardless of whether or not they actually have siren.

Workarounds

Notes

metoxys commented 1 year ago

It also detects the BR8 has a siren (maybe other open wheelers as well)

itsjustcurtis commented 1 year ago

Looking into this, it looks like the vehicle bone list is out-dated. That said, using the latest bone list appears to remove the option for all vehicles. Looking into it, menyoo does dynamically look up bone indexes based on the name, so I'm not sure where its failing here

MAFINS commented 1 year ago

Well for some reason the enum VBone::VBone and the string array VBone::vNames are completely different in order. One or the other needs re-ordering.

itsjustcurtis commented 1 year ago

I'm doing some unrelated changes at the moment, can easily do that while I'm in here and test

On Fri, 20 Jan 2023, 19:25 MAFINS, @.***> wrote:

Well for some reason the enum VBone::VBone and the string array VBone::vNames are completely different in order. One or the other needs re-ordering.

— Reply to this email directly, view it on GitHub https://github.com/MAFINS/MenyooSP/issues/486#issuecomment-1398834144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQZPAVQXDCYBH6BDPLEAZTLWTLRCXANCNFSM6AAAAAAUABLNUM . You are receiving this because you commented.Message ID: @.***>