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
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: XSI ZETools

Post by Cerfon Rournes »

Ugg, still not working..
I got this after I ran the pywin-212.win-64-py2.6 installer. Anyone know what it means?
Hidden/Spoiler:
Copied pythoncom26.dll to C:\Python26\pythoncom26.dll
Copied pywintypes26.dll to C:\Python26\pywintypes26.dll
You do not have the permissions to install COM objects.
The sample COM objects were not registered.

-> Software\Python\PythonCore\2.6\Help[None]=None
-> Software\Python\PythonCore\2.6\Help\Pythonwin Reference[None]='C:\\Python26\\Lib\\site-packages\\PyWin32.chm'
Pythonwin has been registered in context menu
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed.

[/code]
Never mind, I turned off UAC, and the COM stuff did not show up. However, python still isn't showing up in Autodesk. :(
EDIT
This could be my problem.
Python readme installer said wrote:4) Add the python folder installation (e.g. C:\python26) to the PATH environment variable as the installer won't do it by default.
How is this done?
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 »

Press the windows button(Start) then right-click Computer > Properties, then in the Advanced tab click Environment variables. Then find Path in the System variables, click Edit... and then add ;C:\Python27 (the path in which python.exe is) to the end of the text.
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: XSI ZETools

Post by Cerfon Rournes »

Thanks. I'll run the installer again and post results in a bit.
EDIT
Nothing still.
Just checking, is this correct?
Hidden/Spoiler:
Image
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 »

Yeah, this is correct.
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: XSI ZETools

Post by Cerfon Rournes »

Would your program still work on my pc? :? The line will not show up even after I did all of the steps correctly.
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 »

Try those:
Python 2.4.4
pywin32 216 win32
Check if it shows up, if it doesnt, run:
C:\Python24\Lib\site-packages\win32comext\axscript\client\pyscript.py
and add C:\Python24 to your path system variable.
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: XSI ZETools

Post by Cerfon Rournes »

ANDEWEGET wrote:Try those:
Python 2.4.4
pywin32 216 win32
It showed up right after that! Thanks for all of the Help Ace and ANDE. :D
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 »

No problem, its very much in my interest to get this working for everyone. ;)

Vertex colors should work now. Collisionmeshes/lowrez models dont seem to be any different from normal models, just the name. Collisionprimitives have an additional SWCI chunk I have to decipher first.
And the exporter seems to work like a charm with the modtool. ;)
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: XSI ZETools

Post by Cerfon Rournes »

ANDEWEGET wrote:No problem, its very much in my interest to get this working for everyone. ;)

Vertex colors should work now. Collisionmeshes/lowrez models dont seem to be any different from normal models, just the name. Collisionprimitives have an additional SWCI chunk I have to decipher first.
And the exporter seems to work like a charm with the modtool. ;)
Awesome! :thumbs:
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 »

A little late but I have a quick question:

What is python and what does it do?
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 »

Python is a programming language. (A very easy one, in my opinion)
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:Yes, very straight-forward and easy to read(and fast to write) code. Performance doesnt come close to Java/any kind of C, but depending on how good you know python youre able to develop stuff 3-10 times faster(depending on what you develop of course).

Collision primitives are mostly 'deciphered' now. Tomorrow Ill (try to) implement them. On monday or tuesday Ill release a alpha version and then Ill be off on vacation for some days.
Added links to version 0.9.05.00b. :D Didnt do much testing but it should work. Collision primitive exporting is implemented. Please report any bugs you find.
Updated the link with a fixed version, I broke some formatting(tabs/spaces) when I quickly made everything compatible with older python versions(py < 2.6).
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: XSI ZETools

Post by Cerfon Rournes »

Downloading!! :)
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: XSI ZETools

Post by AceMastermind »

*Thread stickied*


Error about missing materials on export:
Hidden/Spoiler:
Image
Softimage Mod Tool 7.5
XP Pro 32bit
Python 2.6
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: XSI ZETools

Post by Cerfon Rournes »

I had the same problem. :?
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 »

Yeah, you need to create a material using the XSIZETools>Material Manager... Dialog. This is a simplified material system which only supports ZeroEngine material flags. Its way easier for me to use in the script, too. I didnt find a way to add all the ZE flags to XSI's material system anyways.
Upon clicking Manage Materials... a null named MSHMaterials will be created. All materials created through the script will be properties of this null.
Some 'rules':
  • At least one material has to be created, even if you just export nulls(I believe the Pandemic Exporter always exports Scene_Material).
  • More than one UV/weight/vertex color cluster isnt supported(yet).
  • Collision primitives have to be named: 'p_' + primitive type('cube', 'cylinder', 'sphere'). In between you can write a book if you want, the first two just have to be 'p_' and the type has to appear somewhere in the name. I didnt test them ingame yet, thats your job. ;)
  • If you experience an error(red popup at the bottom of the screen) report it(click the button with the scroll on it and copy the red text) and 'restart' the dialog to get non-broken functions working again.
  • Use the complete texture name(ie: example.tga).
  • Dont install an expansion where the templates are already in ...\XSIZETools\Resources\Templates.
When I come back from vacation Ill do some more general polishing and 'error catching' to make exporting as smooth as possible before I start any more features.
And thanks for making this a sticky, Ace! :)
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: XSI ZETools

Post by AceMastermind »

OK, it works fine, I just didn't understand the new material process.

Steps to repro working test example:
  • Get>Primitive>Polygon Mesh>Cube
    ZE Tools>Manage Materials...
    • Click on Create Material
      with the cube selected click on Assign Material to Selection.
      If you already know which texture you're going to use click on Edit Material
      type in the texture name with extension beside the Texture input field and press Enter.
      Close both property pages.
    *The next steps can be done more than one way*
    • With the cube selected press 7 to open the Render Tree.
      Go to Nodes>Texture>Image
      Connect the Image node to the diffuse port of the Phong material node
      Double click the Image node to open the PPG
      • Click on New then New from File and browse to your texture.
        Assign a texture projection from the same Image node PPG- New>Cubic
    Switch viewport display to Textured Decal.
    Edit the UVs in the Texture Editor(alt+7) if you need to.
    Freeze the object.
    ZE Tools>Export .MSH...
    • Click the browse button then select a save destination and type a name for your msh
      Enable Global Bounding Box is ticked by default, you may untick this and press Export now
      or leave it ticked and press Pick BBox Model and just select the cube object then Export.
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 »

I only see ZETools, Help, and Manage Expansions. :/ Where do I find the materials prompt?


EDIT:

Ohh, I accidentally installed version 0.9. :?
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 »

I cant get my ZE tools working. I believe I have python fully functional now, but in softimage mod tool im getting this error:
Hidden/Spoiler:
[code]Invalid Syntax - [line 70 in C:\users\username\autodesk\softimage_mod_tool_7.5\addons\XSIZETools\applications\plugins\XSIZETools.py][/code]
As for python I doubt thats the problem if im getting that. Any Ideas?

EDIT: my OS is vista, and this is the code for line 70:
Hidden/Spoiler:
[code]with open(str(addonpath + "\\XSIZETools\\Resources\\Templates\\templates.tcnt"), "r") as templateFile: [/code] There is a dash I cant highlight before [code]with open(str[/code]
There is a dash before it that I cant seem to higlight. I did NOT edit it in any way, only to copy that line.
User avatar
Unlucky13
Sergeant Major
Sergeant Major
Posts: 239
Joined: Mon Jan 24, 2011 11:11 am
Projects :: Models models models
Games I'm Playing :: Random stuff

Re: XSI ZETools

Post by Unlucky13 »

You have to copy the file to "username\autodesk\softimage_mod_tool_7.5\addons" also.
Post Reply