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.
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.
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.
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.
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.
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.
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. 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).
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!
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.
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.