I've been trying to create a 3d model mod, following the guide on steam, but it's not working. It's creating the empty mod folders for the package, but doesn't create any models or textures or anything.
The error msg I'm getting is:
Code: Select all
Traceback (most recent call last):
File "E:\Env\Py38\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 40, in run
File "E:\Env\Py38\lib\site-packages\cx_Freeze\initscripts\Console.py", line 37, in run
File "prep.py", line 423, in <module>
File "prep.py", line 166, in execute
File "prep.py", line 225, in models
File "E:\code\uoc2\tools\prep\models.py", line 104, in build
File "E:\code\uoc2\tools\prep\models.py", line 44, in _process_models
File "E:\code\uoc2\tools\prep\models.py", line 141, in _load_model
File "E:\code\uoc2\tools\model_tools.py", line 221, in load_materials
AttributeError: 'str' object has no attribute 'get'
I'm using a tank model from the web, merging it into body and turret (so maybe the turret is turning the way the german tanks are) and exporting as .obj with Blender.
I exported all textures as .tga with both Krita and Gimp. I don't have a specular map, so I first ignored it and later exported the diffuse map as grayscale. Both didn't work though.
Since this didn't work, I tried to copy-paste the example .yml from the guide and also created a nonsense .yml, which both return the same error as long as the .yml's name is correct and it has a "materials:"-body. Which makes me think maybe the script is at fault here. But in that case, others should have discovered this bug too, right?
Do you have any advice what else I could try?