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

Fix how the ROMs directory is found relative to the EXE #2

Open
Generic-Name-Here opened this issue Jun 8, 2022 · 4 comments
Open

Comments

@Generic-Name-Here
Copy link

Generic-Name-Here commented Jun 8, 2022

Howdy, I got a US Mario Sunshine rom in the roms folder with the correct name and format and I get the following error when trying to run the rip_super_mario_sunshine batch file, I've tried with both builds from the releases tab and from the code button.

**G:\Programs\FinModelUtility v0.2>tools\universal_model_extractor\universal_model_extractor.exe super_mario_sunshine
Unhandled exception. System.TypeInitializationException: The type initializer for 'uni.platforms.DirectoryConstants' threw an exception.
---> System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.Single[TSource](IEnumerable1 source) at uni.platforms.DirectoryConstants..cctor() in R:\Documents\CSharpWorkspace\Pikmin2Utility\FinModelUtility\UniversalModelExtractor\src\platforms\DirectoryConstants.cs:line 8 --- End of inner exception stack trace --- at uni.games.super_mario_sunshine.SuperMarioSunshineExtractor.ExtractAll() in R:\Documents\CSharpWorkspace\Pikmin2Utility\FinModelUtility\UniversalModelExtractor\src\games\super_mario_sunshine\SuperMarioSunshineExtractor.cs:line 22 at uni.cli.Cli.<>c.<Main>b__0_11(SuperMarioSunshineOptions _) in R:\Documents\CSharpWorkspace\Pikmin2Utility\FinModelUtility\UniversalModelExtractor\src\cli\Cli.cs:line 77 at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult1 result, Action`1 action)
at uni.cli.Cli.Main(String[] args) in R:\Documents\CSharpWorkspace\Pikmin2Utility\FinModelUtility\UniversalModelExtractor\src\cli\Cli.cs:line 26

G:\Programs\FinModelUtility v0.2>pause**

@MeltyPlayer
Copy link
Owner

MeltyPlayer commented Jun 8, 2022

Hello, thanks for filing this bug! This is a known issue with version 0.2—can you try downloading the project via the green button and “Download ZIP” option in the “Code” tab instead?

@Generic-Name-Here
Copy link
Author

Hello, you caught me just as I was about to edit the issue to mention the fact that I've tried both builds from Releases and the Code button ^^

@Generic-Name-Here
Copy link
Author

Generic-Name-Here commented Jun 8, 2022

I've got it working now, I originally tried v0.2 then downloaded the project and just overwrited the v0.2 files, this time I extracted to it's own folder. So it was just me being a bit silly lol.

Thank you for taking the time to respond ^^

@MeltyPlayer
Copy link
Owner

No problem, glad you got it working!

@MeltyPlayer MeltyPlayer reopened this Nov 27, 2022
@MeltyPlayer MeltyPlayer changed the title Unhandled exception when dumping Super Mario Sunshine. Fix how the ROMs directory is found relative to the EXE Nov 27, 2022
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