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

Couple of updates #7

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Couple of updates #7

wants to merge 9 commits into from

Conversation

Lanjelin
Copy link

@Lanjelin Lanjelin commented Sep 8, 2022

Added support for folder structure via -t-argument to resolve #6

Forced the page length to 135, longer or shorter seems to always fail. This should fix #5
Skipping anything after, padding zeroes where shorter. I've had success with generating working .nfc-files after this fix, where it previously failed. The .bins I've imported in Ally that was shorter, is also 135 pages (appended zeroes at end) when written to NTAG215 and read by flipper, so it seems Ally also does something like this.
Edit: NTAG capacity is 540 bytes (135pages), so I suppose this is why the larger files fail.

Updated README.md to reflect on how the script is actually run, resolves #2

Some minor tweaks and adjustments in text.

If you want to test for the page length, look for .bin-files that differs from 540bytes, so far I've seen 572bytes and 532bytes.
Look in the folders of PowerUpBands, Power Pros, Mario Sports Superstars - Golf and Soccer, Box Boy, Diablo, and some of the files in Super Smash Bros -if you're sitting on the same .bins as me. I've testet most of them in BOTW on my Switch.

`if os.path.isfile(path):` will always return false, unless given `new_path`
Skipping anything after, padding zeroes where shorter.
Anything but 135 pages seems to fail when emulated by flipper
To keep the same folder structure of input-folder in output-folder,
add the argument -t to your run command
bugfix path handling output_path/new_output_path
We're writing to a .nfc-file, not a .bin-file
referencing error when not using -t
Added some simple instruction to how the script is actually run.
Output directory was attempted made in single file mode,
moved this to ecursive directory mode
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

Successfully merging this pull request may close these issues.

Copy directory structure PWD and PACK Heads up / docs need updating.
1 participant