PDA

View Full Version : Consolidate images and FX files


HappyHombre
07-27-2008, 09:05 AM
I'm running the XNA addon with XSI 6.5 Essentials on Vista x64. I'm attempting to publish a skinned model to my XNA project. When I try to "Consolidate images and FX files" I get the error: "Error: failed to copy image File: Path not found". I then open up File > External Files and I can see that all my textures have paths relative to my XSI project's pictures directory (where the textures are stored). When I try to manually rename the relative paths to their absolute paths it appears as though XSI doesn't want me to use the absolute paths because it keeps the relative paths. I'm pretty sure this is what's causing the error when I "Consolidate images and FX files". Any ideas?

jentzenmooney
09-28-2008, 02:18 AM
HappyHombre,
Just to make sure, before you started working did you create an XNA project for XSI using the XNA tools inside XSI?
What I would recommend is exporting your models from the current scene you are working from. Start an XNA project using the XNA tools. Connect to that project.
Once you have done this save your scene. Then import the exported models from your original scene. When you save your scene as copy your external file to the current project using the option when saving.. all should be well let me know how it goes.. I hope I explained this well.
/J

HappyHombre
09-28-2008, 08:23 AM
Didn't work. I'm still getting the same error: "Error: failed to copy image File: Path not found". I'm working from the XSI scene saved to the Content directory under my XNA project. I think it's still the same problem. When I go to File > External Files and I can see that all my textures have paths relative to my XSI project's pictures directory (in the XSI project directory under my XNA project's content directory). It doesn't like the relative paths.

I've found a workaround though. If I create an XSI project external to my XNA project. Then save my scene to there and connect to my XNA project then it seems to work correctly.

Also I guess I could copy all my textures and shaders to the Content\Effects, and Content\Textures folders manually but that would defeat the purpose of performing the automatic consolidation.

jentzenmooney
09-28-2008, 12:38 PM
I am glad you got your project working..
I guess I did not discribe the process very well but what you did is what I was trying to suggest. Nice work.. Yes the absolute path needed. I will look into this.
It should be able to get the absolute path from active project for the open scene.