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

Dialog box to find beat saber directory won't let me select folder. #442

Open
debterr opened this issue Feb 1, 2022 · 4 comments
Open

Comments

@debterr
Copy link

debterr commented Feb 1, 2022

Steps to reproduce

  1. Not have Oculus folder on C Drive
  2. Open Mod Assistant.exe
  3. Get Could not detect error - "Could not detect your Beat Saber install folder. Please select it manually."
  4. Hit "OK" button
  5. Directory Finder pops up, however the save type won't let you select a folder instead its looking for a file with the extension .this.directory (See Picture)

with the correct directory selected its only giving me the option to open the folder rather then letting me select the folder.

image

@Assistant
Copy link
Collaborator

You need to be inside the directory, not have it selected.
The reason it looks for a file called select.this.directory and not a folder is because for whatever reason the framework only lets you use the the old style of chooser dialog for that, which is harder to use and navigate, so MA uses a hack with the save file dialog instead.
Y5zXQ

@sync1211
Copy link

sync1211 commented Feb 2, 2022

There is a NuGet package which provides an alternative dialog for folder selection (CommonOpenFileDialog).

Alternatively there is also an open-source implementation of these Vista-Dialogs.

However I am not sure if it makes sense to add a new dependency just because of one dialog.

@Assistant
Copy link
Collaborator

Thanks for the suggestions, however MA can't use dependencies that would build into a separate file.

@debterr
Copy link
Author

debterr commented Feb 2, 2022

Okay I got it to work by going inside the folder and hitting save.. just seems to go against what the prompts ask you to do, might be nice to put something in there that informs you to not just select the folder, but to go inside the folder?

Appreciate your help on this however! Also maybe something that can be done, if we put MA in the hyperbolic-magnetism-beat-saber folder can it look to see if its in that folder first? Might be easier then dealing with the dialogue, since the user already has to figure out where their folder is?

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

3 participants