ac7-ultrawide icon indicating copy to clipboard operation
ac7-ultrawide copied to clipboard

Attempting to change FOV causes magic.py to fail

Open Inductedmist opened this issue 1 year ago • 1 comments

Hey folks,

I was using this fix a few months before the Top Gun Maverick DLC launch. While the fix itself still works, I can make it ultrawide without too much issue, I cannot adjust the FOV at all. If I do, it causes magic.py to fail after the first two dialog boxes.

Word of warning: you can set this variable to a value of your choosing, e.g. 120,

but do not play online with anything other than the automatically determined FOV.

horizontal_fov_degrees = 125 (horizontal_fov_radians)

This is the line that I am basing this off of. There is also an issue regarding this from 2022 where the user supposedly fixed it but did not post what they did to fix it (go figure). If I change that from "125" back to the default the python script runs fine. Is this something im doing wrong or is that not what that line is for anymore.

I also noticed that by default the magic file says my resolution is 3840, but changing that to my actual resolution is how I got the ultrawide fix to work.

Thank you! If there is anything you can do lol.

Inductedmist avatar Jul 30 '23 23:07 Inductedmist

Your syntax is incorrect. math.degrees(horizontal_fov_radians) is calling the degrees method on the math class. We no longer need to calculate the degrees since we want to manually set it to 125 (in your case). Change the line to mirror the following:

from horizontal_fov_degrees = math.degrees(horizontal_fov_radians) to horizontal_fov_degrees = 125

that way we are setting the variable manually to 125.

BennettStaley avatar Jul 02 '24 23:07 BennettStaley