Problem with BF2HMT
Posted: 2022-06-13 23:00
Hi everyone. I'm trying to use BF2HMT to import USGS terrain data into my map according to this tutorial (http://lorneswork.com/projects/BF2HMT/tutorial/) but for some reason it's not working. Here's what I did:
I started with a rather large .tif that I got from the USGS database, cropped it down to a manageable size, and then converted it to a .raw file. In retrospect I probably didn't have to do this since BF2HMT takes in a .tif, but I didn't read ahead in the tutorial so I didn't yet know that.
Anyways, I put that .raw file in photoshop, cropped it the way I wanted it, and saved that again as a .tif. I then put it into BF2HMT, selected my level, and everything seemed to go the way the tutorial said it should. But then when I went into BF2editor I found that my level was still completely flat and nothing had changed.
After looking at the log in BF2HMT though, I noticed that when I tell it to export the image to the level it says:
"Processing...
java.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionDone!"
This doesn't look good, but I have no idea what it means or how to fix it. Another thing I noticed is that my .tif never seems to have the contrast that it should -- the USGS thumbnail of it shows a very detailed terrain greyscale, but anything I open it in (photoshop included) makes it look like there's only contrast between the ocean and land. It even does this after I auto-contrast it in photoshop. I've heard that a lot of applications can't really represent a .tif in full detail, but I thought I'd mention this here in case it's part of the issue.
I'd really appreciate any help y'all could think of!
I started with a rather large .tif that I got from the USGS database, cropped it down to a manageable size, and then converted it to a .raw file. In retrospect I probably didn't have to do this since BF2HMT takes in a .tif, but I didn't read ahead in the tutorial so I didn't yet know that.
Anyways, I put that .raw file in photoshop, cropped it the way I wanted it, and saved that again as a .tif. I then put it into BF2HMT, selected my level, and everything seemed to go the way the tutorial said it should. But then when I went into BF2editor I found that my level was still completely flat and nothing had changed.
After looking at the log in BF2HMT though, I noticed that when I tell it to export the image to the level it says:
"Processing...
java.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionjava.lang.NullPointerExceptionDone!"
This doesn't look good, but I have no idea what it means or how to fix it. Another thing I noticed is that my .tif never seems to have the contrast that it should -- the USGS thumbnail of it shows a very detailed terrain greyscale, but anything I open it in (photoshop included) makes it look like there's only contrast between the ocean and land. It even does this after I auto-contrast it in photoshop. I've heard that a lot of applications can't really represent a .tif in full detail, but I thought I'd mention this here in case it's part of the issue.
I'd really appreciate any help y'all could think of!