EckythumpPaul

Hi

I've written my first simple XNA Xbox project, simply draws a triangle and applies an effect. When I deploy to the XBOX and debug, I get file not found on my effect file.

The file is stored in a folder called Content then FX, file called myfirsttest.fx

I load it using this command and get file not found

myFirstFX= content.Load<Effect>(@"content\FX\myfirsttest");

I've tried every combination I can think of, still says file not found everytime.

Actual error :-

Additional information: Error loading "content\FX\myfirsttest". File not found.

Help!!!



Re: XNA Game Studio Express XBOX deploy - content issue

TD Scripts

Under your content check the properties and see if it's set to "do not copy" -- change this
to "change if newer" and retry.




Re: XNA Game Studio Express XBOX deploy - content issue

Jim Perry

You don't need to do that with content pipeline assets, it's done automatically.

As for the OP - are you sure the asset name is correct






Re: XNA Game Studio Express XBOX deploy - content issue

Sidener

I think there is a bug I had similar problems. I had graphics files under a folder graphics and it would always say file not found. Then I moved the files under the main with all my .cs files and then it worked fine (just dragged them out). After I ran it once I was able to drag them back to the sub folder and they still worked (weird).

You do not need the @ and the name should be the name of the asset in the property box.
This has been changed from the beta version.

myFirstFX= content.Load<Effect>("myfirsttest");






Re: XNA Game Studio Express XBOX deploy - content issue

EckythumpPaul

Thanks for all your hints, I'm at work so can't try these right now, but will when I get home.

mmm wonder if my company would mind if I had an xbox on my desk :-)





Re: XNA Game Studio Express XBOX deploy - content issue

Decoye

Hey,

it should look like this -> myFirstFX= content.Load<Effect>(@".\content\FX\myfirsttest");

you need to have a . and a \ infront of every new folder...





Re: XNA Game Studio Express XBOX deploy - content issue

Stephen Styrchak - MSFT

The Output Window gives details about which files have been deployed. If you want to be sure that file has been sent to your console, select View | Output from the menu, then Build | Deploy Solution.

Because deployment is done incrementally, it may skip a bunch of files. To get information about all files by forcing a full deployment, close and reopen the project, then deploy again.

The output window will show you something like this (exerpt):

------ Deploy started: Project: Xbox360Game4, Configuration: Debug Xbox 360 ------

Deploying to MyXbox...

Deleted Xbox360Game4 (9a880a10b7564c8c82116be9e04c3030) on MyXbox

Deploying file D:\My Projects\Xbox360Game4\Xbox360Game4\bin\Xbox 360\Debug\Xbox360Game4.exe ==> Xbox360Game4.exe

The name on the right-hand-side of the arrow (==>) will show the relative path of the files deployed on the console. Relative to the game root, that is.

Hopefully that helps you find where your file landed.

--Stephen





Re: XNA Game Studio Express XBOX deploy - content issue

ProfEclipse

You don't need the ".\" in front. All relative paths are relative to the executable's folder. ".\content" and "content" are identical.