Dylancyclone / VMF2OBJ

Convert source-engine VMF files into OBJ files with materials (including brushes, displacements, entities, and models)
MIT License
109 stars 6 forks source link

Exception in thread "main" java.lang.NullPointerException #11

Closed etkramer closed 4 years ago

etkramer commented 4 years ago

Running the command java -jar VMF2OBJ.jar gladoschamber.vmf output "D:\Steam\steamapps\common\Portal 2\portal2\pak01_dir.vpk" -t outputs the following:

Exception: java.lang.NullPointerException
[1/5] Reading VPK file(s)...
Exception in thread "main" java.lang.NullPointerException
        at java.io.File.<init>(Unknown Source)
        at com.lathrum.VMF2OBJ.App.main(App.java:389)
Dylancyclone commented 4 years ago

The first argument, gladoschamber.vmf might looking for a file at the root of your computer. To load a file in the same directory, try formatting it like .\gladoschamber.vmf. The same goes for the output file, as written it will try and put it at the root of the drive. Let me know if you can get it working!

This is also good reminder for me to clarify the errors that the program throws, instead of just nondescript NullPointerExceptions

Dylancyclone commented 4 years ago

Are you still having this issue @TrumpetPro ? If not, I'll close the issue

etkramer commented 4 years ago

Are you still having this issue @TrumpetPro ? If not, I'll close the issue

Oh, sorry about that. Closing it now.