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
sereja2
Command Sergeant Major
Command Sergeant Major
Posts: 253
Joined: Wed Aug 31, 2011 4:22 am
Projects :: Naboo Otoh Gunga
Games I'm Playing :: swbf 1
xbox live or psn: No gamertag set
Location: Ukraine

Re: XSI ZETools

Post by sereja2 »

Unfortunately, your new versions, still can't export anim, or import anything.
XSIZETools_11_11_02_r4, was the best of them... At least it works.
Well, here the all types of errors:
Export anim:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 36, in exportbutton_OnClicked
' export.export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 694, in export
' self.do_export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 744, in do_export
' self.msh.animation = anim.convert()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 85, in convert
' bonecoll.add(boneconv.convert())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 35, in convert
' self.bone.recrc()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1673, in recrc
' self.CRC = msh2_crc.crc(self.name)
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 28, in crc
' startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
' AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
' - [line 35 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\exporter.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [33] params.preview()
' ERROR : [34] export = andezetexport.Export(xsi, params)
' ERROR : >[35] try:
' ERROR : [36] export.export()
' ERROR : [37] except SystemExit:
' ERROR : [38] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 36, in exportbutton_OnClicked
' export.export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 694, in export
' self.do_export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 744, in do_export
' self.msh.animation = anim.convert()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 85, in convert
' bonecoll.add(boneconv.convert())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 35, in convert
' self.bone.recrc()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1673, in recrc
' self.CRC = msh2_crc.crc(self.name)
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 28, in crc
' startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
' AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
'
[/code]
Import animated msh:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 80, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 521, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 548, in do_import
' self.msh = unpacker.unpack()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_unpack.py", line 115, in unpack
' bone.set_name_from_crc()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1691, in set_name_from_crc
' name = msh2_crc.compare_crc_adv(names, self.CRC)
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 100, in compare_crc_adv
' if crc_ == crc(string):
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 28, in crc
' startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
' AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
' - [line 79 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [77] params.preview()
' ERROR : [78] import_ = andezetimport.Import(xsi, params)
' ERROR : >[79] try:
' ERROR : [80] import_.import_()
' ERROR : [81] except SystemExit:
' ERROR : [82] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 80, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 521, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 548, in do_import
' self.msh = unpacker.unpack()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_unpack.py", line 115, in unpack
' bone.set_name_from_crc()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1691, in set_name_from_crc
' name = msh2_crc.compare_crc_adv(names, self.CRC)
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 100, in compare_crc_adv
' if crc_ == crc(string):
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 28, in crc
' startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
' AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
'
[/code]
Import msh:
Hidden/Spoiler:
[code]' ERROR : 2028 - Traceback (most recent call last):
' File "<Script Block >", line 80, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 521, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 562, in do_import
' self.chain = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 375, in build
' item = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 147, in build
' self.build_geo()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 189, in build_geo
' self.model.name)
' File "<COMObject <unknown>>", line 3, in AddPolygonMesh
' File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 276, in _ApplyTypes_
' result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
' COM Error: Invalid argument specified. - [line 79 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [77] params.preview()
' ERROR : [78] import_ = andezetimport.Import(xsi, params)
' ERROR : >[79] try:
' ERROR : [80] import_.import_()
' ERROR : [81] except SystemExit:
' ERROR : [82] return
' ERROR : 2028 - Traceback (most recent call last):
' File "<Script Block >", line 80, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 521, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 562, in do_import
' self.chain = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 375, in build
' item = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 147, in build
' self.build_geo()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 189, in build_geo
' self.model.name)
' File "<COMObject <unknown>>", line 3, in AddPolygonMesh
' File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 276, in _ApplyTypes_
' result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
' COM Error: Invalid argument specified.
[/code]
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 »

I'll take a look at all those .msh files which didn't work tomorrow.
@sereja: The first two errors should be fixed easily. Which .msh did you try to import when the third error happened?
sereja2
Command Sergeant Major
Command Sergeant Major
Posts: 253
Joined: Wed Aug 31, 2011 4:22 am
Projects :: Naboo Otoh Gunga
Games I'm Playing :: swbf 1
xbox live or psn: No gamertag set
Location: Ukraine

Re: XSI ZETools

Post by sereja2 »

Which .msh did you try to import when the third error happened?
I copy and paste, first random msh, from near by open folder... I guess it was my custom "Nar Shaddaa tv" model.
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 »

Did you export it with my exporter or Pandemics?
sereja2
Command Sergeant Major
Command Sergeant Major
Posts: 253
Joined: Wed Aug 31, 2011 4:22 am
Projects :: Naboo Otoh Gunga
Games I'm Playing :: swbf 1
xbox live or psn: No gamertag set
Location: Ukraine

Re: XSI ZETools

Post by sereja2 »

Did you export it with my exporter or Pandemics?
None of them. All of my models was exported with MshEx... So, you mean, it is possible to import, only stock models from assets? I didn't check it yet, but anyway, it is sad, if that so... :(
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: XSI ZETools

Post by Maveritchell »

sereja2 wrote:
Did you export it with my exporter or Pandemics?
None of them. All of my models was exported with MshEx... So, you mean, it is possible to import, only stock models from assets? I didn't check it yet, but anyway, it is sad, if that so... :(
MshEx's exporter isn't complete - it doesn't include all the data that Pandemic's exporter does. As a result, you can't import those models back in (Rep's Meshtool can't even import them).
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 »

Pretty much.
I believe MshEx writes one chunk in a wrong format which shouldn't be the problem tho(but maybe it is, the importer is not that robust yet). Most likely he uses other chunks to store the polygon information. My importer can't read those(NDXL and NDXT). The engine can read them but afaik they were created for the PS2 engine. Xbox and PC seem to be using STRP chunk. It's possible to convert between them but that's a low priority for me.
Pandemic exported and ZETools exported should work. I dunno about MSH viewer .msh files.
Last edited by ANDEWEGET on Thu Oct 11, 2012 4:09 pm, edited 1 time in total.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: XSI ZETools

Post by CressAlbane »

I can check Msh viewer files for you when I get home.
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: XSI ZETools

Post by Cleb »

I got my error thing, but it's really long (over 60,000 charachters) and I can't find textbin.com or whatever because the internet says it doesn't exist. Maybe I should post half of it(Its very repetitive)? :? :oops:
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 »

Cool. ;)
If everything goes according to plan I should be able to fix serejas errors by tomorrow, depending on what keeps some weights for some models from importing it could take a bit longer for that.
@ cleb: 60k?
Have you tried the version I released yesterday? If you have just post the first 20 lines or so.
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: XSI ZETools

Post by Cleb »

Yay it worked! The new ZETools, I mean. It exported my model and I got it ingame and everything even though the collision is offa nd its really gitchy but that's probablly my fault. I'm just so happy that I got my model in game! Thank you thank you :bowdown: :o :P
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 »

ANDEWEGET wrote:
ANDEWEGET wrote:Groovy. :D

Changelog:
  • Import: Fixed weights with deformer index 0 overwriting each other.
    Import: Added import logging to a text file(XSIZETools\\import_log.log).
    Import: Cloth doesn't break enveloping and export anymore.
    Import: Added 'MYTP' as chunk. .msh files exported with MshEx could work now.
    msh2_crc: Now using the _subprocess module for STARTF_USESHOWWINDOW and SW_HIDE constants. Should fix error on some python distributions where those constants don't exist in subprocess.
    Import: Added MshImportError exception.
First entry fixes walker main bodies not being weighted properly.
Third fixes ARC Trooper and Sith not importing correctly.
Fourth might fix .msh files from MshEx not importing at all.
Fifth should fix your animation export/import errors sereja.

The importing process will be logged to XSIZETools\\import_log.log now. On handled errors (or exceptions I throw) a window will pop up telling you to check that log file for the error. That happens only when the error can be expected.
When applying the death animations to the AT-AT and AT-TE some of their parts(head and maincannon) float around... Have to check if that's done by the importer or the actual data in the .msh file...

I'll release r1 today or tomorrow.
Added r1 to the first page.

All models you mentioned, Ace, import fine. I have to see if I can do anything about the misplaced edges. Maybe triangulate every face, even if it has just 4 sides.

BTW, Safe and Debug import only change the function called when calculating CRCs so they won't have any effect on geometry or hierarchy problems.

EDIT: Removed the file. Have to fix something with the exporter.

Added r2 to the first page. Noticed a problem when the exporter actually found a BBox model and with scaling.
Changelog:
  • Export: Fixed scale.
    Export: Fixed per-model BBox.
    Export: Now automatically calculating global BBox.
BBox is now being calculated from the selection on export. In all tests the result equaled the BBox from the Pandemic exporter. As the controls in UI aren't needed anymore I moved the two anim checkboxes to that place. The window is now 30 px less high!
User avatar
Tears2Roses
Chief Warrant Officer
Chief Warrant Officer
Posts: 336
Joined: Thu Jul 07, 2011 9:20 am
Projects :: Oh some random stuff who knows
Games I'm Playing :: SWBF2
xbox live or psn: PC beats xbox.

Re: XSI ZETools

Post by Tears2Roses »

what is BBox? And what does it do? :runaway:
sereja2
Command Sergeant Major
Command Sergeant Major
Posts: 253
Joined: Wed Aug 31, 2011 4:22 am
Projects :: Naboo Otoh Gunga
Games I'm Playing :: swbf 1
xbox live or psn: No gamertag set
Location: Ukraine

Re: XSI ZETools

Post by sereja2 »

Just check it... No, still is not works :( :

Export msh - not work's at all:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 32, in exportbutton_OnClicked
' params.from_ppg(PPG.Inspected(0))
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetcore.py", line 202, in from_ppg
' bbox.text = ppg.Parameters('bbox').Value
' AttributeError: 'NoneType' object has no attribute 'Value'
' - [line 31 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\exporter.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [29]
' ERROR : [30] def exportbutton_OnClicked():
' ERROR : >[31] params = andezetcore.Config()
' ERROR : [32] params.from_ppg(PPG.Inspected(0))
' ERROR : [33] params.preview()
' ERROR : [34] export = andezetexport.Export(xsi, params)
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 32, in exportbutton_OnClicked
' params.from_ppg(PPG.Inspected(0))
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetcore.py", line 202, in from_ppg
' bbox.text = ppg.Parameters('bbox').Value
' AttributeError: 'NoneType' object has no attribute 'Value'
' [/code]
Export anim - the same:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 32, in exportbutton_OnClicked
' params.from_ppg(PPG.Inspected(0))
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetcore.py", line 202, in from_ppg
' bbox.text = ppg.Parameters('bbox').Value
' AttributeError: 'NoneType' object has no attribute 'Value'
' - [line 31 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\exporter.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [29]
' ERROR : [30] def exportbutton_OnClicked():
' ERROR : >[31] params = andezetcore.Config()
' ERROR : [32] params.from_ppg(PPG.Inspected(0))
' ERROR : [33] params.preview()
' ERROR : [34] export = andezetexport.Export(xsi, params)
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 32, in exportbutton_OnClicked
' params.from_ppg(PPG.Inspected(0))
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetcore.py", line 202, in from_ppg
' bbox.text = ppg.Parameters('bbox').Value
' AttributeError: 'NoneType' object has no attribute 'Value'
' [/code]
Import msh -

Can't say for sure. Some model is realy show up, but it anyway display some "red line" error:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 658, in do_import
' enveloper.envelope()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 509, in envelope
' if model.model_type == 'cloth':
' AttributeError: 'NoneType' object has no attribute 'model_type'
' - [line 77 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [75] params.from_ppg(PPG.Inspected(0))
' ERROR : [76] import_ = andezetimport.Import(xsi, params)
' ERROR : >[77] try:
' ERROR : [78] import_.import_()
' ERROR : [79] except SystemExit:
' ERROR : [80] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 658, in do_import
' enveloper.envelope()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 509, in envelope
' if model.model_type == 'cloth':
' AttributeError: 'NoneType' object has no attribute 'model_type'
' [/code]
Import animated msh -

The same, as with non animated msh: it import some separated models (some mess in separated hierarchi), but the animation is dead. (It's not works, when I press > button). So the "red line" content is next:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 658, in do_import
' enveloper.envelope()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 509, in envelope
' if model.model_type == 'cloth':
' AttributeError: 'NoneType' object has no attribute 'model_type'
' - [line 77 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [75] params.from_ppg(PPG.Inspected(0))
' ERROR : [76] import_ = andezetimport.Import(xsi, params)
' ERROR : >[77] try:
' ERROR : [78] import_.import_()
' ERROR : [79] except SystemExit:
' ERROR : [80] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 658, in do_import
' enveloper.envelope()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 509, in envelope
' if model.model_type == 'cloth':
' AttributeError: 'NoneType' object has no attribute 'model_type'
' [/code]
Import of MshEx exported msh - realy is not work's at all:
Hidden/Spoiler:
[code]' ERROR : 2028 - Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 653, in do_import
' self.chain = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 423, in build
' item = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 164, in build
' self.build_geo()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 217, in build_geo
' self.model.name)
' File "<COMObject <unknown>>", line 3, in AddPolygonMesh
' File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 276, in _ApplyTypes_
' result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
' COM Error: Invalid argument specified. - [line 77 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [75] params.from_ppg(PPG.Inspected(0))
' ERROR : [76] import_ = andezetimport.Import(xsi, params)
' ERROR : >[77] try:
' ERROR : [78] import_.import_()
' ERROR : [79] except SystemExit:
' ERROR : [80] return
' ERROR : 2028 - Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 653, in do_import
' self.chain = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 423, in build
' item = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 164, in build
' self.build_geo()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 217, in build_geo
' self.model.name)
' File "<COMObject <unknown>>", line 3, in AddPolygonMesh
' File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 276, in _ApplyTypes_
' result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
' COM Error: Invalid argument specified.[/code]
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 »

Tears2Roses wrote:what is BBox? And what does it do? :runaway:
Bounding box. Big blue box that encompasses models in Zero Editor, to put it simply. It controls the model's visibility and point of origin sorta: the model is visible only when any part of the bounding box is visible to the camera.
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 »

ANDEWEGET wrote:RIP old message by the hands of not-working copy&paste. Most important part of the message: MshEx does a lot of stuff wrong on which my importer heavily depends => won't be supported.
Added r3. This hopefully should work now...
sereja2
Command Sergeant Major
Command Sergeant Major
Posts: 253
Joined: Wed Aug 31, 2011 4:22 am
Projects :: Naboo Otoh Gunga
Games I'm Playing :: swbf 1
xbox live or psn: No gamertag set
Location: Ukraine

Re: XSI ZETools

Post by sereja2 »

Hmm... This time, I got error, only when try export anim:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 36, in exportbutton_OnClicked
' export.export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 686, in export
' self.do_export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 747, in do_export
' if not self.write_msh(self.msh.pack()):
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 129, in pack
' data.append(self.animation.pack())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1592, in pack
' data.append(self.cycle.pack())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1627, in pack
' data.append(struct.pack('<LL', self.frames))
' error: pack requires exactly 2 arguments
' - [line 35 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\exporter.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [33] params.preview()
' ERROR : [34] export = andezetexport.Export(xsi, params)
' ERROR : >[35] try:
' ERROR : [36] export.export()
' ERROR : [37] except SystemExit:
' ERROR : [38] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 36, in exportbutton_OnClicked
' export.export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 686, in export
' self.do_export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 747, in do_export
' if not self.write_msh(self.msh.pack()):
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 129, in pack
' data.append(self.animation.pack())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1592, in pack
' data.append(self.cycle.pack())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1627, in pack
' data.append(struct.pack('<LL', self.frames))
' error: pack requires exactly 2 arguments
'
[/code]
Funny: all exported msh, with all versions of ZETools, are always invisible in Zero Editor, and I have to hex edit them, to see... :lol:
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 »

What do you have to hex edit? The FLGS chunk?
Weird that that error shows up now... I didn't make any changes to the anim export. I'll take a look at it tomorrow.
At least we're down to one animation error...
sereja2
Command Sergeant Major
Command Sergeant Major
Posts: 253
Joined: Wed Aug 31, 2011 4:22 am
Projects :: Naboo Otoh Gunga
Games I'm Playing :: swbf 1
xbox live or psn: No gamertag set
Location: Ukraine

Re: XSI ZETools

Post by sereja2 »

ANDEWEGET wrote:What do you have to hex edit? The FLGS chunk?
I am use my "universal" hex editor code:
Hidden/Spoiler:
[code]33 33 33 3F 33 33 33 3F 33 33 33 3F CC CC CC 4C 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 9A 99 99 3E 9A 99 99 3E 9A 99 99 3E 00 00 80 3F 00 00 80 40 41 54 52 42 04 00 00 00 00 00 00 00[/code]
It should be pasted before TX0D on each texture. Usualy, I am use it, to make models "shiny" (specular), but this code, strong enough, to kill any "flag bug". :jango:
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 »

What you do is change Diffuse Color Alpha to... very much and the Specular Decay/Gloss/Shinyness to 4. All exporters(Pandemic SWBF1 and Pandemic SWBF2) export colors in a range from 0.0 to 1.0. So changing alpha to over 1.0 shouldn't make any difference. For me it really doesn't make any difference. I can see models exported with the ZETools just fine in both Zero Editors.
Changing the Gloss value doesn't make any difference for me either. I tested 0, 1, 100, 300 and 1000 and none of them changed anything. BTW, specular only worked for me when I either had the Rendertype Specular(4) enabled or the 5th-place-after-ATRB specular enabled. I only tested changing Gloss in SWBF2 though...

I fixed that anim export error, too.

r4 up.
Post Reply