Comments (24)
It's all good
I wish you the best on your computer repair
May the deals be ever in your favor
from vmf2obj.
Hello!
Sorry about the long delay, life reared it's ugly head for a bit. I'm still alive, but have much less time to work on the project
Just to make sure, when you added the extra resources, did you add the "materials"/"models" folders directly, or the folder that contains those two folders?
from vmf2obj.
I added the folders directly since the folder they were contained in had VPKs (fallbacks_000, fallbacks_dir, garrysmod_000, garrysmod_001, garrysmod_002) that caused an error (SEVERE: Fatal error: java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 26) Which I found out through a different issue page.
I tried copying the material and model folders into an empty folder and using that, but that also left the program unable to find the materials.
from vmf2obj.
Make sure you're only adding the _dir.vpk
files. That file points to all the other ones ("000", "001")
from vmf2obj.
The issue is that GMod stores most of its assets in regular folders as opposed to VPKs, so I need to either find a way to put them into a VPK or add them to the resource list as just folders with the files in them.
from vmf2obj.
Remember you can also import assets in regular folders by selecting "Add Folder." This will add all the assets in the "materials"/"models" folders.
custom-content/ <----- Select this folder
├── materials/ <----- DON'T select this folder
│ └── models/
│ └── props/
│ ├── clock.vmt
│ └── clock.vtf
└── models/ <----- DON'T select this folder
└── props/
├── clock.dx80.vtx
├── clock.dx90.vtx
├── clock.mdl
├── clock.phy
├── clock.sw.vtx
└── clock.vvd
So for gmod you can add
[...]/steamapps/common/GarrysMod/garrysmod/garrysmod_dir.vpk
[...]/steamapps/common/GarrysMod/sourceengine/hl2_misc_dir.vpk
[...]/steamapps/common/GarrysMod/sourceengine/hl2_textures_dir.vpk
[plus any other mounted games like cs:s]
And then the folder itself
[...]/steamapps/common/GarrysMod/garrysmod/
from vmf2obj.
I tried that and it threw this error
Any idea why?
P.S. Thanks for being patient with me, I really appreciate it
Edit: I just noticed I had an incorrect VPK added, but swapping out for the right one still threw the same error
from vmf2obj.
Hello? I still haven't gotten it to work :/
from vmf2obj.
...Hello?
from vmf2obj.
Hi sorry again for the delay. My garrysmod install seems to have a different layout for its files (the materials that were missing in your log are in the vpk files for me). If you could, try moving/copying the assets (the materials,models,etc), from the garrysmod
folder to some other "custom_content" folder and then include that folder. The program might be getting caught on some invalid file somewhere else in your "garrysmod" folder
from vmf2obj.
Well, we have progress, now we're getting a different geometry-based error:
Starting VMF2OBJ conversion v2.0.0
[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 1772 path $.solids[0].sides[0].null
from vmf2obj.
Ack it doesn't like something in the map file itself now. Is it possible to upload the VMF? That way I can take a closer look?
from vmf2obj.
Yea, sure!
https://drive.google.com/file/d/1CRx7JBiv4rndlqDJI5LTELHMsKdcfR7D/view?usp=sharing
from vmf2obj.
Thanks, I am extremely busy the next few days but I will take a look once I get a chance
from vmf2obj.
Oh! I AM using Hammer++, do you think that could be part of the issue?
Like should I be opening and saving in regular Hammer first or does it not matter?
from vmf2obj.
That could be part of it. Some other people have reported that saving it in original hammer then trying to convert it works, I haven't gotten a chance to see how Hammer++ saves the files differently
from vmf2obj.
Just wanted to let you know, in a stroke of some of the greatest timing ever, the motherboard of my personal computer has died and I'm working on getting a replacement
So I'm sorry there's going to be some more delay before I can properly take a look at this haha.
In the mean time definitely try opening the map in regular hammer and resaving it, that seemed to fix the issue for some other people
from vmf2obj.
Alright, some quick troubleshooting shows that the file out of Hammer++ fails to read geometry and the file out of Hammer reads geometry, but fails to find any of the materials, meaning even if Hammer++ worked it would still fail due to it not finding any textures.
from vmf2obj.
Hi sorry for the delay. After getting a replacement motherboard and getting everything back up, I found my CPU was also dying, causing crashes and actually corrupted my windows installation. I've filed an RMA request and should hopefully get a replacement CPU soon
from vmf2obj.
Heyo, I've pushed up a new version that fixes the geometry error when trying to decompile any VMF file saved in Hammer++. That should fix your original issue https://github.com/Dylancyclone/VMF2OBJ/releases/tag/v2.0.1
It looks like everything succeeds except two missing materials, which I can't find anywhere in garrysmod, css, or hl2. Are they custom materials?
Missing Material: innertex/woodwall
Missing Material: concrete/concrete_bts_ceiling001a
Lemme know if you have any issues
from vmf2obj.
I think at one point long ago I may have imported some assets from Portal 2, I guess that could be it?
from vmf2obj.
concrete/concrete_bts_ceiling001a
is definitely from Portal 2, but I can't find innertex/woodwall
, I don't even recognize innertex
, not sure what that is or where it comes from
from vmf2obj.
So I guess I should just see what I can replace those textures with?
from vmf2obj.
Yup you can do that. "woodwall" sounds like a pretty generic name, and there seems to be other wood textures used in the map so it might be easy to find an alternative if you can't find where that texture came from
Lemme know if you have any other questions!
from vmf2obj.
Related Issues (20)
- Unterminated object at line 1 column 24570 path $.solids[0].sides[0].null HOT 3
- VPK Support of third-party games HOT 2
- SEVERE: Fatal error: [...] Unterminated object at line 1 column 1554 path $.solids[0].sides[0].null HOT 4
- Fatal Error on the reading geometry step HOT 2
- can't run, tried solutions listed in other issues, did not work HOT 2
- Missing Material HOT 5
- Texture UVs appear to be flipped HOT 2
- converting problem HOT 9
- Having terrain issue on newest version (V2.0.0) HOT 1
- Cannot open the GUI, even with Java installed and configured. HOT 1
- Trouble using custom materials/models HOT 1
- SEVERE: Error while loading vpk file: Invalid signature HOT 2
- Severe fatal error HOT 6
- Could not find QC file for model (Map from Portal 1) HOT 4
- Error when exporting map from the stanley parable to obj HOT 3
- VMF2OBJ returning empty OBJ HOT 2
- SEVERE: Fatal error: java.lang.ArrayIndexOutOfBoundsException: -1 HOT 9
- DISPLACEMENT MAPS ROTATED INCORRECTLY HOT 2
- Decompiled Portal 2 Maps always show this error.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmf2obj.