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

Invalid option -None #136

Open
GrauBlitz opened this issue Apr 13, 2022 · 3 comments
Open

Invalid option -None #136

GrauBlitz opened this issue Apr 13, 2022 · 3 comments

Comments

@GrauBlitz
Copy link

GrauBlitz commented Apr 13, 2022

When im tryinng to export a model (Blender 2.93 or Blender 3.1) i only get the following error in the blender console:

[ INFO] Writing log file to: G:\/blender2ogre.log
[ INFO] Target_path: G:\
[ INFO] Target_file_name: untitled.blend
[DEBUG] Target_file_name_no_ext: untitled
[ INFO] * Processing Scene: untitled, path: G:\
[DEBUG] ABABA Cube
[DEBUG] ABABA Camera
[ INFO] * Processing Materials
[ INFO] * Exporting root node: Cube
[ INFO]   - Vertices: 8
[ INFO]   - Loop triangles: 12
[ INFO] * Generating: Cube.mesh.xml
[ INFO] * Writing shared geometry
[DEBUG] * Mesh has NO custom normals
 + Faces [==================================================>] 100.0%
[ INFO] - Done at 0.01 seconds
[ INFO] * Writing submeshes
[ INFO] - Done at 0.03 seconds
[ INFO] - Created Cube.mesh.xml at 0.03 seconds
[ERROR] OgreMeshTool finished with non-zero status, check OgreMeshTool.log
[ INFO] C:\sdk\OgreSDK\bin\Release\OgreMeshTool.exe -e -O puqs -None G:\Cube.mesh.xml
[ INFO] - Created Cube.mesh in total time 0.09 seconds
[ INFO] * Exporting root node: Camera
[ INFO] - Exported Ogre Scene: G:\untitled.scene
________________________________________________________________________________
Report:
  ERRORS:
    - OgreMeshTool finished with non-zero status converting mesh: (Cube.mesh.xml), it might not have been properly generated
  Original Vertices: 8
  Exported Vertices: 24
  Original Faces: 12
  Exported Triangles: 12
  MESHES: 1
  CAMERAS: 1

Extended Report:
  MESHES:
    . Cube
  CAMERAS:
    . Camera
________________________________________________________________________________

blender2ogre.log

[...]
2022-04-13 11:22:28 [ INFO] - Created Cube.mesh.xml at 0.03 seconds
2022-04-13 11:22:28 [ERROR] OgreMeshTool finished with non-zero status, check OgreMeshTool.log
2022-04-13 11:22:28 [ INFO] C:\sdk\OgreSDK\bin\Release\OgreMeshTool.exe -e -O puqs -None G:\Cube.mesh.xml
[...]

OgreMeshTool.log

Invalid option -None
Couldn't identify extension of filename '-None'
Exception caught: Could not open '-None'

Blender Plugin Config:
OGRETOOLS_XML_CONVERTER points to my ogre-next (2.3.0) SDK OgreMeshTool.exe

@paroj
Copy link
Member

paroj commented Apr 13, 2022

seems like MESH_TOOL_VERSION is somehow None for you:

cmd.append('-%s' %config.get('MESH_TOOL_VERSION'))

@GrauBlitz
Copy link
Author

GrauBlitz commented Apr 13, 2022

That is interesting, i dont see the mentioned Version selection on the Export Settings.

https://github.com/OGRECave/blender2ogre/#ogrenext-tips

Just the Swap Axis and Clean up xml files settings.

EDIT: The console also shows this error:

blender-3.1.2\3.1\scripts\addons\io_ogre\ui\export.py:116
rna_uiItemR: property not found: OGRE_OT_export.EX_V2_MESH_TOOL_EXPORT_VERSION

@sercero
Copy link
Collaborator

sercero commented Feb 18, 2023

Can you try to do what says here? Updating to new versions

Delete your .pickle file and reconfigure blender2ogre to see if this is still happening.

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