ScheiklP / sofa_godot

The SOFA-Godot Plugin - Create SOFA scenes in Godot!
MIT License
9 stars 2 forks source link

Problem for enabling the plugin in godot #2

Closed Parabolakit closed 5 months ago

Parabolakit commented 5 months ago

Hi scheikIP,

Nice to meet you. I want to use your plugin to create SOFA scene. I create a new project in godot and create one addons folder in the directory of project. Then I add clone sofa_godot plugin to addons folder. There is a problem when I enable the plugin, Unable to load addon script from path: 'res://addons/sofa_godot/plugin.gd'. This might be due to a code error in that script. Disabling the addon at 'res://addons/sofa_godot/plugin.cfg' to prevent further errors.

Thanks for your help:D

Best, Parabola

ScheiklP commented 5 months ago

Hi @Parabolakit , since the interest in sofa_godot was relatively small in the community so far, I have not updated the project to newer Godot versions. Which Godot version did you try?

Cheers, Paul

Parabolakit commented 5 months ago

Hi @Parabolakit ,

since the interest in sofa_godot was relatively small in the community so far, I have not updated the project to newer Godot versions.

Which Godot version did you try?

Cheers,

Paul

hi Paul,

Thanks for your prompt reply. I used the version 3.5.1 that u have tested successfully.

Best, Parabola

ScheiklP commented 5 months ago

Hi @Parabolakit , did you also use the sofa_env commit that was valid on release? https://github.com/ScheiklP/sofa_env/tree/d0d197d4bda74338e8b6aa1e5a72a9c715f7f73e

Cheers, Paul

Parabolakit commented 5 months ago

Hi @Parabolakit , did you also use the sofa_env commit that was valid on release? https://github.com/ScheiklP/sofa_env/tree/d0d197d4bda74338e8b6aa1e5a72a9c715f7f73e

Cheers, Paul

Dear Paul,

I can run the code to train the environments you provided. Are they related that should be stored in the same directory?

Best, Parabola

ScheiklP commented 5 months ago

Hi @Parabolakit , yes, sofa_godot uses the sofa_templates from sofa_env, so their versions also have to match.

Cheers, Paul

Parabolakit commented 5 months ago

Hi @Parabolakit , yes, sofa_godot uses the sofa_templates from sofa_env, so their versions also have to match.

Cheers, Paul

Hi Paul,

My SOFA version is 23.06. Which version should I use?

Best, Parabola

ScheiklP commented 5 months ago

Hi @Parabolakit, SOFA version 23.06. should be fine, but make sure you are also using the correct commit of sofa_env https://github.com/ScheiklP/sofa_env/tree/d0d197d4bda74338e8b6aa1e5a72a9c715f7f73e

Cheers, Paul

Parabolakit commented 5 months ago

Hi Paul,

Should I activate conda environment before adding the plugin to godot? As I use the godot UI to do this, I am still no ideas for the problems. image

Best, Parabola

ScheiklP commented 5 months ago

Yes, please activate the conda environment.

Parabolakit commented 5 months ago

Yes, please activate the conda environment.

It works, thanks!!!!