Open flobotics opened 1 year ago
@Malcolmnixon something to look into.
@flobotics is this just the first time you run Godot after installing XR tools? It is known that Godot 4 has some issues with dependencies not loading in the right order until it's build its caches. That should only be an editor issue. But if there is more going on we'll need to investigate further.
hi, i now use godot-xr-tools-4.0 , now after adding the addons folder to my project i get this messages:
Cannot open file 'res://.godot/imported/Hand_Glove_L.gltf-ac6c06fe48ca0d7ce0f9faffd177a897.scn'.
Cannot open file 'res://.godot/imported/Hand_Glove_low_L.gltf-7b94b12c0dff159d494da6cafd52895d.scn'.
Cannot open file 'res://.godot/imported/Hand_Glove_low_R.gltf-c32907596b2287c95aff0e704780ef3d.scn'.
Cannot open file 'res://.godot/imported/Hand_Glove_R.gltf-0e99922c663867da8d37af9597ab1ce8.scn'.
Cannot open file 'res://.godot/imported/hand_l.gltf-6ba1595ac4c28aef3719b7f0b4f2f4f2.scn'.
Cannot open file 'res://.godot/imported/Hand_low_L.gltf-a83bdf9115e4fb62c63deabade61cbbb.scn'.
Cannot open file 'res://.godot/imported/Hand_low_R.gltf-8b164aff014e5c5bfa2eccc8e40e7e97.scn'.
Cannot open file 'res://.godot/imported/Hand_Nails_L.gltf-22452b307072e9d363b1f547e2b6a365.scn'.
Cannot open file 'res://.godot/imported/Hand_Nails_low_L.gltf-60d8096917582bfe1d760ff1ad173fc8.scn'.
Cannot open file 'res://.godot/imported/Hand_Nails_low_R.gltf-7d9fc9507def4b4fd9c10cdae7aa6e11.scn'.
Cannot open file 'res://.godot/imported/Hand_Nails_R.gltf-35869d6a39400588d95465aa5e3b528d.scn'.
Cannot open file 'res://.godot/imported/hand_r.gltf-dd429687cadefbc3e7a21ae26addfb30.scn'.
res://addons/godot-xr-tools/player/player_body.gd:433 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/functions/movement_turn.gd:111 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:9 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:12 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:15 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:23 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:30 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:32 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:36 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:37 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:42 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:46 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:59 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:60 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
res://addons/godot-xr-tools/user_settings/user_settings_ui.gd:64 - Parse Error: Identifier "XRToolsUserSettings" not declared in the current scope.
Expected Image data size of 925x100x1 (DXT5 RGBA8 with 9 mipmaps) = 125536 bytes, got 125552 bytes instead.
drivers/gles3/storage/texture_storage.cpp:925 - Condition "image->is_empty()" is true. Returning: Ref<Image>()
When i then look into project settings and enable the plugin and xr and restart, i get this output. This output comes every time i re-open this project.
Godot Engine v4.0.stable.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
Cannot open file 'res://openxr_action_map.tres'.
Failed loading resource: res://openxr_action_map.tres. Make sure resources have been imported by opening the project in the editor at least once.
modules/gltf/register_types.cpp:70 - Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.
--- Debug adapter server started ---
--- GDScript language server started ---
Autoload hinzufügen
Expected Image data size of 925x100x1 (DXT5 RGBA8 with 9 mipmaps) = 125536 bytes, got 125552 bytes instead.
drivers/gles3/storage/texture_storage.cpp:925 - Condition "image->is_empty()" is true. Returning: Ref<Image>()
but i can build a simple VR app for windows which is running.
Make sure you enable the XR tools plugin in project settings.
XRToolsUserSettings
is in an autoloaded script that needs to be setup, it will add the needed changes to your project when the plugin is enabled.
Is this maybe fixed on stable?
Same issue in player_body.gd
Parser Error: Identifier "XRToolsUserSettings" not declared in the current scope.
@flobotics @BastiaanOlij You need to manually enable plugin in Project Settings and issue will be gone!
Next open the Project menu and select Project Settings... Now go to the Plugins tab and enable the plugin. Check docs: https://docs.godotengine.org/en/stable/tutorials/xr/introducing_xr_tools.html#installing-xr-tools
@flobotics Try to reenable XR Tools and add in autoload UserSettings
@rhiskey indeed as I mentioned in https://github.com/godotengine/godot/issues/74122#issuecomment-1469220427 you have to enable the plugin. The autoload entry is automatically configured if you do this. Note that you have doubled up on it so that could cause you problems. You only need the XRToolsUserSettings
one.
It's our most heard complaint of XRTools users that installing plugins don't enable them, things thus break, and there is nothing alerting you. You have to read the manual, which most people don't know exists as nothing points them in that direction. You are far from the first, and will be far from the last user to be tripped up by this.
Note that you can find help on the plugin here: https://godotvr.github.io/godot-xr-tools/docs/setup/
Check docs: https://docs.godotengine.org/en/stable/tutorials/xr/introducing_xr_tools.html#installing-xr-tools
Oh right, I had forgotten I added some basic info about XR Tools in the Godot manuals, that is a little more visible but still people often don't realise we have that :)
Godot version
4.0.rc6
System information
win 11
Issue description
Steps to reproduce
add godot-xr-tools addon folder to your project
Minimal reproduction project
add godot-xr-tools addon folder to your project