-
Notifications
You must be signed in to change notification settings - Fork 306
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
Fix HandleInputSafe crashing in some games #531
Conversation
In some cases input API can throw an InvalidOperationException, resulting in error spam on every frame. Full exception message: System.InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
Hi can you help me? while I'm playing WITH PCBS2 translated into Italian I get an error when I do any tutorial you said that this error can be fixed how do you do it? thanks in advance |
@astef89 If you get the error I mentioned then just clone this PR and build it. |
@ManlyMarco I'm not very good at C# programming, do you have any suggestions for me? How can I do it? I already have all the Visual Studio 2022 tools and the source file... can you help me proceed? Thank you very much |
This PR won't help in your case. |
@ManlyMarco ah as I didn't say.:(can you tell me what causes that error? Is there a way when I play to deactivate automatic translation without crashing the game? an alternative solution please help me I'm desperate... I also tried the hot keys but they don't work..... |
No idea what's exactly wrong, it depends on the game. Some of the other PRs may help. |
@ManlyMarco Can you link them to me? I want to try them all, thank you very much |
Not sure what you want me to link, they are all on this repo https://github.com/bbepis/XUnity.AutoTranslator/pulls There might be an update next week so if you don't know how to build code from PRs you could wait for that. If you need help building the project in general I suggest asking on the BepInEx discord server. |
@ManlyMarco if you tell me that an update will be released next week I will wait very patiently... Meanwhile I'm having fun converting your PR IN DLL To try maybe I can solve it but as said it's a whole new world for me... what great news I'm really hoping for an update next week |
@ManlyMarco I looked at the log file...and I really think that with your fix I should solve it, I hope so, thank you very much for answering everything [Warning:XUnity.AutoTranslator] Input API is not available! |
I'm playing adventure quest 3d, at first everything went well, but a few minutes later the game crashes when starting dialogues with NPCs. |
@ManlyMarco Hi friend, when will the next update come out? I'm looking forward to it...thanks you |
Now. |
@ManlyMarco thank you, thank you... as soon as I get home I'll try the new update |
In some cases input API can throw an InvalidOperationException, resulting in error spam on every frame. I don't see any reason to catch only specific Exceptions, they are logged and the end result is the same - Input API isn't usable.
Full exception message: System.InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.