sq / JSIL

CIL to Javascript Compiler
http://jsil.org/
Other
1.73k stars 242 forks source link

Not an issue, a question #944

Open ghost opened 8 years ago

ghost commented 8 years ago

Unhandled exception at http://localhost/devbox/jsil/thhd/JSIL/lib/XNA/Content.js line 47: Uncaught Microsoft.Xna.Framework.Content.ContentLoadException: The asset 'thunderhead_font_01' is not in the asset manifest.

how do i register the asset manifest?

ghost commented 8 years ago

this is my jsilconfig:

var jsilConfig = { printStackTrace: false, webgl2d: true, xna: 4, readOnlyStorage: true, localStorage: true, manifests: [ "Thunderhead.exe", "Content/ThunderheadContent.contentproj" ],

    showProgressBar: true,
    showStats: true,

    scriptRoot: "",
    libraryRoot: "JSIL/lib/",
    fileRoot: "",
    contentRoot: "Content/"
  };
kg commented 8 years ago

The manifest is produced when JSILc compiles your game. Make sure you compiled the solution file, not the exe file.

ghost commented 8 years ago

when i compile the solution file, i get msbuild errors, though it builds fine in VS2015 Community.

ghost commented 8 years ago

C:\Program Files (x86)\MSBuild\Microsoft\XNA Game Studio\v4.0\Microsoft.Xna.GameStudio.ContentPipeline.targets(78,5): error MSB4062: The "BuildContent" task could not be loaded from the assembly Microsoft.Xna.Framework.Content.Pipeline, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553. Could not load file or assembly 'Microsoft.Xna.Framework.Content.Pipeline, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

ghost commented 8 years ago

What can i run on JSIL other than XNA? are Winforms/System.Drawing applications supported?

kg commented 8 years ago

There's rough support for cross-compiling the FNA framework and using an emscripten-compiled version of SDL2: https://github.com/sq/SampleFNA That will provide most of what you would get out of using the regular XNA framework (and in fact, provides more functionality than the old XNA support does). But it's not completely ready for primetime...