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

Invalid Save Directory error for zipped games (Wii) #2668

Closed
VannevarKush opened this issue Oct 30, 2021 · 12 comments
Closed

Invalid Save Directory error for zipped games (Wii) #2668

VannevarKush opened this issue Oct 30, 2021 · 12 comments

Comments

@VannevarKush
Copy link

VannevarKush commented Oct 30, 2021

Name of the game: All games that I tested
Player platform: Wii
Screenshot of issue: https://i.imgur.com/Ny9bS77.png
Describe the issue in detail and how to reproduce it:

Any zipped game I launch in EasyRPG Player for Wii, 0.7.0 or from the continuous build, will give me the above error message when I try to launch a game that is in a zip file: ("Invalid save directory sd:/apps/[easyRPG directory]/[game name].zip.save")

If I create the missing folder that is mentioned in the error, for example "311.zip.save", the game launches and runs nicely. However when I manually create the save directory, that game is now listed twice in the game list, once for the zipped game and once for the save folder (which does not actually contain a game.)

I'm excited for this zip support feature because a large library takes up much less space on an SD card (even without compression, due to the many small files). I'd be glad to help test it!!

@fdelapena fdelapena added the Wii label Oct 30, 2021
@fdelapena fdelapena added this to the 0.7.1 milestone Oct 30, 2021
@Ghabry
Copy link
Member

Ghabry commented Oct 30, 2021

No idea why create directory fails and ".save" folders are not filtered for you in the game browser 🤔

Though we also never tested this feature on the Wii 😅

Thanks for the report

@Ghabry
Copy link
Member

Ghabry commented Oct 30, 2021

Btw @VannevarKush you have a nice collection of games it seems!
Could you provide us with a list of all games you have? Maybe you have some that cannot be found on the internet anymore (we are collecting lost games and put them on www.rmarchiv.de :))

@VannevarKush
Copy link
Author

VannevarKush commented Oct 30, 2021

No problem, here is the full list:

https://docs.google.com/document/d/1fXeqBpi9abjWddLGphybNh1VLdsgWeXwNO-IyG8KdG0/edit?usp=sharing

About a year ago I went on a deep dive downloading all the RPG Maker 2K/2K3 content I could find. My list should have most of the English language contents of www.rmarchiv.de, it's an awesome site, by the way! Lots of RPG Maker games that I didn't see anywhere else :)

I'd be happy to work with you to archive anything you don't already have. So, hopefully I'll have a few things to contribute!

@Ghabry
Copy link
Member

Ghabry commented Oct 30, 2021

Thanks but you set the sharing settings wrong. Cannot access the document.

@VannevarKush
Copy link
Author

My mistake, it should be fixed

@Ghabry
Copy link
Member

Ghabry commented Nov 1, 2021

In Dolphin Emu launching ZIPs works fine so this must be a problem with the absolute path that contains "sd:/"

@carstene1ns
Copy link
Member

@VannevarKush: How do you launch the player? through hbc or some other loader? (e.g. wiiflow)
I remember libfat had problems then.

@Ghabry
Copy link
Member

Ghabry commented Nov 1, 2021

My educated guess is the following: The Make Directory is recursive by going from the lowest path to the highest:

First it will check whether "sd:" is a directory. If this returns false it will try to create a directory with this name and if this fails then the algorithm aborts. Could be a similiar problem on PSVita.

One could try checking if the first component ends on a ":" and simply skip it.

@VannevarKush
Copy link
Author

@VannevarKush: How do you launch the player? through hbc or some other loader? (e.g. wiiflow) I remember libfat had problems then.

I'm launching the player via HBC. I should also add that I'm running it in the vWii on a Wii U.

@Ghabry
Copy link
Member

Ghabry commented Nov 2, 2021

@VannevarKush

Could you test if this build fixes the problem for you? https://ci.easyrpg.org/job/player-wii-pr/3380/

@Ghabry Ghabry added the Needs feedback Waiting for the issue author to give further information. label Nov 2, 2021
@VannevarKush
Copy link
Author

@VannevarKush

Could you test if this build fixes the problem for you? https://ci.easyrpg.org/job/player-wii-pr/3380/

I've tested the build and it's working great so far! Games are launching normally and the error message is gone. Saving and loading also seems to be working fine. Finally, the save directories are filtered out on the main menu.

Now I can save about 30 gigs on my SD card :) Thanks for looking into this, and feel free to get in touch about that list of games if it's of interest!

@carstene1ns carstene1ns removed the Needs feedback Waiting for the issue author to give further information. label Nov 3, 2021
@carstene1ns
Copy link
Member

Thank you for testing!

Ghabry added a commit to Ghabry/easyrpg-player that referenced this issue Nov 23, 2021
Workaround for a problem when the working directory is accessed on PS Vita or Wii

Fix EasyRPG#2682
Fix EasyRPG#2668
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants