SouLDragooN

I have been looking but have not found information on the deployment process as it applies to my app. I have a Media folder in my project in Visual Studio Express.. It has many subfolders. The texture, Shader, and Sounds all get exported to the "deploy" folder automatically and get deployed to the xbox.

However, here is my problem.
All my other folders custom mesh format folder(binary), Skeletal structures folder(binary), and XML settings files in sub folders get completely ignored on compile and export. (When The process puts the files into the deployment folder (at compile time) and also ignored when sent to the XBOX. )

What am I doing wrong All the files are in the project but anything that is not turned XMB gets ignored... so no go ...

Thank you for any help.



Re: XNA Game Studio Express Deployment and XML Content

daCrazyNinja

How did you deploy an existing project to the Xbox I have no problems deploying projects created after I specified the Xbox key. On the other hand, I cannot get the config manager to deploy old projects to the Xbox. The only output is x86 .

I did change the compile settings to XBOX:XBOX360, to no avail...

thanks




Re: XNA Game Studio Express Deployment and XML Content

SouLDragooN

I actually went through the painful task of creating a new 360 project.

I have 2 projects 1 for PC 1 for 360.. a batch file copies the pc files into the 360s project.

Then manually added the files to the 360 project with a very few

#if XBOX
#else
#endif

Not pretty but the only method I could find.. and having a PC version is a must for me..


I still cannot get all of my files to the xbox I did find in the properties Copy if newer.. that copies it to the output folders but not the xbox.../aggrivated =)

Hope I could help...and I am sure there is a better solution...





Re: XNA Game Studio Express Deployment and XML Content

Jim Perry

Are the non-content pipeline files marked as content and the Copy to Output Directory set to one of the Copy... options

edit: Hmm, you posted just as I did.  I'm not sure why the files wouldn't get moved over to the 360 as I haven't tried it yet.






Re: XNA Game Studio Express Deployment and XML Content

SouLDragooN

Build Action: Content
Copy if newer is set

I still do not see them going over to the box..




Re: XNA Game Studio Express Deployment and XML Content

daCrazyNinja

SoulDragoon, thanks a lot for the reply! Sounds like a lot of manual work! The official MS tut for deployment at http://msdn2.microsoft.com/en-us/library/bb197292.aspx is not clear on that matter.

There has to be an easy way to do this...




Re: XNA Game Studio Express Deployment and XML Content

SouLDragooN

Sadly so far I am dead in the water.. I just cannot find any information on deploying files beyond just the xnb files..strange thing is the example deploys a settings xml file.. it is located in the root.. I hope I do not have to make a mess of things and drop all my xml in the root.. that would be terrible..


As far as the manual work above, it took about 30 minutes but now it is all automated and allows me to debug quickly on the PC which is nice.. then just deal with cross platform bugs with the length deploy test methods... pretty much a bane always even back when I was working on xbox dev kits... pretty much the same as far as pushing new items to the box...







Re: XNA Game Studio Express Deployment and XML Content

Jim Perry

You should probably report this.




Re: XNA Game Studio Express Deployment and XML Content

Stephen Styrchak - MSFT

Is the XML file being copied to the output directory (eg, MyProject\Xbox 360\bin\Debug\) Everything in the output directory, except PDB files, will be deployed to the Xbox 360.

You can see which files were considered for deployment in the Output Window (show output from Build, not Debug).

If incremental deploy thinks your project is up to date and it is not, you can try the following:

1. Set the XML file to "copy always".

2. Close the solution.

3. Reopen the solution.

4. Rebuild solution.

5. Deploy.

After that, set the property back to "copy if newer".

Hope that helps. Basically, make sure that any files you want to deploy are copied to the project output directory. The directory structure is preserved.

--Stephen





Re: XNA Game Studio Express Deployment and XML Content

SouLDragooN

Thank you so much for the reply I am going to give it a shot and report back.. I am in the middle of restructuring my media folders...









Re: XNA Game Studio Express Deployment and XML Content

SouLDragooN

Ok, I restructured my directories...

and got

Error 1 Error 103 : The file or directory name you specified is too long. Maximum file or directory name length is 40 characters. 0 0

But it DID deploy any XML files I had in the root content folder...

I am going to make a mess of it now and dump all my non XNB files in the root and see how it handles that......

I do not have a folder or directory over 40 characters so I do not know why that error appears...





Re: XNA Game Studio Express Deployment and XML Content

SouLDragooN

I think it was the length of one of my file names it with the directory did hit 41 characters... wow that is small when you have a decent directory structure...

More later


thanks for the help





Re: XNA Game Studio Express Deployment and XML Content

Stephen Styrchak - MSFT

You can see the deployment details when you show the output window (select View | Output). If an error occurs like the one you saw about the filename being too long, it should show you which one it was.

I did not think that our entire path was limited to 41 characters. I'll have to double-check that.

--Stephen





Re: XNA Game Studio Express Deployment and XML Content

SouLDragooN

The output window was the key I do think it was the 40 character limit on a really long filename I had missed it spelled it out there... dumb of me not to look there.. thank you





Re: XNA Game Studio Express Deployment and XML Content

SouLDragooN

Just to close this off for future readers. I should have taken a step back and looked into that error earlier.. It was a file with more then 40 characters. The output window lists all the files being moved over to the 360. Very helpful. I had the error window pop up because of the 40+ char filename. One of those embarrising bloopers. Hopefully this helps someone else someday.

Thanks Stephen!