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

Trying to set "action_json_path" results in Error #130

Open
Kyniverse opened this issue Aug 26, 2021 · 5 comments
Open

Trying to set "action_json_path" results in Error #130

Kyniverse opened this issue Aug 26, 2021 · 5 comments

Comments

@Kyniverse
Copy link

Kyniverse commented Aug 26, 2021

First of all, amazing plugin! It's been a blast getting this to work out of the box for the majority! I'm currently playing around a little bit with this plugin within the Mono build of Godot and didn't run into any major issues, up till now.

I was reading through the wiki following the actions implementation to the point where it was mentioned to use the property call:

openVRConfig.action_json_path = "res://resources/OvrActions/actions.json"

Trying to call this property setter results in Godot prompting with the following error message:

Invalid set index 'action_json_path' (on base: 'Reference (OpenVRConfig.gdns)') with value of type 'String'.

After quickly scimming through the code-base here on Github I couldn't help but notice that this property is nowhere defined. Maybe I'm just missing something but as far as I can see it's currently unimplemented in the source file:
OpenVRConfig.cpp

The result of this is currently unable to set a custom path for the defined json actions.

@beniwtv
Copy link
Collaborator

beniwtv commented Aug 30, 2021

Yeah, seems that we never implemented setting this. Right now, the plugin only checks the default paths:
https://github.com/GodotVR/godot_openvr/blob/master/src/open_vr/openvr_data.cpp#L185

@BastiaanOlij
Copy link
Member

I think this is actually a leftover from the original implementation, once we realized we had to export the files separately I think we just implemented it with the fixed locations:

  • action folder at the location of executable
  • action folder in project root
  • action folder in the plugin folder

So we may need to remove that setting all together.

@BastiaanOlij
Copy link
Member

As far as I can see this was indeed removed, are you using an older version of the plugin?

@Kyniverse
Copy link
Author

I was using the latest version of the plugin which I downloaded from the Releases here on Github whilst following the OpenVR Actions rundown in the Wiki. Seeing how the feature has been removed I guess the documentation/wiki part hasn't been updated in order to represent the changes?

@BastiaanOlij
Copy link
Member

@ZYRKdev ah, yes that makes sense, that wiki was written around the time the first version of the action system was made available, before we figured out the needs of the export system.

I need to find some time to update it

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

3 participants