Do you know if this will work alright with Python 2.6?
It should work without problems. In the readme says that works with python 2.7.x, but just had a look to my python version (the computer where a develop the application) and it has python 2.6.5.
I'll have a go at implementing it and post back with the results -- should be good !
There's so many gems on these forums, but then again so many dead projects... it's very hard to sift through and find the worthwhile ones with active helpful owners like yourself !
I have a world I copied from single player to multiplayer without adding the seed to the server properties.
This led to a huge number of chunks that were generated incorrectly, leaving a lot of ugly sheared walls. I assume the only way to fix this is to delete the chunks directly and let the correct seed regenerate the chunks.
So I'm trying to use the --delete-list option but I can't figure it out.
I used region fixer with this option...
--delete-list=delete.txt
The file, delete.txt has one line with what I assume to be the proper syntax (but I don't know python that well)...
[(-1,-1),(-3-2)]
Where the first parentheses set is the region and the second is the chunk.
The region file does exist and region fixer does find my file, but I get this error...
Error: Wrong chunklist!
BTW, I'm using windows.
Any help would be appreciated.
Thanks!
I have a world I copied from single player to multiplayer without adding the seed to the server properties.
This led to a huge number of chunks that were generated incorrectly, leaving a lot of ugly sheared walls. I assume the only way to fix this is to delete the chunks directly and let the correct seed regenerate the chunks.
So I'm trying to use the --delete-list option but I can't figure it out.
I used region fixer with this option...
--delete-list=delete.txt
The file, delete.txt has one line with what I assume to be the proper syntax (but I don't know python that well)...
[(-1,-1),(-3-2)]
Where the first parentheses set is the region and the second is the chunk.
The region file does exist and region fixer does find my file, but I get this error...
Error: Wrong chunklist!
BTW, I'm using windows.
Any help would be appreciated.
Thanks!
Hello!
Sorry if the help is not very helpful, but that option doesn't accept an file as argument, it expects a list written in the command line. I have to say that is much more logical and useful to accept a file, I'll add that in the next version. So to fix this, just use:
--delete-list=[(-1,-1),(-3-2)]
And protect the parenthesis from the prompt (in GNU/Linux you can do that by adding a "\" before each special character, no idea how to do this in Windows).
The Windows version is a bit outdated, but the source code is changing a lot and has new features (now it's multiprocessing, you can use a few cores to make the process faster). I hope to release a new version soon, and when I do, I'll post a new windows executable. I'll try to add the file thing... If I forgot about it add a issue in the git hub page.
Hello,
I tried to get the program to run successfully and it scans my world. However, halfway through scanning it just crashes. Any idea why?
this is exactly what goes on.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\cobra>cd c:\
c:\>cd \regionfixer
c:\regionfixer>region-fixer --dc c:\world\
Welcome to Region Fixer!
Info: No nether dimension in the world directory.
Scanning directory...
There are 219 region files and 141 player files in the world directory.
#################### Scanning level.dat ####################
'level.dat' is redable.
################## Scanning player files ###################
[WARNING!] The player file c:\world\players\_tmp_.dat may be corrupted. Exceptio
n: 'Partial File Parse: file possibly truncated.'
################## Scanning region files ###################
Scanning c:\world\region\r.-1.-1.mcr ... 1/219
Scanning c:\world\region\r.-1.-2.mcr ... 2/219
Scanning c:\world\region\r.-1.-3.mcr ... 3/219
--[snipped for irrelevance]--
Scanning c:\world\region\r.-9.19.mcr ... 136/219
Scanning c:\world\region\r.-9.2.mcr ... 137/219
Scanning c:\world\region\r.-9.20.mcr ... 138/219
Scanning c:\world\region\r.-9.21.mcr ... 139/219
Traceback (most recent call last):
File "region-fixer.py", line 492, in <module>
File "region-fixer.py", line 442, in main
File "region-fixer.py", line 75, in check_region_file
File "region-fixer.py", line 118, in check_chunk
File "nbt\region.pyc", line 186, in get_chunk
OverflowError: Python int too large to convert to C long
c:\regionfixer>
Hello,
I tried to get the program to run successfully and it scans my world. However, halfway through scanning it just crashes. Any idea why?
this is exactly what goes on.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\cobra>cd c:\
c:\>cd \regionfixer
c:\regionfixer>region-fixer --dc c:\world\
Welcome to Region Fixer!
Info: No nether dimension in the world directory.
Scanning directory...
There are 219 region files and 141 player files in the world directory.
#################### Scanning level.dat ####################
'level.dat' is redable.
################## Scanning player files ###################
[WARNING!] The player file c:\world\players\_tmp_.dat may be corrupted. Exceptio
n: 'Partial File Parse: file possibly truncated.'
################## Scanning region files ###################
Scanning c:\world\region\r.-1.-1.mcr ... 1/219
Scanning c:\world\region\r.-1.-2.mcr ... 2/219
Scanning c:\world\region\r.-1.-3.mcr ... 3/219
--[snipped for irrelevance]--
Scanning c:\world\region\r.-9.19.mcr ... 136/219
Scanning c:\world\region\r.-9.2.mcr ... 137/219
Scanning c:\world\region\r.-9.20.mcr ... 138/219
Scanning c:\world\region\r.-9.21.mcr ... 139/219
Traceback (most recent call last):
File "region-fixer.py", line 492, in <module>
File "region-fixer.py", line 442, in main
File "region-fixer.py", line 75, in check_region_file
File "region-fixer.py", line 118, in check_chunk
File "nbt\region.pyc", line 186, in get_chunk
OverflowError: Python int too large to convert to C long
c:\regionfixer>
Hello!
This looks like a problem in the nbt library... or maybe a really broken region file. Could I have a copy of the world? If that is not possible, just a copy of that problematic region file will do. The error points to a big problem with the header of the region file, but without the file is difficult to know what's going on.
This looks like a problem in the nbt library... or maybe a really broken region file. Could I have a copy of the world? If that is not possible, just a copy of that problematic region file will do. The error points to a big problem with the header of the region file, but without the file is difficult to know what's going on.
Sure! I have included some of the subsequent world files too just in case. Here is the link: (14MB)
Just had a moment and tested it... this is a problem solved in the code from branch master, but I have to update the windows executable! (Sorry, I'm always lazy about updating the windows exe) As soon as I finish some big changes I'm doing to region-fixer I'll update the windows exe, but I don't know when I'm going to finish them, I'll try to finish them next week. Meanwhile, if you can use the code in the branch master everything should be ok.
Just had a moment and tested it... this is a problem solved in the code from branch master, but I have to update the windows executable! (Sorry, I'm always lazy about updating the windows exe) As soon as I finish some big changes I'm doing to region-fixer I'll update the windows exe, but I don't know when I'm going to finish them, I'll try to finish them next week. Meanwhile, if you can use the code in the branch master everything should be ok.
Good luck!
just download region-fixer.py from the master branch?
just download region-fixer.py from the master branch?
i took the whole repository, downloaded python, and went from there.
here are the results.
C:\Users\cobra>"C:\Program Files\Python27\python.exe" "C:\Users\cobra\Desktop\Fe
nixin-Minecraft-Region-Fixer-fae6348\region-fixer.py" "C:\Users\cobra\Desktop\wo
rld"
Welcome to Region Fixer!
Info: No nether dimension in the world directory.
Scanning directory...
There are 219 region files and 141 player files in the world directory.
#################### Scanning level.dat ####################
'level.dat' is readable.
################## Scanning player files ###################
[WARNING!] The player file C:\Users\cobra\Desktop\world\players\_tmp_.dat may be
corrupted. Exception: 'Partial File Parse: file possibly truncated.'
################## Scanning region files ###################
Traceback (most recent call last):############### ] ETA: 00:00:54
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\region-fix
er.py", line 567, in <module>
main()
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\region-fix
er.py", line 515, in main
filename, bad_list, wrong_list, chunks = check_region_file(region_file, opti
ons.delete_entities, options.entity_limit)
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\region-fix
er.py", line 85, in check_region_file
chunk = check_chunk(region_file, x, z)
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\region-fix
er.py", line 138, in check_chunk
chunk = region_file.get_chunk(x,z)
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\nbt\region
.py", line 186, in get_chunk
chunk = self.file.read(length-1)
OverflowError: Python int too large to convert to C long
C:\Users\cobra>
i took the whole repository, downloaded python, and went from there.
here are the results.
C:\Users\cobra>"C:\Program Files\Python27\python.exe" "C:\Users\cobra\Desktop\Fe
nixin-Minecraft-Region-Fixer-fae6348\region-fixer.py" "C:\Users\cobra\Desktop\wo
rld"
Welcome to Region Fixer!
Info: No nether dimension in the world directory.
Scanning directory...
There are 219 region files and 141 player files in the world directory.
#################### Scanning level.dat ####################
'level.dat' is readable.
################## Scanning player files ###################
[WARNING!] The player file C:\Users\cobra\Desktop\world\players\_tmp_.dat may be
corrupted. Exception: 'Partial File Parse: file possibly truncated.'
################## Scanning region files ###################
Traceback (most recent call last):############### ] ETA: 00:00:54
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\region-fix
er.py", line 567, in <module>
main()
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\region-fix
er.py", line 515, in main
filename, bad_list, wrong_list, chunks = check_region_file(region_file, opti
ons.delete_entities, options.entity_limit)
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\region-fix
er.py", line 85, in check_region_file
chunk = check_chunk(region_file, x, z)
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\region-fix
er.py", line 138, in check_chunk
chunk = region_file.get_chunk(x,z)
File "C:\Users\cobra\Desktop\Fenixin-Minecraft-Region-Fixer-fae6348\nbt\region
.py", line 186, in get_chunk
chunk = self.file.read(length-1)
OverflowError: Python int too large to convert to C long
C:\Users\cobra>
did I do something wrong? :sad.gif:
I don't think so...
I'm not sure what's going on, but let's try some stuff... Can you run the master branch again adding --verbose to the options list? Just to make sure that the problematic region file is the one I have. The master branch of Region-fixer can scan all the region files you sent me without problems (well, actually it finds wrong located and corrupted chunks, but it doesn't crash). I'll try to reproduce this on windows tomorrow.
Maybe you can send my the whole world? Just in case we're missing something.
Can this fixer fix the "too many XP orbs" issue? I have a few 1.8.1 maps that just refuse to work because of this issue :sad.gif:
AFAIK yes, the experience orbs are entities, and they can be deleted using region-fixer. You can try to scan your world with:
(from the region-fixer directory)
python region-fixer.py --de --el=200 path-to-world
This command will delete all the entities if a chunk has more than 200 entities. I don't know if you are a windows or a linux user, if you are a windows user you can download the windows version and run:
If the problem is still there try to reduce the number of --entity-limit to 50. Note that this method will delete all the entities in the chunk if it has more than entity-limit, make sure you know what that means.
This brings multiprocessing to region fixer, improving the speed for big worlds in multicore machines and a big rewrite of some parts of the code. The multiprocessing code was first written by aheadley, thanks!
It should work without problems. In the readme says that works with python 2.7.x, but just had a look to my python version (the computer where a develop the application) and it has python 2.6.5.
Thanks for your interest!
This led to a huge number of chunks that were generated incorrectly, leaving a lot of ugly sheared walls. I assume the only way to fix this is to delete the chunks directly and let the correct seed regenerate the chunks.
So I'm trying to use the --delete-list option but I can't figure it out.
I used region fixer with this option...
--delete-list=delete.txt
The file, delete.txt has one line with what I assume to be the proper syntax (but I don't know python that well)...
[(-1,-1),(-3-2)]
Where the first parentheses set is the region and the second is the chunk.
The region file does exist and region fixer does find my file, but I get this error...
Error: Wrong chunklist!
BTW, I'm using windows.
Any help would be appreciated.
Thanks!
Hello!
Sorry if the help is not very helpful, but that option doesn't accept an file as argument, it expects a list written in the command line. I have to say that is much more logical and useful to accept a file, I'll add that in the next version. So to fix this, just use:
And protect the parenthesis from the prompt (in GNU/Linux you can do that by adding a "\" before each special character, no idea how to do this in Windows).
The Windows version is a bit outdated, but the source code is changing a lot and has new features (now it's multiprocessing, you can use a few cores to make the process faster). I hope to release a new version soon, and when I do, I'll post a new windows executable. I'll try to add the file thing... If I forgot about it add a issue in the git hub page.
Good luck!
I tried to get the program to run successfully and it scans my world. However, halfway through scanning it just crashes. Any idea why?
this is exactly what goes on.
Hello!
This looks like a problem in the nbt library... or maybe a really broken region file. Could I have a copy of the world? If that is not possible, just a copy of that problematic region file will do. The error points to a big problem with the header of the region file, but without the file is difficult to know what's going on.
Sure! I have included some of the subsequent world files too just in case. Here is the link: (14MB)
http://www.mediafire.com/?6e8un0z5z885od1
No, it isn't the same. Well, can you copy here the error message or explain the problems you found running it?
Thanks! I'll probably have a look at this the next week.
Thank you very much, I appreciate it.
Just had a moment and tested it... this is a problem solved in the code from branch master, but I have to update the windows executable! (Sorry, I'm always lazy about updating the windows exe) As soon as I finish some big changes I'm doing to region-fixer I'll update the windows exe, but I don't know when I'm going to finish them, I'll try to finish them next week. Meanwhile, if you can use the code in the branch master everything should be ok.
Good luck!
just download region-fixer.py from the master branch?
i took the whole repository, downloaded python, and went from there.
here are the results.
did I do something wrong? :sad.gif:
I don't think so...
I'm not sure what's going on, but let's try some stuff... Can you run the master branch again adding --verbose to the options list? Just to make sure that the problematic region file is the one I have. The master branch of Region-fixer can scan all the region files you sent me without problems (well, actually it finds wrong located and corrupted chunks, but it doesn't crash). I'll try to reproduce this on windows tomorrow.
Maybe you can send my the whole world? Just in case we're missing something.
The problem is in the nbt library, the werid thing is that the problem only happens in windows (in gnu/linux it works perfect!).
Download this: http://www.mediafire.com/?409q5pkb0a9vkld
Is region-fixer with the fix that I'll include in the next version. Tell me how it works.
Good luck!
That did the trick. Thanks very much! :-D
AFAIK yes, the experience orbs are entities, and they can be deleted using region-fixer. You can try to scan your world with:
(from the region-fixer directory)
python region-fixer.py --de --el=200 path-to-world
This command will delete all the entities if a chunk has more than 200 entities. I don't know if you are a windows or a linux user, if you are a windows user you can download the windows version and run:
C:\Path\to-region-fixer>region-fixer.exe --de --el=200 C:\path-to-world
If the problem is still there try to reduce the number of --entity-limit to 50. Note that this method will delete all the entities in the chunk if it has more than entity-limit, make sure you know what that means.
Please, if you try, tell me if it works.
This brings multiprocessing to region fixer, improving the speed for big worlds in multicore machines and a big rewrite of some parts of the code. The multiprocessing code was first written by aheadley, thanks!