ross-g / io_pdx_mesh

Import/Export files for the Clausewitz game engine
GNU General Public License v3.0
81 stars 11 forks source link

Cannot export Stellaris mesh containing only locators #79

Closed MahdiBaghbani closed 1 year ago

MahdiBaghbani commented 1 year ago

Screenshot (3)

MahdiBaghbani commented 1 year ago

I don't get why you have tis check this constraint here, maybe it is necessary in other games but stellaris is ok with only weapon locators.

https://github.com/ross-g/io_pdx_mesh/blob/df3d5678bd908f70603e5a6351952bfcd139b281/pdx_maya/maya_import_export.py#L1364-L1365

ross-g commented 1 year ago

Sure, but all you need to do is uncheck "Meshes" in the export settings.

The error has nothing to do with locators, it's because you selected to export meshes but have none in the scene. While that's a valid scene in this case, for many modders with zero experience in 3D content creation it's easy to make mistakes and it will just confuse them to silently export empty files.

So yes, it's supposed to be "dumb but explicit".

MahdiBaghbani commented 1 year ago

Sure, but all you need to do is uncheck "Meshes" in the export settings.

Sorry I'm not Maya expert and couldn't find this in Maya. Would it make sense to have checkbox in the plugin UI for this stuff? (Export mesh, skeleton etc.)

And the only way I know to export empty mesh stellaris ship weapon locators is via export mesh from plugin UI.

ross-g commented 1 year ago

These options are in the plugin UI on the right hand panel when you select a filepath to export to. image