WoefulWolf/NieR2Blender2NieR

Error when exporting model

Closed this issue · 8 comments

EILFYT commented

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?

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

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?

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

EILFYT commented

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

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

EILFYT commented

ah, okay! thanks!

EILFYT commented

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

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