Pakrat Trouble

Discussion in 'Mapping Questions & Discussion' started by eyefork, Nov 23, 2009.

  1. eyefork

    eyefork L3: Member

    Messages:
    130
    Positive Ratings:
    94
    Pakrat has been giving me trouble lately and I'm not sure what's causing it. It seems to work fine on older maps, but for every new map I make it doesn't work. As soon as I select the map it produces this error: "java.lang.NullPointerException"

    Here is the what the java console looks like:
    [​IMG]

    and the command line:
    [​IMG]

    I've already redownloaded Pakrat and reinstalled JRE. Neither worked.

    The only thing I did today sdk-wise was install ABS's mapping resource pack again (since switching from xp), but I've never had any trouble with it in the past. However, I didn't run the installer as an admin. I did so later when I realized some parts of it weren't working properly in Hammer. Maybe not running it as an admin initially is what is causing whatever problem I'm having?
     
    Last edited: Nov 23, 2009
  2. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    No idea. I suppose you could decompile the class files and try to debug it, but the author pretty much said he was abandoning the project three years ago...

    A NullPointerException could be from pretty much any kind of cause, so the only hint is what it was doing when it was thrown.

    My advice would be to use BSPZIP directly. (I'm working on a similar program, PackBSP, but it's in a bit of a bug-shakedown phase.)
     
    • Thanks Thanks x 1
  3. eyefork

    eyefork L3: Member

    Messages:
    130
    Positive Ratings:
    94
    I never really figured out what the problem was, but I found an easy workaround. When Pakrat initially asks to load a map, I just load one that works. From that screen I select File>Load BSP and I'm able to load my map and pack in my files just fine.

    I didn't have much luck with PackBSP, for what I'm guessing are unrelated reasons. I'll post the output in its thread.
     
    • Useful Useful x 1
    Last edited: Nov 26, 2009