Page 34 of 45

Re: XSI ZETools

Posted: Sun Feb 09, 2014 7:39 pm
by Gogie
So; i've been trying to get back into xsi,

now ive installed the ZE tools as per instructions however nothing is working with it;

bottom of XSI screen redtexts with OLE error 0x80020101

xsi script error reads
# ERROR : Traceback (most recent call last):
# File "<Script Block >", line 469, in MSHImport_Execute
# import softimage
# ImportError: No module named softimage
# - [line 468 in I:\users\*** *****\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Plugins\XSIZETools.py]
# ERROR : OLE error 0x80020101
Application.MSHImport()
I have python 2.6/pywin installed as per web instructions aswell as python activex script selected in xsi preferences.
C++ already installed


currently using windows xp professional V2002, SP3.

XSI version 7.5 mod tools

any help appreciated

Re: XSI ZETools

Posted: Sun Feb 09, 2014 7:59 pm
by Marth8880
Hmm. Which msh are you trying to import? I know that msh files exported with mshex cannot (yet, anyways) be imported using these tools, and that cloth cannot yet be imported. Also, perhaps try importing a msh using a trial version of Softimage 2012 or 2013 or something? :o
Hidden/Spoiler:
Welcome back! Great to see you again! :)

Re: XSI ZETools

Posted: Sun Feb 09, 2014 8:09 pm
by Gogie
havent actually imported anything; whenever I use ZE its the same error; no matter, import/export anything, i just used that as an example of the error im getting

Re: XSI ZETools

Posted: Sun Feb 09, 2014 8:16 pm
by Marth8880
Hmm, strange... Try seeing if it works in a trial version of 2012-2014. (If you're a student, you can obtain a 36-month license of the software for free.)

Re: XSI ZETools

Posted: Sun Feb 09, 2014 11:01 pm
by ANDEWEGET
It seems when using the Download ZIP button github doesn't include files from submodules.
I re-added the files to the main repository, so that error should be fixed with the latest version.

Re: XSI ZETools

Posted: Mon Feb 10, 2014 3:35 am
by agentsmith38
There appears to be another issue with the latest version. I get this when I try to export
Hidden/Spoiler:
' ERROR : [37] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 35, in exportbutton_OnClicked
' export.export()
' File "C:\Users\Scott Pilgrim\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Core\andezetexport.py", line 724, in export
' andezetcore.save_settings(self.xsi, self.ppg_params, 'export')
' TypeError: save_settings() takes exactly 2 arguments (3 given)
'

Re: XSI ZETools

Posted: Tue Feb 11, 2014 3:44 am
by ANDEWEGET
That error should be fixed now, too.

Re: XSI ZETools

Posted: Tue Feb 11, 2014 11:37 am
by agentsmith38
ANDEWEGET wrote:That error should be fixed now, too.
Excellent, it's all fixed now. Thanks ANDE.

Re: XSI ZETools

Posted: Fri Mar 14, 2014 12:49 pm
by DarthD.U.C.K.
first of all great work on the tool!
i found a little issue with how collision priitives are handled. i encountered this problem when using cubes but i dont know if the other primitives are affected aswell.
i imported a msh of a model i made a noticed that the primitives had the scale property set to 1 so that they had half the size they actually needed to be. i set the scale property to 2 in xsi and reexported them. ingame the collision was now far too large. when i set the scale back to 1 in xsi they had the right size ingame. is it possible that the zetools double the scale property on export and halve them at import??

Re: XSI ZETools

Posted: Fri Mar 14, 2014 12:53 pm
by Marth8880
Ah, yeah, I've personally known about cubes being a big issue for a while now, and I as well figured out exactly how to sort of get them working correctly last night, which, like you said, you just make them half-scaled.

@D.U.C.K.: I'm almost positive this issue is exclusive to cubes; cylinders and spheres should always work just fine. ;) Heck, I've had to resort to using cylinders and spheres exclusively for my vehicles in Unification, and it's worked...hilariously well. (Although now that we know how to make cubes work, I might go back to trying those...)

There's also a problem when importing models using collision primitives. Oftentimes the primitives will be totally out-of-place, off-scale, etc. The stupid crappy tat2_bldg_dockingbay assets are a great example.

But yeah, these totally need to be fixed. Great job on the tool regardless though! :thumbs:

Re: XSI ZETools

Posted: Sat Mar 15, 2014 11:25 am
by ANDEWEGET
Collision primitive data for cubes is stored like the BBox extents, so it's just half of the size along one axis. Which means no I'm not doing any halving/doubling.


But as I didn't know that until today I was not doing any doubling/halving either which means half the size in Softimage and double the size in ZE.

I have taken a look at the 'tat2_bldg_dockingbay*' assets. The positioning/scaling problem seems to be related to being a child of a (cube) primitive.
The PPG property/scale relation was probably not the same as it's now stored in the .msh file, so when I use the stored value directly as scale all children collision primitives get their scale messed up.
Scaling looks good for me now though, after some multiplying and dividing. Positioning is fine relative to siblings but not (yet) to the primitive parent.

I committed the changes to the repository if someone wants to give it a try.

Re: XSI ZETools

Posted: Sun Apr 27, 2014 1:22 pm
by Marth8880
Uh oh! I get this error when I try to import a msh that I *think* I exported a long time ago using MshEx3. The msh is just a simple Earth sky object. Nothing too special.

Code: Select all

Application.SetValue("MSHImport.path", "H:\\BF2_ModTools\\data_LUN\\Worlds\\LUN\\world1\\lun_sky_earth.msh", "")
# ERROR : Traceback (most recent call last):
#   File "<Script Block >", line 91, in importbutton_OnClicked
#     import_.import_()
#   File "C:\Users\Aaron\Autodesk\Softimage_2012\Addons\XSIZETools\Application\Core\andezetimport.py", line 757, in import_
#     self.do_import()
#   File "C:\Users\Aaron\Autodesk\Softimage_2012\Addons\XSIZETools\Application\Core\andezetimport.py", line 791, in do_import
#     self.abort_checklog()
#   File "C:\Users\Aaron\Autodesk\Softimage_2012\Addons\XSIZETools\Application\Core\andezetimport.py", line 738, in abort_checklog
#     path = os.path.join(self.get_origin(), 'import_log.log')
# AttributeError: 'Import' object has no attribute 'get_origin'
#  - [line 90 in C:\Users\Aaron\Autodesk\Softimage_2012\Addons\XSIZETools\\Application\Logic\importer.py]
# ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
# ERROR :    [88]     settings = andezetcore.load_settings('import', PPG.Inspected(0))
# ERROR :    [89]     import_ = andezetimport.Import(xsi, settings)
# ERROR :   >[90]     try:
# ERROR :    [91]         import_.import_()
# ERROR :    [92]     except SystemExit:
# ERROR :    [93]         return
# ERROR : 	Traceback (most recent call last):
#   File "<Script Block >", line 91, in importbutton_OnClicked
#     import_.import_()
#   File "C:\Users\Aaron\Autodesk\Softimage_2012\Addons\XSIZETools\Application\Core\andezetimport.py", line 757, in import_
#     self.do_import()
#   File "C:\Users\Aaron\Autodesk\Softimage_2012\Addons\XSIZETools\Application\Core\andezetimport.py", line 791, in do_import
#     self.abort_checklog()
#   File "C:\Users\Aaron\Autodesk\Softimage_2012\Addons\XSIZETools\Application\Core\andezetimport.py", line 738, in abort_checklog
#     path = os.path.join(self.get_origin(), 'import_log.log')
# AttributeError: 'Import' object has no attribute 'get_origin'
# 
# C:\Users\Aaron\Autodesk\Softimage_2012\Addons\XSIZETools\Resources\import
# H:\BF2_ModTools\data_LUN\Worlds\LUN\world1\lun_sky_earth.msh
# H:\BF2_ModTools\data_LUN\Worlds\LUN\world1\lun_sky_earth.msh
Import log: https://dl.dropboxusercontent.com/u/384 ... rt_log.log
MSH file: https://dl.dropboxusercontent.com/u/384 ... _earth.msh

Re: XSI ZETools

Posted: Mon Apr 28, 2014 2:41 pm
by ANDEWEGET
It didn't get to it because it crashed while reporting, but that code was reporting that importing .msh files exported with MshEx is not supported.

I have to say I'm not sure if that's still correct, because of the changes to the exported/imported structure. Will have to take a closer look, which might not be until ~ May 4th.

Re: XSI ZETools

Posted: Thu May 22, 2014 3:10 am
by The Nasal Abyss
I can't seem to get this to work. I've followed the installation instructions, but ZE still doesn't recognize it. Is there a .xsiaddon file that's supposed to come with the program? Am I missing a step?

EDIT: I was missing one of the python installations... Everything works fine now.

(I should quit trying to make a return to modding... I've forgotten too much!)

Re: XSI ZETools

Posted: Fri Jul 11, 2014 8:31 am
by ANDEWEGET
.msh files exported with RepSharpshooter's MshEx should now import fine.
Download.

Re: XSI ZETools

Posted: Tue Jul 15, 2014 4:39 pm
by thelegend
Hey all,
i have still a problem with exporting a simple object to .msh.
I have downloaded and installed Softimage 7.5 and the python stuff + the pywin32 thing. If I open XSI and open up references/.../scripts I don`t see the Python Script available. And If I open xsi pandemic tool and export it as .msh I got a red message on my bottom in xsi. Where I exactly have to install python?

Re: XSI ZETools

Posted: Tue Jul 15, 2014 7:57 pm
by ANDEWEGET
It shouldn't matter where you install python. Did you use the exact python files provided on the download page?

Re: XSI ZETools

Posted: Wed Jul 16, 2014 3:53 am
by thelegend
Yes. I have downloaded python 2.6 and the python32. I had problems with the second one so I unzipped the files and put them in the same folder where it has to be installed.

Edit: Have I to install xsi to C: or are else directions ok?

Re: XSI ZETools

Posted: Wed Jul 16, 2014 11:13 am
by ANDEWEGET
Unzipped the files?
The link provided for pywin32 should bring you directly to the download page for an executable, not a zip.

Re: XSI ZETools

Posted: Wed Jul 16, 2014 11:29 am
by thelegend
Yes. I have the exe install file. But I got problems when I try to install it. So I decided to unzip the exe. I got 2 folders and pasted them in the same location my installation of pywin32 said: Python26/ lib/ site-packages.