Dylancyclone / VMF2OBJ

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

-e argument prevents program from running #29

Closed CheezusChrust closed 2 years ago

CheezusChrust commented 2 years ago

If I try to add an external content path (tried both a folder containing materials/models/etc. and the materials folder itself) the program simply displays the help menu without any errors.

Dylancyclone commented 2 years ago

Hi! What is the full command you are using to run the program?

CheezusChrust commented 2 years ago

Whoops, forgot to include that java -jar .\VMF2OBJ-1.1.3.jar .\input.vmf .\output "B:\SteamLibrary\steamapps\common\Half-Life 2\hl2\hl2_textures_dir.vpk;B:\SteamLibrary\steamapps\common\Half-Life 2\hl2\hl2_misc_dir.vpk" -e "B:\User Data\Games\Mapping\Episode 2\" -t

The directory specified for -e here contains a materials and models folder, which contain my custom stuff.

Cyzzle-Belle commented 2 years ago

If it helps, I am able to recreate the issue. When I run it through the GUI, I am getting a SEVERE: Fatal error: java.lang.StringIndexOutOfBoundsException: String index out of range: -1. Not sure why this is not being shown in the CLI.

I am on crappy internet so I do not have the JDK and cannot dig deeper at this time. Hope this might help.

Dylancyclone commented 2 years ago

Hello! With the rework to how external content is handled in version 2.0.0, this issue should be fixed. If you are still having problems please feel free to reopen or create a new issue!