Skip to content

System.InvalidOperationException: You are trying to read Input using the UnityEngine.Input class #373

Closed
@Atamg1994

Description

Game Type: MonoBleedingEdge
Game Arch: x64

Game Name: The Scarlet Tower
Game Developer: Pyxeralia
Unity Version: 2022.1.18f1
Game Version: 0.9.0.1

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.

at (wrapper managed-to-native) UnityEngine.Input.GetKeyInt(UnityEngine.KeyCode)

at UnityEngine.Input.GetKey (UnityEngine.KeyCode key) [0x00001] in <8e515d8231a348b6922b4e00671d9710>:0

at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleInput () [0x00000] in <04658fc57931491dbb3fb58d885aa820>:0

at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleInputSafe () [0x00007] in <04658fc57931491dbb3fb58d885aa820>:0

at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.Update () [0x000b3] in <04658fc57931491dbb3fb58d885aa820>:0
[03:11:33.311] [ERROR] An error occurred in Update callback.

Any ideas how to fix this?

does not interfere with the translation
does not interfere with play
keyboard shortcuts not working
Key Mapping
The following key inputs are mapped:

ALT + 0: Toggle XUnity AutoTranslator UI. (That's a zero, not an O)
ALT + 1: Toggle Translation Aggregator UI.
ALT + T: Alternate between translated and untranslated versions of all texts provided by this plugin.
ALT + R: Reload translation files. Useful if you change the text and texture files on the fly. Not guaranteed to work for all textures.
ALT + U: Manual hooking. The default hooks wont always pick up texts. This will attempt to make lookups manually. Will not hook text components from frameworks not enabled.
ALT + F: If OverrideFont is configured, will toggle between overridden and default font.
ALT + Q: Reboot the plugin if it was shutdown. This will only work if the plugin was shut down due to consecutive errors towards the translation endpoint. Should only be used if you have reason to believe you have remedied the problem (such as changed VPN endpoint etc.) otherwise it will just shut down again.
Debugging-only keys:

CTRL + ALT + NP9: Simulate synchronous errors
CTRL + ALT + NP8: Simulate asynchronous errors delayed by one second
CTRL + ALT + NP7: Print out loaded scene names and ids to console
CTRL + ALT + NP6: Print out entire GameObject hierarchy to file hierarchy.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions