xsizetools-1.3.0036 having trouble importing msh's

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

Post Reply
FiftyAuto
Private Recruit
Posts: 17
Joined: Mon Jun 25, 2018 4:47 pm
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront2
xbox live or psn: No gamertag set

xsizetools-1.3.0036 having trouble importing msh's

Post by FiftyAuto »

So I got a new PC and I wanted to start modding on it again so I have been downloading everything I need for modding. When I tried installing the softimage_mod_tool and the xsizetools addon everything seemed to be working fine up until I started testing the addon. I wanted to import the atap.msh as a test. when I tried to import the mesh it only imported the dummyroot and a lowres model nothing else and I was given the error "Encountered an error while importing. copy error to clipboard?"

So I read the error log and it said:
Last 15 log lines:


INFO (643, build): Starting chain builder(79 Models).
INFO (521, build_null): Building dummyroot as null(originally null).
DEBUG (620, set_transform): Model transform: Pos(0.0, 0.0, 0.0), Rot(-0.0, -0.0, -0.0, 1.0), Scl(1.0, 1.0, 1.0)
DEBUG (627, set_transform): Set local transform for dummyroot to:
Position: 0.0, 0.0, 0.0;
Rotation: 0.0, 0.0, 0.0;
Scale: 1.0, 1.0, 1.0.
INFO (196, build): Finished building dummyroot in 0s 8000ms.
INFO (338, build_geo): Building atap_lowres as polymesh(originally geodynamic).
DEBUG (470, get_vertex_positions): Retrieved 6353 vertex positions.
INFO (33, __exit__): Retrieved vertices in 0s 4000ms.
INFO (33, __exit__): Retrieved faces in 0s 7000ms.
INFO (33, __exit__): Built polygon mesh in 0s 16000ms.
INFO (33, __exit__): Processing normals in 0s 52000ms.
INFO (33, __exit__): Built chain in 0 s 137000 ms.


Traceback:


Traceback (most recent call last):
File "<Script Block >", line 84, in importbutton_OnClicked
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 873, in import_
self.do_import()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 926, in do_import
self.chain = builder.build()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 652, in build
item = builder.build()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 189, in build
self.build_geo()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 369, in build_geo
self.process_normals()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 389, in process_normals
self.set_normals(0, self.make_normals())
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Modules\softimage.py", line 107, in set_normals
prop = self.get_normal_props()[index]
File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 473, in __getattr__
raise AttributeError("'%s' object has no attribute '%s'" % (repr(self), attr))
AttributeError: '<win32com.gen_py.Softimage|XSI Object Model Library v1.5.PropertyCollection instance at 0x681914576>' object has no attribute '__getitem__'

If someone could make sense of this that would be much appreciated.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: xsizetools-1.3.0036 having trouble importing msh's

Post by ANDEWEGET »

Do you still have this problem? Does this happen with every msh?
FiftyAuto
Private Recruit
Posts: 17
Joined: Mon Jun 25, 2018 4:47 pm
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront2
xbox live or psn: No gamertag set

Re: xsizetools-1.3.0036 having trouble importing msh's

Post by FiftyAuto »

Yeah I still do and it is consistent with every msh sometimes it will only be a dummy root. I don't know if it is that I have C++ 2015 - 2019 installed instead of just 2015 that caused it. It could be that I'm an idiot and did something wrong on that end. would I need to install an older version of Visual C++ Redistributable?
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: xsizetools-1.3.0036 having trouble importing msh's

Post by ANDEWEGET »

Took me a while but I found the problem. It seems newer versions of pywin32 generate python code from COM objects differently, which causes this issue.

To fix, uninstall your current version of pywin32 (through Windows apps) and install this one: https://sourceforge.net/projects/pywin3 ... e/download
FiftyAuto
Private Recruit
Posts: 17
Joined: Mon Jun 25, 2018 4:47 pm
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront2
xbox live or psn: No gamertag set

Re: xsizetools-1.3.0036 having trouble importing msh's

Post by FiftyAuto »

This worked like a charm thanks a ton!
Post Reply