Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xna 1.0 conversion failed #12

Open
Beyley opened this issue Dec 12, 2020 · 1 comment
Open

Xna 1.0 conversion failed #12

Beyley opened this issue Dec 12, 2020 · 1 comment

Comments

@Beyley
Copy link

Beyley commented Dec 12, 2020

Attempting to convert the files from the 2007 version of the rhythm game osu! causes an error to happen (it uses Xna 1.0 according to the version in the Xna binary dnSpy-x86_X21KIEc0kI ), and when attempting to convert an xnb file from it, it spits out an error

C:\Users\Ep1c_M1n10n\Downloads\Alba.XnaConvert.0.1.2>Alba.XnaConvert.exe convert -v 1.0 -i star.xnb -o star.png
Loading content loader for 'XNA' with version '1.0'...
Unexpected error!
The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.  1) The method call is invalid.  Resulting in: An exception occurred while trying to create an instance of type 'Alba.XnaConvert.Loader.Xna10.ContentService'.  Resulting in: Cannot activate part 'Alba.XnaConvert.Loader.Xna10.ContentService'. Element: Alba.XnaConvert.Loader.Xna10.ContentService -->  Alba.XnaConvert.Loader.Xna10.ContentService -->  DirectoryCatalog (Path=".")  Resulting in: Cannot get export 'Alba.XnaConvert.Loader.Xna10.ContentService (ContractName="Alba.XnaConvert.Common.IContentService")' from part 'Alba.XnaConvert.Loader.Xna10.ContentService'. Element: Alba.XnaConvert.Loader.Xna10.ContentService (ContractName="Alba.XnaConvert.Common.IContentService") -->  Alba.XnaConvert.Loader.Xna10.ContentService -->  DirectoryCatalog (Path=".")  (1: An exception occurred while trying to create an instance of type 'Alba.XnaConvert.Loader.Xna10.ContentService'. The method call is invalid.)
Detailed exception information:
System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

1) The method call is invalid.

Resulting in: An exception occurred while trying to create an instance of type 'Alba.XnaConvert.Loader.Xna10.ContentService'.

Resulting in: Cannot activate part 'Alba.XnaConvert.Loader.Xna10.ContentService'.
Element: Alba.XnaConvert.Loader.Xna10.ContentService -->  Alba.XnaConvert.Loader.Xna10.ContentService -->  DirectoryCatalog (Path=".")

Resulting in: Cannot get export 'Alba.XnaConvert.Loader.Xna10.ContentService (ContractName="Alba.XnaConvert.Common.IContentService")' from part 'Alba.XnaConvert.Loader.Xna10.ContentService'.
Element: Alba.XnaConvert.Loader.Xna10.ContentService (ContractName="Alba.XnaConvert.Common.IContentService") -->  Alba.XnaConvert.Loader.Xna10.ContentService -->  DirectoryCatalog (Path=".")

   at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition)
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart)
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()
   at System.ComponentModel.Composition.Primitives.Export.get_Value()
   at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export)
   at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass11_0`2.<CreateStronglyTypedLazyOfTM>b__1()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Alba.XnaConvert.Program.GetContentService(String name, String version)
   at Alba.XnaConvert.Program.RunConvertVerb(ConvertSubOptions options)
   at Alba.XnaConvert.Program.MainInternal(String[] args)
   at Alba.XnaConvert.Program.Main(String[] args)
@eeriesymphony
Copy link

im having the same problem :( please help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants