fehaar / FFWD

This is the FFWD framework for XNA, that allows you to port Unity3D games to XNA for use on WP7 or XBox360 (XBLIG)
Microsoft Public License
133 stars 36 forks source link

Getting Started docs , Blue xna screen #32

Open masterrey opened 12 years ago

masterrey commented 12 years ago

After I tried "Getting Started docs" it compile without errors, but do not show the rotating cube only the xna blue blank screen.

Did I miss something?

Thanks

Elideb commented 12 years ago

Are you using the latest version of the template? You should at least see some debug information on screen. The most important detail is the Body count. If it says there is at least one body, you should have a look at issue 3 from the template.

If the body count is zero, you should make sure you have added all the XML files (Scenes/logo.xml, processed by the FFWD SceneProcessor, and Cube.xml) to the XmlContent project. Also, make sure that logo.xml contains the element "Cube" with the script and the transform.

Elideb commented 12 years ago

Hey, masterrey

Did you manage to fix the problem?

masterrey commented 12 years ago

Not yet , i try everything , i still get the blue screen with 0 body counts.

maconbot commented 12 years ago

can you try to open the XNA project in Tests>FFWD.Unity.Tests and run that and let us know if you still do not see anything. I'm just trying to narrow down the problem for you.

masterrey commented 12 years ago

thats is exactly what im doing. But i have realized im working with visual studio express 2010 for windows phone. There a problem with this?

maconbot commented 12 years ago

I figured that might be what you were doing as I stumbled upon that issue accidently myself. Did you perchance remove any of the Scenes in FFWD.Unity.TestsContent>Scenes? I had deleted them trying to get SkinnedAnimation.xml to load on my xbox and to load first. Look at your code in Game1.cs and play with the load order:

levelQueue.Enqueue("SkinnedAnimation"); levelQueue.Enqueue("BasicRendering"); levelQueue.Enqueue("Lightmap");

is what I changed mine to, also you will want to re-add the .xml scenes, if you deleted them redownload the framework :-)

basically the blue screen is one of the above levelQueue's trying to load a scene that does not exist.

yankee-racers commented 12 years ago

Hi guys. I'm having the same problem. In Unity, I see a dark blue background with a spinning cube. On XNA I see the cornflower blue screen with some debug information. I limited the build to x86. The window title is FFWD.Unity.Tests. It says-- Loading: Logo Draw Stats: (everything here is 0) GetWorst(): null 0

There is a few other things but I don't know if you need them. Let me know if you have any ideas for a next step to take to troubleshoot this.

maconbot commented 12 years ago

Did you do this step?

For the scene, set the Content Processor to FFWD - Scene processor. You may need to try and compile the project at least once for this option to appear.

yankee-racers commented 12 years ago

Well, I'm not 100% clear on what is meant by 'scene'. In the FFWD.Template.XmlContent project I have four XML files; Cube.xml, LayerNames.xml, Logo.xml, & TextureRendererIndexes.xml. I set the Content Processor to FFWD - Scene processor for the Logo.xml file and all the others are set on No Processing Required.

maconbot commented 12 years ago

...and Logo.xml is in the Scenes folder? Check that it has 98 lines of xml in there. Also you placed Spin.cs in FFWD.Template.Scripts? Also to clarify these are place in the VS folders and not just in the Windows Explorer folders.

Let's also check that your Cube.xml has 21 lines of XML data in it.

Lastly did you receive any errors, either when exporting to XNA from Unity or when trying to debug in XNA. When debugging in XNA it run through 3 different attempts at deployment. The XBOX the W7 phone and then Windows. I am curious if you are seeing the blue screen in all deployments. Hoping that something simple was missed. I only saw the blue screen for a while but finally by retracing my steps I found I had some errors and once I did the process with no errors it all worked.

Good luck!

yankee-racers commented 12 years ago

That's it!! Logo.xml was not in a Scenes folder in the Solution Explorer. There were no folders in the FFWD.Templates.XmlContent project, so I tried to create a new one and name it Scenes, but it said a folder with that name already existed there. I was a bit confused about what to do next, but I went to the FFWD.Template.XmlContent folder on my harddrive and just dragged and dropped the Scenes folder from that location to the FFWD.Template.XmlContent project in the Solution Explorer and the Scenes folder appeared. Everything works now!

Thank you for taking the time...

maconbot commented 12 years ago

Glad to here!

You may want to drop a note in the suggested revisions to documentation here: https://github.com/fehaar/FFWD/issues/29