overtools / io_scene_owm

Blender Importer for asset files exported and recompiled with TankLib/DataTool
83 stars 18 forks source link

maps texture #32

Closed paomian4 closed 1 year ago

paomian4 commented 3 years ago

overwatch maps texture cannot be imported,Request repair

Js41637 commented 3 years ago

What?

slowthgt commented 3 years ago

I took a gander and saw that apparently, he's using 3dsmax. This is blender only.

paomian4 commented 3 years ago

Python: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-develop\manager.py", line 366, in execute import_owmap.read(settings, self.importObjects, self.importDetails, self.importPhysics, light_settings, self.importRemoveCollision, self.importSounds) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-develop\import_owmap.py", line 199, in read mat = importowmat.read(matpath, '%s:%X' % (name, idx)) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-develop\import_owmat.py", line 81, in read m[data.materials[i].key] = process_material(data.materials[i], prefix, root, t) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-develop\import_owmat.py", line 123, in process_material mat = clone_material(material, prefix, root, t, key) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-develop\import_owmat.py", line 144, in clone_material nodeMapping=nodes["Mapping"] KeyError: 'bpy_prop_collection[key]: key "Mapping" not found'

location: :-1

yretenai commented 3 years ago

for some reason your texture library is outdated/corrupt. reinstall the plugin.

paomian4 commented 3 years ago

for some reason your texture library is outdated/corrupt. reinstall the plugin.

thanks。

paomian4 commented 3 years ago

texture library ,Which file is it?

paomian4 commented 3 years ago

I downloaded and installed the plug-in again, but I still can't

paomian4 commented 3 years ago

是因为我导出的模型是中文的吗 Is it because the model I exported is in Chinese?

yretenai commented 3 years ago

no. when the plugin starts it's supposed to load a json file from the plugin folder, which for you it fails to do.

it's this file: https://raw.githubusercontent.com/overtools/io_scene_owm/develop/texture-map.json idk why it's failing for you, is there another error in the console?

paomian4 commented 3 years ago

Do I need to configure the Java environment? How do you do it?

paomian4 commented 3 years ago

Python: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-release\manager.py", line 366, in execute import_owmap.read(settings, self.importObjects, self.importDetails, self.importPhysics, light_settings, self.importRemoveCollision, self.importSounds) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-release\import_owmap.py", line 199, in read mat = importowmat.read(matpath, '%s:%X' % (name, idx)) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-release\import_owmat.py", line 81, in read m[data.materials[i].key] = process_material(data.materials[i], prefix, root, t) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-release\import_owmat.py", line 123, in process_material mat = clone_material(material, prefix, root, t, key) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_owm-release\import_owmat.py", line 144, in clone_material nodeMapping=nodes["Mapping"] KeyError: 'bpy_prop_collection[key]: key "Mapping" not found'

location: :-1

paomian4 commented 3 years ago

bpy.context.space_data.system_bookmarks_active = 1

yretenai commented 3 years ago

None of this matters. For some reason your blender instance can't load the texture map.

Unless you are getting an error when you start blender and show us that, I can't help you.

paomian4 commented 3 years ago

非常的感谢你的回答

paomian4 commented 3 years ago

非常的感谢你的回答 Thank you very much for your reply

yretenai commented 3 years ago

Check if it still happens with 2.4.0

shadowmelds commented 3 years ago

检查2.4.0是否仍然发生

I first used the command <datatool d:\Overwatch extract-maps "D:\3D\Datatool output" 花村> to export the map file, I using Blender 2.9 and io_scene_owm 2.4.0, and then I imported the map_name .owmap, but the same error still occurred. Normally it should import the entire map correctly?

yretenai commented 3 years ago

Try 2.4.1

shadowmelds commented 3 years ago

2.4.1 It works! Thank you!But the link you reply to is still the download address of 2.4.0, the correct way is to click code->Download zip on github