C:\Games\Minecraft Stuff\Minecraft-Region-Fixer-v0.0.6>region-fixer.exe --delete
-wrong-located C:\Games\mcserver\world\
Welcome to Region Fixer!
Scanning directory...
Warning: No region files found in the "region" directory!
Info: No nether dimension in the world directory.
There are 0 region files and 11 player files in the world directory.
#################### Scanning level.dat ####################
[WARNING!]: 'level.dat' is corrupted with the following error/s:
Unrecognised tag type
################## Scanning player files ###################
All player files are readable.
################## Scanning region files ###################
No region files to scan!
This is the error I get, I also get the same when using --delete -entities
I am using FTB server with Direwolf20 ModPack
OS Windows 7 x64
I have tried to manualy delete this using MCEdit but it wont go away.
I know there are a few corrupted chuncks and we have put a ton of H into this server
so please help me.
I know this prob has to do with region fixer not recognizing the level or the region files.
I tried what you posted earlier with telling it where to go and got this out of it.
You have downloaded a pretty old version of region-fixer! The version shown in your folder is 0.0.6 and that version doesn't even support anvil format (the current minecraft world format). Please go again to the downloads section and download the latest version v0.1.0.
This has happened before, so I have updated the mediafire folder to only have the latest versions and putted all the older versions in a folder called "Older versions". To tell you the truth I don't even know why I didn't this before. It was confusing as it was before.
Also, about the level.dat, thanks for uploading it ! I will look into it as soon as I get some time for it. I have seen this before in modded servers, so I would say that some modded servers change level.dat a lot.
You have downloaded a pretty old version of region-fixer! The version shown in your folder is 0.0.6 and that version doesn't even support anvil format (the current minecraft world format). Please go again to the downloads section and download the latest version v0.1.0.
This has happened before, so I have updated the mediafire folder to only have the latest versions and putted all the older versions in a folder called "Older versions". To tell you the truth I don't even know why I didn't this before. It was confusing as it was before.
Also, about the level.dat, thanks for uploading it ! I will look into it as soon as I get some time for it. I have seen this before in modded servers, so I would say that some modded servers change level.dat a lot.
Please, tell me if that works for you.
Thank you for answering so fast, I downloaded the newer version and it worked like a charm. After running the right commands I was able to start up the server again and log in. Its been up for almost 24 h now, I wanted to see if there were any complications but it looks great !
I do not normally donate, but this deserve a donation. Good job and thanks alot !
C:\Documents and Settings\Admin>C:\MCRF\region-fixer.exe --dc C:/world
Welcome to Region Fixer!
############################################################
################## Scanning world: world ###################
############################################################
Scanning directory...
Info: No nether dimension in the world directory.
Info: No end dimension in the world directory.
There are 1739 region files and 2495 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
------------------ Scanning the overworld ------------------
**********261 / 1739 15% [##### ] ETA: 00:11:45
*** Printint the child's Traceback:
*** Exception: <class 'struct.error'> unpack requires a string argument of lengt
h 4
**********
*** File scan.pyc, line 149, in scan_region_file
*** None
**********
*** File nbt\region.pyc, line 98, in __init__
*** None
**********
*** File nbt\region.pyc, line 119, in parse_header
*** None
**********
Traceback (most recent call last):
File "region-fixer.py", line 332, in <module>
File "region-fixer.py", line 257, in main
File "scan.pyc", line 109, in scan_world
File "scan.pyc", line 338, in scan_regionset
scan.ChildProcessException
I need help I seem to be getting this error using the 0.1.0 windows version
Currently there is a bug in Region Fixer that make impossible to scan these broken region files, the fix is WIP. If you want to finish the scan you can fix these problems yourself removing all the region files with a size less than 8KiB (and only these ones!). As I said before, these .mca files are not region files so you shouldn't be scared (but a backup is always good).
Currently there is a bug in Region Fixer that make impossible to scan these broken region files, the fix is WIP. If you want to finish the scan you can fix these problems yourself removing all the region files with a size less than 8KiB (and only these ones!). As I said before, these .mca files are not region files so you shouldn't be scared (but a backup is always good).
Please, tell me if that worked for you.
I had this identical issue. Did exactly what you said, fixed my issue and it completed the scan.
Whew!
But man it was not nice seeing that error after reaching 6800/9929.
Worst part is I ran the scan twice before searching for a solution!
############################################################
################## Scanning world: world ###################
############################################################
Scanning directory...
Info: No end dimension in the world directory.
There are 77 region files and 5 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
############################################################
################## Scanning world: world ###################
############################################################
Scanning directory...
Info: No end dimension in the world directory.
There are 77 region files and 5 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
Found 0 corrupted, 0 wrong located chunks and 0 chunks with too many entities of
a total of 57445
But it doesn't do anything about it... Help!
EDIT: I FOUND A WAY TO SOLVE THIS PROBLEM BY GOING BACK AND DELETING THE CHUNKS AND THE ENTITIES AT THE SAME TIME
I've been a few days far from the computer. I'm glad you find a solution for your problem. Just in case the two options to delete entities are "--delete-entities" and "--entity-limit".
I had this identical issue. Did exactly what you said, fixed my issue and it completed the scan.
Whew!
But man it was not nice seeing that error after reaching 6800/9929.
Worst part is I ran the scan twice before searching for a solution!
Thank you for the help.
I'm glad you find the solution! It seems that these problems are everywhere these days. The next version of region fixer will have this problem fixed and will detect these region files as broken ones.
This tool is a life saver. Me and some friends were building a time lapse world for YouTube but the world randomly messed up some of the chunks. I found this tool and it found 8 chunks in the wrong place. Then I ran the option that deletes chunks in the wrong place. It worked perfectly, resetting the dodgy chunks and getting rid of the world holes that had been in their place. After a little rebuilding on the corner of our palace, all was good again. I will be mentioning this on theivycraft blog (theivycraft.wordpress.com) and will recommend it to anyone else who has this problem. As a coder myself I will be stealing that progress bar script and I like your music as well. Thanks again, Obsid.
Thanks a lot for the positive feedback! It means a lot.
About the script, please, steal it. It's free software as region-fixer itself and I stole it first!
My main concern is that I started this off in an SSH session on my laptop, and didn't start it in screen, when I take my laptop out later I'll need to kill the process....
Is it supposed to take this long? top reports using 100% CPU and around 1.5% memory. Is there a log I can use to see it's not gotten stuck? And, perhaps more crucially, what happens and what do I need to do if I kill the process?
Many thanks,
Ben
Hello!
The scan can take a very long time indeed (depending on your PC specs) but the replacing chunks should be more o less instantaneous. In my very old laptop replacing dozens of chunks takes around a second.
That said, if region-fixer is stuck for minutes in
Replacing...
then something strange is happening. I have no idea what is going on, but if the CPU is at 100% I would say it's a bug in region-fixer or a problem reading the region-files in the backup directories.
The answers to your other question:
- There is no log for the moment to look what it's going on inside region-fixer (I probably should make a debug level verbose or anything similar).
- I can tell you that it handles CTRL+C nicely during scan but I have no idea what happens when you kill (CTRL+C or kill) the process while replacing chunks. Maybe nothing happens, maybe you corrupt the region-file in which you are replacing chunks right now (it's always good to have a backup of your world before doing anything). I have never tried it because, as I said, it takes an instant in my computer and as far as I remember I never had the chance. But region-fixer seems to be completely stuck in there, so you probably have to kill it sooner or later.
- After killing the process you could rescan the world, just to make sure that nothing has gone worse.
You could try the master branch of git repo. There was a bug while replacing chunks that is fixed in there. Your symptoms are completely different to the bug that has been fixed but just in case you could try it.
Also, was the world being used by another application while region-fixer was scanning?
If you can reproduce this more than once I'd be interested, if possible, in the region files that make this happen, so I can reproduce it myself and fix the problem (although I'm not going to be able to fix it in a month or so... nor free time!).
After a bit of reading, I worked out how to use this thing.
I had my server open when the power went out and the results were interesting to say the least.
It is a FTB server with 93 mods and I'm glad to say it fixed my problem. There were chunk voids and upon joining the server, thousands of manta rays would spawn causing horrific lag and ending in crashing.
It would be great to see a proper GUI for this neat little tool as using CMD is rather clunky and confusing if you've never used anything like it before.
Well about an hour after posting I took the plunge and ctrl-c 'd it, it didn't have any side effects at all...The world is fine.
My server is hosted on a Linode (a 1.5GB package, no longer advertised), and MC wasn't running at the time and was shut down correctly. Altogether quite weird.
I shall have another go tomorrow and if I get the same issue I'll get back to you, I'll also host the current and backup up region files for yourself to look at.
Interestingly, the scan didn't take too long, perhaps a few minutes, it was the chunk replacing that took hours :/
Also to add, I had cloned the latest repo this morning, so was bang up to date
Thanks again!
Ben
I'm glad it didn't do any damage. And the replacing chunks thing is pretty strange, if you have the time please tell how it goes the next try.
After a bit of reading, I worked out how to use this thing.
I had my server open when the power went out and the results were interesting to say the least.
It is a FTB server with 93 mods and I'm glad to say it fixed my problem. There were chunk voids and upon joining the server, thousands of manta rays would spawn causing horrific lag and ending in crashing.
It would be great to see a proper GUI for this neat little tool as using CMD is rather clunky and confusing if you've never used anything like it before.
Thanks for the positive feedback! And glad it helped you!
Making a GUI is an idea that it's been in my head for a long time, but never done one in python and I don't have much free time right now... I usually prefer to implement new stuff and fix bugs when I get time.
Quote from Ja45owry »
You need to run it in a terminal or a command line
I am having the same problem as Forquare. It will find the world and i was able to delete all entities just fine but when replacing wrong located chunks with an old save it just gets stuck on replacing...
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
############################################################
####### Scanning world: Completely Automated World!! #######
############################################################
Scanning directory...
Info: No nether dimension in the world directory.
Info: No end dimension in the world directory.
There are 31 region files and 3 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
############################################################
####### Scanning world: Completely Automated World!! #######
############################################################
Scanning directory...
Info: No nether dimension in the world directory.
Info: No end dimension in the world directory.
There are 31 region files and 3 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
I am having the same problem as Forquare. It will find the world and i was able to delete all entities just fine but when replacing wrong located chunks with an old save it just gets stuck on replacing...
############################################################
####### Scanning world: Completely Automated World!! #######
############################################################
Scanning directory...
Info: No nether dimension in the world directory.
Info: No end dimension in the world directory.
There are 31 region files and 3 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
############################################################
####### Scanning world: Completely Automated World!! #######
############################################################
Scanning directory...
Info: No nether dimension in the world directory.
Info: No end dimension in the world directory.
There are 31 region files and 3 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
Found 0 corrupted, 4 wrong located chunks and 0 chunks with too many entities of
a total of 14700
########## Trying to replace wrong located chunks ##########
---------- New chunk to replace! Coords (138, 49) ----------
Backup region file found in:
C:\users\brett\desktop\d\region/r.4.1.mca
Replacing...
Well, I thought this was world related thing, but I was clearly wrong. I'm sorry I can't spend time on region-fixer right now but as soon as I can I will look into this bug.
@TheeBert, if it's possible, could you send me the two region files (the one with wrong located chunks and the backup one) that reproduce this bug? I've already got the Forquare region files, but the more the better, so I have thing to test out while fixing. You can use the --verbose option to see which region file gives you the wrong located chunks if you want send them to me.
I am sort of a total idiot with anything to do with programming. could someone tell me how to use region fixer.
What i have done is download it and simply dragged the 'world' file onto the region fixer application which initiates a scan and then after that it disappears. I am probably most definitely doing something wrong.
Some information:
OS => windows vista, 32 bit
size of world => 22.7 MG (i think)
Regions => 13 overworld, 4 nether (judging by the scan)
@Forquare and @TheeBert, It is indeed a bug! And it's in the nbt library. I will try to push a fix this week.
@Forquare: Thanks for the two region files, they have helped to locate the bug and to identify a new kind of problem that region-fixer can't fix for the moment. I'm going to explain to you the problem, I don't know if you are interested, but just in case: One of the chunks of the "current" region-file has two headers pointing to the same chunk. Is like having 2 files in the hard drive which en reality are the same file (think of hard links). These is quite problematic for region-fixer because it tries to fix a wrong located chunk and it's modifying two chunks at the same time (and one of the two is not wrong located!). I will add some detection algorithm for this.
I am sort of a total idiot with anything to do with programming. could someone tell me how to use region fixer.
What i have done is download it and simply dragged the 'world' file onto the region fixer application which initiates a scan and then after that it disappears. I am probably most definitely doing something wrong.
Some information:
OS => windows vista, 32 bit
size of world => 22.7 MG (i think)
Regions => 13 overworld, 4 nether (judging by the scan)
You gave me a good idea to help out windows users. Anyway... the this is that you have to run region-fixer in a command line. For that go to the start menu and write "cmd", push enter and there you go, you've got yourself in a command line. Now you have to change directory to the one where region-fixer is using the "cd" command For example, changing to my desktop directory:
c:\Users\Fenixin\> cd Desktop
c:\Users\Fenixin\Desktop\
Once you are in region-fixer directory, you have to execute it pointing to the world you want to scan, for example:
Write "region-fixer.exe --help" to get a full list of options. In the internets there are a lot of good tutorials about how to use the command line (try youtube).
Hello!
You have downloaded a pretty old version of region-fixer! The version shown in your folder is 0.0.6 and that version doesn't even support anvil format (the current minecraft world format). Please go again to the downloads section and download the latest version v0.1.0.
This has happened before, so I have updated the mediafire folder to only have the latest versions and putted all the older versions in a folder called "Older versions". To tell you the truth I don't even know why I didn't this before. It was confusing as it was before.
Also, about the level.dat, thanks for uploading it ! I will look into it as soon as I get some time for it. I have seen this before in modded servers, so I would say that some modded servers change level.dat a lot.
Please, tell me if that works for you.
Thank you for answering so fast, I downloaded the newer version and it worked like a charm. After running the right commands I was able to start up the server again and log in. Its been up for almost 24 h now, I wanted to see if there were any complications but it looks great !
I do not normally donate, but this deserve a donation. Good job and thanks alot !
Hello!
I think the problem that you have got in your hands is that your world has got region ( *.mca files) files that are smaller than 8KiB in size. Those region files aren't really region files, in order to be a region file at least 8KiB in size are needed to store the region header.
Currently there is a bug in Region Fixer that make impossible to scan these broken region files, the fix is WIP. If you want to finish the scan you can fix these problems yourself removing all the region files with a size less than 8KiB (and only these ones!). As I said before, these .mca files are not region files so you shouldn't be scared (but a backup is always good).
Please, tell me if that worked for you.
I had this identical issue. Did exactly what you said, fixed my issue and it completed the scan.
Whew!
But man it was not nice seeing that error after reaching 6800/9929.
Worst part is I ran the scan twice before searching for a solution!
Thank you for the help.
C:\Users\Sam\Desktop\Minecraft-Region-Fixer-v0.1.0>region-fixer.exe --delete-ent
ities "C:\Users\Sam\Desktop\Minecraft Server\world"
Welcome to Region Fixer!
############################################################
################## Scanning world: world ###################
############################################################
Scanning directory...
Info: No end dimension in the world directory.
There are 77 region files and 5 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
------------------ Scanning the overworld ------------------
Scanning: 70 / 70 100% [#######################################] Time: 00:00:38
------------------- Scanning the nether --------------------
Scanning: 7 / 7 100% [#######################################] Time: 00:00:02
Found 0 corrupted, 0 wrong located chunks and 0 chunks with too many entities of
a total of 57445
But it doesn't do anything about it... Help!
EDIT: I FOUND A WAY TO SOLVE THIS PROBLEM BY GOING BACK AND DELETING THE CHUNKS AND THE ENTITIES AT THE SAME TIME
I've been a few days far from the computer. I'm glad you find a solution for your problem. Just in case the two options to delete entities are "--delete-entities" and "--entity-limit".
Good luck!
I'm glad you find the solution! It seems that these problems are everywhere these days. The next version of region fixer will have this problem fixed and will detect these region files as broken ones.
Good luck!
Hello!
Could you please give me some more information? For example:
OS?
Command used to run region-fixer?
How big is your world? In megabytes or in number of region files.
Is your computer doing anything while region-fixer says "Scanning the overworld"? The hard drive moving? Is the CPU busy?
Thanks a lot for the positive feedback! It means a lot.
About the script, please, steal it. It's free software as region-fixer itself and I stole it first!
Hello!
The scan can take a very long time indeed (depending on your PC specs) but the replacing chunks should be more o less instantaneous. In my very old laptop replacing dozens of chunks takes around a second.
That said, if region-fixer is stuck for minutes in
then something strange is happening. I have no idea what is going on, but if the CPU is at 100% I would say it's a bug in region-fixer or a problem reading the region-files in the backup directories.
The answers to your other question:
- There is no log for the moment to look what it's going on inside region-fixer (I probably should make a debug level verbose or anything similar).
- I can tell you that it handles CTRL+C nicely during scan but I have no idea what happens when you kill (CTRL+C or kill) the process while replacing chunks. Maybe nothing happens, maybe you corrupt the region-file in which you are replacing chunks right now (it's always good to have a backup of your world before doing anything). I have never tried it because, as I said, it takes an instant in my computer and as far as I remember I never had the chance. But region-fixer seems to be completely stuck in there, so you probably have to kill it sooner or later.
- After killing the process you could rescan the world, just to make sure that nothing has gone worse.
You could try the master branch of git repo. There was a bug while replacing chunks that is fixed in there. Your symptoms are completely different to the bug that has been fixed but just in case you could try it.
Also, was the world being used by another application while region-fixer was scanning?
If you can reproduce this more than once I'd be interested, if possible, in the region files that make this happen, so I can reproduce it myself and fix the problem (although I'm not going to be able to fix it in a month or so... nor free time!).
Thanks for reporting!
After a bit of reading, I worked out how to use this thing.
I had my server open when the power went out and the results were interesting to say the least.
It is a FTB server with 93 mods and I'm glad to say it fixed my problem. There were chunk voids and upon joining the server, thousands of manta rays would spawn causing horrific lag and ending in crashing.
It would be great to see a proper GUI for this neat little tool as using CMD is rather clunky and confusing if you've never used anything like it before.
I'm glad it didn't do any damage. And the replacing chunks thing is pretty strange, if you have the time please tell how it goes the next try.
Good luck!
Thanks for the positive feedback! And glad it helped you!
Making a GUI is an idea that it's been in my head for a long time, but never done one in python and I don't have much free time right now... I usually prefer to implement new stuff and fix bugs when I get time.
Yep!
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Brett>cd C:\users\brett\desktop\rf
C:\Users\Brett\Desktop\RF>region-fixer.exe C:\users\brett\desktop\c
Welcome to Region Fixer!
############################################################
####### Scanning world: Completely Automated World!! #######
############################################################
Scanning directory...
Info: No nether dimension in the world directory.
Info: No end dimension in the world directory.
There are 31 region files and 3 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
------------------ Scanning the overworld ------------------
Scanning: 31 / 31 100% [#######################################] Time: 00:00:31
Found 0 corrupted, 4 wrong located chunks and 0 chunks with too many entities of
a total of 14700
C:\Users\Brett\Desktop\RF>region-fixer.exe --rw --b=C:\users\brett\desktop\d C:\
users\Brett\Desktop\c
Welcome to Region Fixer!
############################################################
####### Scanning world: Completely Automated World!! #######
############################################################
Scanning directory...
Info: No nether dimension in the world directory.
Info: No end dimension in the world directory.
There are 31 region files and 3 player files in the world directory.
-------------------- Checking level.dat --------------------
'level.dat' is readable
------------------ Checking player files -------------------
All player files are readable.
------------------ Scanning the overworld ------------------
Scanning: 31 / 31 100% [#######################################] Time: 00:00:17
Found 0 corrupted, 4 wrong located chunks and 0 chunks with too many entities of
a total of 14700
########## Trying to replace wrong located chunks ##########
---------- New chunk to replace! Coords (138, 49) ----------
Backup region file found in:
C:\users\brett\desktop\d\region/r.4.1.mca
Replacing...
Well, I thought this was world related thing, but I was clearly wrong. I'm sorry I can't spend time on region-fixer right now but as soon as I can I will look into this bug.
@TheeBert, if it's possible, could you send me the two region files (the one with wrong located chunks and the backup one) that reproduce this bug? I've already got the Forquare region files, but the more the better, so I have thing to test out while fixing. You can use the --verbose option to see which region file gives you the wrong located chunks if you want send them to me.
What i have done is download it and simply dragged the 'world' file onto the region fixer application which initiates a scan and then after that it disappears. I am probably most definitely doing something wrong.
Some information:
OS => windows vista, 32 bit
size of world => 22.7 MG (i think)
Regions => 13 overworld, 4 nether (judging by the scan)
scan=>http://imgur.com/osaeWYr
After it finishes this it disappears.
Any help would be appreciated, thanks.
@Forquare and @TheeBert, It is indeed a bug! And it's in the nbt library. I will try to push a fix this week.
@Forquare: Thanks for the two region files, they have helped to locate the bug and to identify a new kind of problem that region-fixer can't fix for the moment. I'm going to explain to you the problem, I don't know if you are interested, but just in case: One of the chunks of the "current" region-file has two headers pointing to the same chunk. Is like having 2 files in the hard drive which en reality are the same file (think of hard links). These is quite problematic for region-fixer because it tries to fix a wrong located chunk and it's modifying two chunks at the same time (and one of the two is not wrong located!). I will add some detection algorithm for this.
You gave me a good idea to help out windows users. Anyway... the this is that you have to run region-fixer in a command line. For that go to the start menu and write "cmd", push enter and there you go, you've got yourself in a command line. Now you have to change directory to the one where region-fixer is using the "cd" command For example, changing to my desktop directory:
Once you are in region-fixer directory, you have to execute it pointing to the world you want to scan, for example:
Write "region-fixer.exe --help" to get a full list of options. In the internets there are a lot of good tutorials about how to use the command line (try youtube).
Good luck!
Thanks!
And thanks for pointing that out, fixed!
I'm glad it worked!