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

Do not clear archive bit on Nintendo folder #15

Closed
rajkosto opened this issue Jun 24, 2018 · 15 comments
Labels
bug

Comments

@rajkosto
Copy link
Contributor

@rajkosto rajkosto commented Jun 24, 2018

Pretty self explanatory, horizon expects the archive bit to be set on nca folders, part files and savedata, so it'd be best not to clear it on Nintendo folder or anything inside.

@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jun 24, 2018

Last time I had them, switch could not load any file at all.
In album? No photo/video shows up.
In ncas? Games asking for update and game sizes show up as 0MB.
In save? Game list shows cloud icon to every digital purchase.
Everything? Shows message that the sd card is corrupt.

This was in 3.0.2 and the last time I checked it.
If this is fixed in later version, I would still like to keep it as a quick fix for old versions.

Except if there's really a reason to keep them. Horizon expecting them is not enough.
What are the checks and the possible paths it takes?

Additionally, the sd card is expected to be used, backed up and migrated in a PC (and commonly in Windows which manipulate this bit).

EDIT:
I can see them in some updated files in my 5.0.2 system.
But still this does not make them mandatory (all other files in nintendo folder without it work correctly).

@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jun 26, 2018

@rajkosto
Any insight on what horizon does?

What are the checks and the possible paths it takes?

@CTCaer CTCaer added the wontfix label Jul 1, 2018
@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jul 1, 2018

Closing for now.

@rajkosto
Please feel free to reopen this if you want to add more info about this.

@CTCaer CTCaer closed this Jul 1, 2018
@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jul 2, 2018

#25

@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jul 2, 2018

@austin5623
What is your switch system version?
The games was downloaded from eshop?
Additionally, cart games with an update on sd card, also crashed?

@CTCaer CTCaer removed the wontfix label Jul 2, 2018
@DarkMatterCore

This comment has been minimized.

Copy link

@DarkMatterCore DarkMatterCore commented Jul 2, 2018

I can confirm that the same problem experienced by @austin5623 happened to me. My Switch is on 5.1.0, using a 32 GB micro SD card with exFAT format. My only game card title (Super Mario Odyssey) also failed to launch. I wasn't able to reproduce any kind of crash/kernel panic, though; just some simple launch errors that didn't trigger a reboot.

I managed to fix the problem by removing all attributes from all files and folders, and then adding just the archive bit to everything. Something like this:

cd /D X:
attrib -A -R -S -H /S /D
attrib +A /S /D

Is there a reason to remove the archive bit? I got into the party after 5.0.0 was already released, so... yeah.

@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jul 2, 2018

@DarkMatterCore
What were the simple errors?

This still puzzles me. I have a healthy catalog of carts and eshop games and with the archive bit cleared they still work correctly (5.0.2).

I'm between having it used only on "switch" folder or removing it completely (the latter would be preferable for me, shaves some fat from the payload).

@DarkMatterCore

This comment has been minimized.

Copy link

@DarkMatterCore DarkMatterCore commented Jul 2, 2018

Something along the lines of "This software couldn't be launched". No error code displayed at all.

@DarkMatterCore

This comment has been minimized.

Copy link

@DarkMatterCore DarkMatterCore commented Jul 2, 2018

@CTCaer I agree on removing the option altogether. If it works for some and doesn't for others, it isn't right to call it a fix in the first place. Some other people in GBAtemp have reported the same problem. Quite frankly, it's even better if it gets you additional free space to play with.

A disclaimer + an explanation in user guides should be enough, at least from my perspective.

@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jul 2, 2018

I agree with "If it works for some and doesn't for others, it isn't right to call it a fix in the first place.", in the sense that this should have a specific name. (which will imply that you should not casually use it).

I really want to see why that happens though.
Gonna run it again and see if I have a game that fails.

Btw, these errors you saw, still create error reports. Can you check the numbers there?

@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jul 2, 2018

I just checked all my games. All.
12 carts and 38 digital. All worked. No error.
I also checked the BoTW mods and a new Mario odyssey mod with full Atmosphere, and they also didn't crash.

I hope that these errors don't come from injecting "backups" via LayeredFS or running other "backup" loading tools.
If that's the case, it should not be used with these. Simple as that.
And it's better to tell me if that's the case, so I can plan the future of this fix attribute tool and not lose my free time without a need.

@DarkMatterCore

This comment has been minimized.

Copy link

@DarkMatterCore DarkMatterCore commented Jul 2, 2018

If these errors are supposed to log some kind of info, then they aren't. They're a lot like the error screen that appears after dumping a game with gcdumptool and trying to launch the game card without ejecting and re-inserting it (a bug I'm currently looking into). That error screen doesn't log any info as well.

And no, I have never used LayeredFS. At all.

@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jul 2, 2018

I see. Hmm..
This tool had 2 original intentions.

  1. Remove archive bit from all files in Nintendo folder, to aid the migration of files from an old to a new sd card.
  2. Fix the homebrew not showing in hbmenu.

I'll probably limit it to the 2nd one.

@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jul 2, 2018

Ok, like you, I added the archive bit to everything.
Got 2016-0247. Unable to access microSD.

Then removed all of them and added them to individual folders and files.
Result was games crashing (missing update files) or completely missing (cloud icon).
Or with another folder, all games asking to update or redownload...

I still don't understand how we have completely opposite experiences on that matter.

@CTCaer

This comment has been minimized.

Copy link
Owner

@CTCaer CTCaer commented Jul 2, 2018

Let's make everyone happy:
d4731bb

If anyone finds out why setting or unsetting archive bit in Nintendo folder breaks things, please inform me.

@CTCaer CTCaer closed this Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.