Issues with exporting. #77
stevenjwbrooks
started this conversation in
General
Replies: 3 comments 5 replies
-
Could you give me some more info:
|
Beta Was this translation helpful? Give feedback.
5 replies
-
Version:
Blender 3.4.1
Model:
1. I am trying a custom one, N-1 Starfighter.
2. I still have issues when I import and immediately re-export a PDX mesh.
```
addon_utils.disable: io_pdx_mesh not disabled
Modules Installed (io_pdx_mesh) from 'C:\\Users\\Steven Brooks\\Downloads\\io_pdx_mesh.zip' into 'C:\\Users\\Steven Brooks\\AppData\\Roaming\\Blender Foundation\\Blender\\3.4\\scripts\\addons'
[io_pdx.updater] INFO: Skipped update check. (already ran today)
[io_pdx] INFO: Running from c:\program files\blender foundation\blender 3.4\blender.exe ((3, 4, 1))
[io_pdx] INFO: C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh
[io_pdx] INFO: Loading Blender UI.
Read blend: C:\Users\Steven Brooks\Downloads\source\untitled.blend
[io_pdx] INFO: exporting - C:\Users\Steven Brooks\Downloads\source\t.mesh
[io_pdx] INFO: writing node 1/1 - Naboo StarFighter.001
[io_pdx] INFO: writing mesh - 0
[io_pdx] INFO: writing material -
[io_pdx] INFO: writing skinning data -
[io_pdx] INFO: writing skeleton -
[io_pdx] INFO: writing locators -
[io_pdx] INFO: writing .mesh file -
Failed writing property: shader
[io_pdx] WARNING: FAILED to export C:\Users\Steven Brooks\Downloads\source\t.mesh
[io_pdx] ERROR: Unknown data type encountered. <class 'IDPropertyGroup'>
eg: <bpy id prop: owner="MAPdxMeshAdvanced", name="shader", address=0x00000172523BB2E8>
Traceback (most recent call last):
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_blender\blender_ui.py", line 554, in execute
export_meshfile(
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\library.py", line 47, in wrapper
value = func(*args, **kwargs)
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_blender\blender_import_export.py", line 1424, in export_meshfile
pdx_data.write_meshfile(meshpath, root_xml)
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 448, in write_meshfile
datastring += writeProperty(prop, material_xml.get(prop))
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 314, in writeProperty
raise err
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 310, in writeProperty
datastring += writeData(prop_data)
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 383, in writeData
raise NotImplementedError("Unknown data type encountered. {}\neg: {}".format(datatype, data_array[0]))
NotImplementedError: Unknown data type encountered. <class 'IDPropertyGroup'>
eg: <bpy id prop: owner="MAPdxMeshAdvanced", name="shader", address=0x00000172523BB2E8>
[io_pdx] INFO: exporting - C:\Users\Steven Brooks\Downloads\source\t.mesh
[io_pdx] INFO: writing node 1/1 - Naboo StarFighter.001
[io_pdx] INFO: writing mesh - 0
[io_pdx] INFO: writing material -
[io_pdx] INFO: writing skinning data -
[io_pdx] INFO: writing skeleton -
[io_pdx] INFO: writing locators -
[io_pdx] INFO: writing .mesh file -
Failed writing property: shader
[io_pdx] WARNING: FAILED to export C:\Users\Steven Brooks\Downloads\source\t.mesh
[io_pdx] ERROR: Unknown data type encountered. <class 'IDPropertyGroup'>
eg: <bpy id prop: owner="MAPdxMeshAdvanced", name="shader", address=0x00000172523BB2E8>
Traceback (most recent call last):
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_blender\blender_ui.py", line 554, in execute
export_meshfile(
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\library.py", line 47, in wrapper
value = func(*args, **kwargs)
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_blender\blender_import_export.py", line 1424, in export_meshfile
pdx_data.write_meshfile(meshpath, root_xml)
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 448, in write_meshfile
datastring += writeProperty(prop, material_xml.get(prop))
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 314, in writeProperty
raise err
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 310, in writeProperty
datastring += writeData(prop_data)
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 383, in writeData
raise NotImplementedError("Unknown data type encountered. {}\neg: {}".format(datatype, data_array[0]))
NotImplementedError: Unknown data type encountered. <class 'IDPropertyGroup'>
eg: <bpy id prop: owner="MAPdxMeshAdvanced", name="shader", address=0x00000172523BB2E8>
[io_pdx] INFO: importing - D:\SteamLibrary\steamapps\common\Hearts of Iron IV\gfx\models\units\planes\GER_plane_light.mesh
[io_pdx] INFO: creating node 1/1 - polySurfaceShape57
[io_pdx] INFO: creating skeleton -
[io_pdx] INFO: creating mesh -
[io_pdx] INFO: creating material - PdxMeshAdvanced
[io_pdx] INFO: creating skinning data -
[io_pdx] INFO: creating locator 1/2 - gun2
[io_pdx] INFO: creating locator 2/2 - gun1
[io_pdx] INFO: import finished! (0.0296 sec)
[io_pdx] INFO: exporting - C:\Users\Steven Brooks\Downloads\source\pdx.mesh
[io_pdx] INFO: writing node 1/2 - polySurfaceShape57
[io_pdx] INFO: writing mesh - 0
[io_pdx] INFO: writing material -
[io_pdx] INFO: writing skinning data -
[io_pdx] INFO: writing skeleton -
[io_pdx] INFO: writing node 2/2 - Naboo StarFighter.001
[io_pdx] INFO: writing mesh - 0
[io_pdx] INFO: writing material -
[io_pdx] INFO: writing skinning data -
[io_pdx] INFO: writing skeleton -
[io_pdx] INFO: writing locators -
[io_pdx] INFO: writing .mesh file -
Failed writing property: shader
[io_pdx] WARNING: FAILED to export C:\Users\Steven Brooks\Downloads\source\pdx.mesh
[io_pdx] ERROR: Unknown data type encountered. <class 'IDPropertyGroup'>
eg: <bpy id prop: owner="MAPdxMeshAdvanced", name="shader", address=0x00000172523BB2E8>
Traceback (most recent call last):
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_blender\blender_ui.py", line 554, in execute
export_meshfile(
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\library.py", line 47, in wrapper
value = func(*args, **kwargs)
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_blender\blender_import_export.py", line 1424, in export_meshfile
pdx_data.write_meshfile(meshpath, root_xml)
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 448, in write_meshfile
datastring += writeProperty(prop, material_xml.get(prop))
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 314, in writeProperty
raise err
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 310, in writeProperty
datastring += writeData(prop_data)
File "C:\Users\Steven Brooks\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\io_pdx_mesh\pdx_data.py", line 383, in writeData
raise NotImplementedError("Unknown data type encountered. {}\neg: {}".format(datatype, data_array[0]))
NotImplementedError: Unknown data type encountered. <class 'IDPropertyGroup'>
eg: <bpy id prop: owner="MAPdxMeshAdvanced", name="shader", address=0x00000172523BB2E8>
```
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Interesting.
I got it all working and implemented in game.
I'll take a peek at what your mentioning next time I look at it. But the
difference between working and not working for me was dds vs png. I'll try
and see if I can figure it out. Or share you screenshots of my workflow.
…On Wed, Mar 1, 2023, 5:57 p.m. Ross ***@***.***> wrote:
So the addon doesn't touch or care about textures in any way. But it does
care about materials, which is what is throwing that error.
Basically in order to tell the game what shader to use, the Blender
material needs a custom property on it
[image: image]
<https://user-images.githubusercontent.com/9258768/222284318-4c45f568-2086-4649-909e-db49ab8ffba1.png>
It's very simple, just text which goes through to the game. The material
you are exporting doesn't seem to have this and instead has some data that
to be honest I'm not sure could have come from my addon.
Failed writing property: shader
[io_pdx] ERROR: Unknown data type encountered. <class 'IDPropertyGroup'>
In your logs, I can't actually see you import the N-1 Starfighter .mesh
file anywhere. So I don't know what source file you have for this, but it's
likely broken in some way and not actually designed to work with my tool.
Your best bet is just to replace the materials on it with ones made from
scratch.
—
Reply to this email directly, view it on GitHub
<#77 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHJEXWC6LY4XYSMZ6W5VD4DWZ7H7FANCNFSM6AAAAAAVGKUOQU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unknown data type encountered. <class 'IDPropertyGroup'>
eg: <bpy id prop: owner="MAPdxMeshAdvanced", name="shader", address=0x00000261D05C5F88>
I get this error.
If i import a PDX model and re-export it immediately i have issues.
I would love any help.
Beta Was this translation helpful? Give feedback.
All reactions