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

Misleading error message when given a zero-sized zone #10

Closed
walksanatora opened this issue Mar 7, 2024 · 2 comments
Closed

Misleading error message when given a zero-sized zone #10

walksanatora opened this issue Mar 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@walksanatora
Copy link

 INFO  region_scanner > Starting to scan dimension: minecraft:overworld, at /home/walksanator/.local/share/PrismLauncher/instances/Hextest-1.0.0/.minecraft/saves/New World/region.
The application panicked (crashed).
Message:  Was unable to find a single chunk in a single region in the zone provided that was readable!
Location: src/lib.rs:114

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

if I try to download repo and cargo update it still fails after re-compiling

@walksanatora
Copy link
Author

I am running with region_scanner --path $PWD/New\ World --dims "minecraft:overworld" --zone -2 -2 2 2 and if I ls New\ World/region I get

r.0.0.mca  r.0.-1.mca  r.0.1.mca  r.0.-2.mca  r.-1.0.mca  r.1.0.mca  r.-1.-1.mca  r.-1.1.mca  r.1.-1.mca  r.1.1.mca  r.-1.-2.mca  r.1.-2.mca  r.2.0.mca  r.2.-1.mca  r.2.1.mca  r.2.-2.mc

@RundownRhino
Copy link
Owner

RundownRhino commented Mar 8, 2024

Not technically a bug - it can't find any chunks in this zone because your zone specification is zero-sized; the format is <FROM_X> <TO_X> <FROM_Z> <TO_Z>, so you probably want -2 2 -2 2 (which would be 4 by 4 regions). That said, the error message emitted here is indeed quite bad; it should instead refuse to work when given a zero-sized zone.

@RundownRhino RundownRhino added the enhancement New feature or request label Mar 8, 2024
@RundownRhino RundownRhino changed the title trying to run on 1.20.1 worlds fails Misleading error message when given a zero-sized zone Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants