Mapfile exporter

The worst monsters in the Hearthlands warp the fabric of space and time...

Mapfile exporter

Postby mvgulik » Sat Jan 03, 2026 11:50 am

Code: Select all
Exception in thread "Mapfile exporter" java.lang.NullPointerException: Cannot read field "map" because "x0" is null
   at haven.MapFile$Segment.access$900(MapFile.java:1124)
   at haven.MapFile.export(MapFile.java:1649)
   at haven.MapFile.export(MapFile.java:1705)
   at haven.MapWnd.lambda$exportmap$10(MapWnd.java:874)
   at java.base/java.lang.Thread.run(Thread.java:833)


Care to fix that !?!
mvgulik
 
Posts: 3863
Joined: Fri May 21, 2010 2:29 am

Re: Mapfile exporter

Postby WilfWhippet » Sun Jan 11, 2026 8:51 pm

I have the same problem and get the error msg:
Code: Select all
Could not import map: Cannot invoke "haven.MapFile$Segment.include(long, haven.Coord)" because "x0" is null
whenever I try to import a map file.

I've tried several clients including the vanilla, Ender's and Nurgling but get the same error.

It's also not the map file that's corrupt as it works for other people and I've tried different files. I also cannot export my own map.

Does anyone have a solution for this?
WilfWhippet
 
Posts: 2
Joined: Wed Apr 07, 2021 6:29 pm

Re: Mapfile exporter

Postby mvgulik » Mon Jan 12, 2026 5:22 am

Kami 'beta' worked for me, after Kami fixed it there.

BUT ... I personally only tested that is actually exported something. Or in other words: Make sure you have some proper backups, just in case. (its probably overkill ... but, well beta ...its your call.)
mvgulik
 
Posts: 3863
Joined: Fri May 21, 2010 2:29 am

Re: Mapfile exporter

Postby mvgulik » Fri Jan 16, 2026 6:04 pm

Bump (or it will never be fixed)
mvgulik
 
Posts: 3863
Joined: Fri May 21, 2010 2:29 am

Re: Mapfile exporter

Postby WilfWhippet » Sat Jan 17, 2026 2:29 pm

I managed to "solve" the problem by deleting the content of the 'AppData\Roaming\Haven and Hearth\Data' folder.

I lost my entire map but this enabled me to start mapping again and import/export map files.

I'm assuming that one of those data files became corrupted somehow.
WilfWhippet
 
Posts: 2
Joined: Wed Apr 07, 2021 6:29 pm

Re: Mapfile exporter

Postby mvgulik » Sat Jan 17, 2026 3:10 pm

WilfWhippet wrote:I managed to "solve" the problem by deleting the content of the 'AppData\Roaming\Haven and Hearth\Data' folder.

I lost my entire map but this enabled me to start mapping again and import/export map files.

I'm assuming that one of those data files became corrupted somehow.


If it was just one file/segment that would make sense to me. But it effects a lot of files/segments(52). Figure that kinda point's the finger to Ender's client.
Ditching all my cache files it not something I like to do, at least not yet.

Hmm, I guess I could try to export and import with Kami-beta client and see what that will do.
mvgulik
 
Posts: 3863
Joined: Fri May 21, 2010 2:29 am

Re: Mapfile exporter

Postby mvgulik » Sat Jan 17, 2026 4:09 pm

WilfWhippet wrote:I managed to "solve" the problem by deleting the content of the 'AppData\Roaming\Haven and Hearth\Data' folder.
mvgulik wrote:Hmm, I guess I could try to export and import with Kami-beta client and see what that will do.

Yea. That fixed it.

1) Export with Kami-beta.
2) Test cleared HnH cache. (backup'ed ofc)
3) Import with vanilla.

All maps seemed to be restored and no map related issues spotted anymore in [Vanilla, Ender, Kami] clients.

Still wondering what triggered the issue in the first place. (maybe something for later)
mvgulik
 
Posts: 3863
Joined: Fri May 21, 2010 2:29 am


Return to Bugs

Who is online

Users browsing this forum: Claude [Bot], Google [Bot] and 85 guests