WoefulWolf / NieR2Blender2NieR

Import/Export WMB/WTP/WTA/DAT/DTT/LAY/COL files for NieR:Automata
GNU General Public License v3.0
159 stars 39 forks source link

Error when exporting model #26

Closed EILFYT closed 1 year ago

EILFYT commented 1 year ago

I'm attempting to export a model, but whatever I try always gives me the same error. I've tried a complete character model and even just a cube, on both the master and mgrr branches, but every time it gives me this error:

Python: Traceback (most recent call last):
  File "(path to blender)\Blender\3.6\scripts\addons\NieR2Blender2NieR-master\dat_dtt\exporter\dat_dtt_ui_manager.py", line 272, in execute
    triangulate_meshes("WMB")
  File "(path to blender)\Blender\3.6\scripts\addons\NieR2Blender2NieR-master\utils\util.py", line 172, in triangulate_meshes
    for obj in bpy.data.collections[collection].all_objects:
KeyError: 'bpy_prop_collection[key]: key "WMB" not found'

Is there a fix for this, or is it an issue with the version of blender I'm using, or an issue of that sort?

WoefulWolf commented 1 year ago

Did you start by importing an existing model? This is for NieR:Automata correct? It can't find the WMB collection that is created upon import. So don't delete the collection after import either.

MGRR branch isn't really mine and isn't complete. The most up-to-date/feature-complete is custom_bones.

EILFYT commented 1 year ago

I imported a regular fbx model (not something from the game or anything) normally with blender. Do I need to import a game model, and then edit it myself?

WoefulWolf commented 1 year ago

Yes, a lot of data needs to be collected on import, it can't determine everything from any model.

EILFYT commented 1 year ago

ah okay! would it be possible to from there paste in another model, or would I have to edit the imported model itself?

WoefulWolf commented 1 year ago

Yes you can "paste" or in reality more "merge" the models.

EILFYT commented 1 year ago

ah, okay! thanks!

EILFYT commented 1 year ago

hey, I'm sorry to bother you again, but I haven't used blender much before and I'm stuck on what to do. Do you know if there's a tutorial anywhere, or anything that I can work off of?

Thanks

ArthurHeitmann commented 1 year ago

If you want support from more people, I recommend you to join our modding discord server https://discord.gg/ngAK7rT