OGRECave / blender2ogre

Blender exporter for the OGRE 3D engine
GNU Lesser General Public License v2.1
199 stars 69 forks source link

Value Error when trying to select the Addon #194

Open loueeee opened 3 months ago

loueeee commented 3 months ago

Hello,

I am completely new to this and I am trying to export an environment (scene?) from Blender to OGRE. I installed it, following the readme and it worked fine. However, now when I want to "select" it by clicking the box I get this error. Does anyone have an idea of how to fix it? Thank you so much in advance!

Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/3.5/scripts/modules/addon_utils.py", line 369, in enable mod.register() File "/Applications/Blender.app/Contents/Resources/3.5/scripts/addons/OGRECave blender2ogre master io_ogre/init.py", line 114, in register bpy.utils.register_class(clazz) ValueError: register_class(...): already registered as a subclass 'OGRE_MT_mini_report'

sercero commented 3 months ago

"/Applications/Blender.app/Contents/Resources/3.5/scripts/addons/OGRECave blender2ogre master io_ogre/init.py", line 114, in register bpy.utils.register_class(clazz) ValueError: register_class(...): already registered as a subclass 'OGRE_MT_mini_report'

What is up with that path?

Is it really installed at "addons/OGRECave blender2ogre master io_ogre/"?

It should be "addons/io_ogre"...

You have to copy the folder "io_ogre" from the downloaded zip to the Blenders "addons" folder.

loueeee commented 3 months ago

Screen Shot 2024-02-09 at 9 52 44 AM Screen Shot 2024-02-09 at 9 54 07 AM

Thank you for your answer.

I am not sure why this path shows up. I added the zip in the Blenders "addons" folder. Would it be possible for my computer to look for these files in other folders?

sercero commented 3 months ago

I am not sure why this path shows up. I added the zip in the Blenders "addons" folder. Would it be possible for my computer to look for these files in other folders?

No, that was a mistake.

The proper way to install the plugin is to download the zip in some folder, uncompress it and then copy only the io_ogre folder into Blenders add-ons folder

loueeee commented 3 months ago

I thought that's what I did, is the io_ogre folder the ogre folder that we can see from my picture?

I am sorry if this is common sense, I am not used to doing this type of thing.

loueeee commented 3 months ago

Screen Shot 2024-02-09 at 10 28 29 AM

I used this folder zipped to install the add on

sercero commented 3 months ago

I used this folder zipped to install the add on

Oh, you zipped the folder io_ogre folder and then installed it?

I don't know what would that do, the "proper" way would be to unzip what you downloaded from the github repo and then from that zip copy only the "io_ogre" folder into the Blender add-ons folder.

From the screenshot it seems that you only have the contents of "io_ogre" in your addons Blender folder and that seems wrong.

In you Blenders add-on folder you should have other folders with io_something.

I understand that our way of installing the add-on is not the best.

I don't remember now why it was not possible to simply create an installable zip as other plugins do.

loueeee commented 3 months ago

I only dowloaded the "io_ogre" folder from the GitHub, I then unzip it and copied that folder to the Blender "addons".

"From the screenshot it seems that you only have the contents of "io_ogre" in your addons Blender folder and that seems wrong." Do you mean that there should be an extra folder in the "addons" folder called "io_ogre" with all the contents that I currently have?

"In your Blenders add-on folder you should have other folders with io_something." The io_something folders should be the other preinstalled Blender addons?

loueeee commented 3 months ago

I found other io_something files but in another path than where they are suppose to be in? Screen Shot 2024-02-09 at 10 52 12 AM

sercero commented 3 months ago

There might be something different in MacOS, unfortunately I'm not familiar with that Operating System.

The "ioogre" folder should be with the other "io{something}" folders.

That should be the "proper" way to install the addon.

I was just recapping how the Blender install addon works and that is incompatible with the way that github packages the repository and that is why we are not doing it that way.

loueeee commented 3 months ago

Ok, no worries! Thank you very much for your help. I will keep on trying to understand this and hopefully make it work.

loueeee commented 3 months ago

I am now having a different error. Screen Shot 2024-02-09 at 11 20 44 AM

Edit: It was a typo in the code, it runs now. However, another error pops up

Screen Shot 2024-02-09 at 11 34 23 AM

sercero commented 3 months ago

It seems that you didn't configure the plugin.

When you activate the plugin from the Blenders add-ons options there are some settings to configure like the path to your OGRE binaries

Also, the bug you found is legit (should be "Report.errors")

loueeee commented 3 months ago

Ok thanks! Do I need to change something here ?

sercero commented 3 months ago

Are OgreXMLConverter and OgreMeshUpgrader in those paths?

loueeee commented 3 months ago

No, they should be with the other files in addons, right?

sercero commented 3 months ago

No, they are from your OGRE installation.

This add-on is to convert Blender files into OGRE .mesh files.

You should have OGRE already installed to use this.

loueeee commented 3 months ago

Yes, I have OGRE installed but not those specific files OgreXMLConverter and OgreMeshUpgrader

sercero commented 3 months ago

How did you install it (OGRE)?

Without those files (OgreXMLConverter being the most important) you won't be able to convert Blender files to OGRE mesh.

Are you sure those files are not present? Perhaps in Mac they have another extension.

loueeee commented 3 months ago

I downloaded it from https://www.ogre3d.org/download/sdk/sdk-ogre and followed the steps. I cannot seem to find those files, unfortunately.

Sorry this is frustrating, I have just never dealt with anything of this kind.

sercero commented 3 months ago

But, which one did you download?

I think it would be better to continue the conversation in gitter

Because it is more interactive.

You can log in with your github account

loueeee commented 3 months ago

Ok, I joined Gitter now!

I downloaded the source code, but I am not sure if there is anything else I need to do to install it ?

sercero commented 3 months ago

Oh, you just downloaded the source code?

You have to build it...

loueeee commented 3 months ago

Yes :( Building is referring to "installing" it? I saw that I might need to use Cmake ?

Is there a way where I do not need to build it ?

sercero commented 3 months ago

It does not seem like it for MacOS

You have to build it and then install it, yes using CMake

loueeee commented 3 months ago

Ok, this will then be my next challenge. Thank you for your continuous help!

sercero commented 3 months ago

You can use ogre-python to avoid having to compile things and it is more user friendly