Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom "Camera & Views" states not listed #47

Closed
brianavid opened this issue Jan 24, 2023 · 6 comments
Closed

Custom "Camera & Views" states not listed #47

brianavid opened this issue Jan 24, 2023 · 6 comments

Comments

@brianavid
Copy link

If I add some new custom states to control the camera, they correctly appear in the "Camera & Views" category of (e.g.) IF statements. But if I try to set them through "Set Simulator Variable", the drop-down list of variables is those for a DIFFERENT category - the category I had selected BEFORE I selected category "Camera & Views".
BrianStates.ini.txt
Screenshot 2023-01-22 220347
Screenshot 2023-01-24 084407

I can probably get my page working using Set Named Variable Value, but it looks like a bug that may have other implications.

@brianavid
Copy link
Author

And a related symptom. If I try an event handler for "When the plug-in state" changes, then I can see all my Camera states, and can choose any of them apart from one - "Camera State". If I select that one (alone) then the field for the state name remains empty. For all others, it fills in the field with the selection from the drop-down:

Screenshot 2023-01-24 093550

This may be a TP bug, but it seems related to the reported symptoms above.

@mpaperno
Copy link
Owner

Hi Brian, thanks for reporting this.

Funny coincidence, I was literally just made aware of the first problem 2 days ago (you're not "Spider" on Discord, are you? :) ). Not sure what's up yet, but it does seem to only affect the Cameras & Views category. In the meantime, yes, just use the "Set Named Variable" action, it will essentially do the same thing (the "select from list" is meant as a convenience really... and is actually getting changed in the next version anyway). This shouldn't affect anything else as far as I can tell so far.

As for the 2nd issue, I cannot recreate it. I'm not entirely sure what you mean by "remains empty"... the dropdown selector for the state doesn't show any value in it at all? I've not seen anything like that before. And your CAMERA STATE request look a lot like mine (below).

I have seen TP not properly list all the states loaded at once from an INI file, but only when I use the "reload all custom state files" action (which first deletes all the states and then re-creates them). But I'm not sure what's going on here! Not even sure what to try to reproduce it... seems like it should just work like the other requests/states, or have some error and not show up in the list at all.

Well... is it possible somehow that Camera State state got deleted? And TP didn't update the list properly? I'm reaching...

Here's my CAMERA STATE request... pretty much the same, and the Unit type difference shouldn't matter (certainly not for TP itself).

[CameraState]
CategoryId = Camera
Name = "CAMERA STATE"
VariableType = A
SimVarName = "CAMERA STATE"
Unit = "Enum"
DefaultValue = "0"
CanSet = True

Best,
-Max

@brianavid
Copy link
Author

brianavid commented Jan 25, 2023 via email

@mpaperno
Copy link
Owner

Well, funny coincidence... I guess it's "cameras and views" month or something. :)

I found the issue in the code... happened in the last update with the other category changes. The only other place this affects is "Remove a Simulator Variable" action.

Still no clue on your other issue with this blank state... TP restarted and all that?

On a whim I tried using your exact naming, and seeing the "1=>" in the name of the preceding request made me wonder if that had something to do with anything. But, no, all the states stay selectable as usual.

Glad you found TJoy -- it's a great alternative for pushing buttons (and the only way to have "holdable" buttons like on a real joystick). Also some of the view axes can only be controlled by a joystick. And it may be simpler to set up, depending on how you prefer to keep your controller mappings. I wrote it with the flight sim in mind (and before I added "native" sliders to MSFS plugin).

However I'm not sure why you're having issues setting CAMERA STATE. It does indeed work here... as an example:

image

I looked quickly for some setting in the Sim which may prevent external camera control... but not seeing it. Do none of the view options (Enum values) work for you at all? Are you using VR (noticed the Camera Request state)? I could see that perhaps having something to do with it...

Ah the mysteries of MSFS... we'd probably get bored w/out them and have to resort back to simulated system failures. On the positive side, you may wake up tomorrow and it will all just work. :-D

If you get any further on that "missing" Camera State state, please let me know. Submitting TP bugs requires Discord use.. I think. Or maybe they have an online form too... not sure. Anyway, happy to help get to the bottom of it, if possible.

Thanks again,
-Max

@brianavid
Copy link
Author

brianavid commented Jan 25, 2023 via email

@mpaperno
Copy link
Owner

Ha, yes, I forgot the "best" feature of using the joystick, that silly ATC window. There actually is a SimConnect Event ID for it.. ATC. But for some bizarre reason it has never worked in FS2020... even after lots of other stuff has gotten fixed and added. 🤷🏼‍♂️

Glad you got the rest sorted!

TP is basically a one-man operation, and the developer is stretched between many duties, so unfortunately some things are going to slip through the cracks. Not making excuses, just so you know the context (the Web site may make it seem like a bigger operation than it is).

If you were trying to "focus application" on MSFS, I think the current issue is that the MS "Store" apps (or XBox Store as the case may be) do not actually report themselves as typical Windows applications do (at least the traditional kind). I know this has come up recently and the developer is looking for a solution.

Cheers!
-Max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants