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

Unterminated object at line 1 column 24570 path $.solids[0].sides[0].null #33

Closed asd417 closed 2 years ago

asd417 commented 2 years ago

Hi I'm trying to convert a tf2 map that I made into obj but I keep getting this error. Starting VMF2OBJ conversion v2.0.0-rc.3 [1/5] Reading VPK file(s) and custom content... [2/5] Reading geometry... SEVERE: Fatal error: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 24570 path $.solids[0].sides[0].null

VMF2OBJ version is 2.0.0-rc.3 Here is the vmf mvm_swirl_event_rc1.zip There are some custom models used in this map however I dont think this is the problem.

asd417 commented 2 years ago

I just confirmed that the same error occurs on version 1.1.3 while using this command: java -jar ./VMF2OBJ-1.1.3.jar "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc\mvm_swirl\mvm_swirl_event_rc1.vmf" "D:\tf2\swirl_event\export\mvm_swirl_event_rc1.obj" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\tf2_misc_dir.vpk;C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\tf2_textures_dir.vpk" -t

asd417 commented 2 years ago

Same issue with different vmf SEVERE: Fatal error: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 23099 path $.solids[0].sides[0].null

I'm starting to wonder if this has to do something with hammer++ that I'm using to make these vmfs. Maybe it changes the vmf format?

asd417 commented 2 years ago

I was able to get the conversion working for the vmfs from above by opening and saving it in the original tf2 hammer.