Closed jgore077 closed 2 months ago
To add a note here: It seems like many of the chunks in my world are corrupted because as soon as walk into them GT:NH crashes with the same error.
I believe I have fixed the issue by utilizing this tool. I will close this issue in 24hrs from now if I don't have any persisting issues.
I can walk around in without crashing but I couldn't replace the chunks bc I had deleted my my oldest backups. So I just deleted the chunks with this command after cloning the repo.
python regionfixer.py -p 4 --delete-corrupted "path/to/save"
Which gave this output
Welcome to Region Fixer!
(v 0.3.6)
############################################################
############# Scanning world: My World ##############
############################################################
World info:
- 42 region/level files,
- 0 POI files,
- 0 entities files,
- 1 player files,
- and 52 data files.
-------------------- Checking level.dat --------------------
'level.dat' is readable
---------------- Scanning UUID player files ----------------
1 of 1|##########################################################|Time: 0:00:00
------------- Scanning old format player files -------------
Info: No files to scan.
---------- Scanning structures and map data files ----------
52 of 52|########################################################|Time: 0:00:00
--------- Scanning region, POI and entities files ----------
42 of 42|########################################################|Time: 0:00:37
############################################################
############# Scan results for: My World ##############
############################################################
Unreadable player files:
No problems found.
Unreadable data files:
No problems found.
Chunk problems:
------------------------------
| Problem | Corrupted Total |
------------------------------
| Count | 212 12400 |
------------------------------
Region problems:
No problems found.
########## Deleting chunks with status: Corrupted ##########
Deleting chunks in regionset "Level/Region files for Overworld":
Removed 212 chunks in this regionset.
Deleting chunks in regionset "Level/Region files for The End":
Removed 0 chunks in this regionset.
Deleting chunks in regionset "Level/Region files for "DIM112"":
Removed 0 chunks in this regionset.
Deleting chunks in regionset "Level/Region files for "DIM64"":
Removed 0 chunks in this regionset.
Deleted 212 chunks with status: Corrupted
As you can see 212 chunks were corrupted which would cause my game to crash as soon as I walked into them. If you are going to apply this solution to your world be careful and make sure you have a backup.
Your GTNH Discord Username
No response
Your Pack Version
2.6.1
Your Server
Minecraft Integrated Server
Java Version
Java 21
Type of Server
Single Player
Your Actions
I walked into a new chunk then the game crashed because of a
java.lang.NullPointerException
.Crash Report
crash-2024-08-15_11.16.28-server.txt
Final Checklist