XSI ZETools

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
User avatar
Gogie
Modeling Master
Modeling Master
Posts: 708
Joined: Fri Mar 31, 2006 11:02 pm
Projects :: Tinkering away with LEGO
Location: alberta, canada

Re: XSI ZETools

Post 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
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: XSI ZETools

Post 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! :)
User avatar
Gogie
Modeling Master
Modeling Master
Posts: 708
Joined: Fri Mar 31, 2006 11:02 pm
Projects :: Tinkering away with LEGO
Location: alberta, canada

Re: XSI ZETools

Post 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
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: XSI ZETools

Post 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.)
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: XSI ZETools

Post 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.
User avatar
agentsmith38
Command Sergeant Major
Command Sergeant Major
Posts: 283
Joined: Thu May 27, 2010 9:47 am
Projects :: The Final Push Future - Omaha Beach
Games I'm Playing :: ArmA 2 OA
xbox live or psn: No gamertag set
Location: In the Trenches, getting ready to go over the top..

Re: XSI ZETools

Post 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)
'
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: XSI ZETools

Post by ANDEWEGET »

That error should be fixed now, too.
User avatar
agentsmith38
Command Sergeant Major
Command Sergeant Major
Posts: 283
Joined: Thu May 27, 2010 9:47 am
Projects :: The Final Push Future - Omaha Beach
Games I'm Playing :: ArmA 2 OA
xbox live or psn: No gamertag set
Location: In the Trenches, getting ready to go over the top..

Re: XSI ZETools

Post by agentsmith38 »

ANDEWEGET wrote:That error should be fixed now, too.
Excellent, it's all fixed now. Thanks ANDE.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: XSI ZETools

Post 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??
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: XSI ZETools

Post 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:
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: XSI ZETools

Post 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.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: XSI ZETools

Post 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
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: XSI ZETools

Post 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.
User avatar
The Nasal Abyss
1st Lieutenant
1st Lieutenant
Posts: 428
Joined: Sun Sep 14, 2008 12:55 pm
Projects :: Currently Working on an Indie Game
Games I'm Playing :: Splatoon 2
xbox live or psn: Stm: Tight Verbage

Re: XSI ZETools

Post 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!)
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: XSI ZETools

Post by ANDEWEGET »

.msh files exported with RepSharpshooter's MshEx should now import fine.
Download.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: XSI ZETools

Post 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?
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: XSI ZETools

Post by ANDEWEGET »

It shouldn't matter where you install python. Did you use the exact python files provided on the download page?
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: XSI ZETools

Post 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?
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: XSI ZETools

Post by ANDEWEGET »

Unzipped the files?
The link provided for pywin32 should bring you directly to the download page for an executable, not a zip.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: XSI ZETools

Post 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.
Post Reply