Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Materials on Gmod Map #50

Open
MaxineMaxie opened this issue Jan 7, 2024 · 24 comments
Open

Missing Materials on Gmod Map #50

MaxineMaxie opened this issue Jan 7, 2024 · 24 comments

Comments

@MaxineMaxie
Copy link

I tried to convert a map that I made for gmod using the default materials but the program was unable to find a ton of the materials
Upon looking further I found the materials but they aren't packaged into a vpk and adding it as a folder doesn't work either, it still can't find it
I know that nobody is updating this program or helping people with issues anymore, but any help would be appreciated
Thanks!

Here's the log in case it helps:

Starting VMF2OBJ conversion v2.0.0
[1/5] Reading VPK file(s) and custom content...
[2/5] Reading geometry...
[3/5] Writing brushes...

Missing Material: concrete/concretefloor008a

Missing Material: plaster/plasterwall044b

Missing Material: props/carpetfloor004a

Missing Material: plaster/plasterwall044b

Missing Material: props/carpetfloor004a

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: props/carpetfloor004a

Missing Material: glass/glasswindow001b

Missing Material: glass/glasswindow001b

Missing Material: glass/glasswindow001b

Missing Material: tile/tilefloor003a

Missing Material: concrete/concretefloor016a

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: glass/glasswindow001b

Missing Material: brick/brickwall052b

Missing Material: brick/brickwall052b

Missing Material: brick/brickwall052b

Missing Material: brick/brickwall052b

Missing Material: glass/glasswindow001b

Missing Material: brick/brickwall052b

Missing Material: glass/glasswindow001b

Missing Material: brick/brickwall052b

Missing Material: glass/glasswindow001b

Missing Material: brick/brickwall052b

Missing Material: glass/glasswindow001b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: glass/glasswindow001b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: props/carpetfloor004a

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: brick/brickwall052b

Missing Material: brick/brickwall052b

Missing Material: brick/brickwall052b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: glass/glasswindow001b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: props/carpetfloor004a

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: concrete/concretefloor016a

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Missing Material: brick/brickwall052b

Missing Material: plaster/plasterwall044b

Writing Brushes... 100% [===================] 216/216 (0:00:03 / 0:00:00) 72.0/s
[4/5] Processing entities...

Processing entities... 100% [======================] 2/2 (0:00:00 / 0:00:00) ?/s
[5/5] Cleaning up...
Conversion complete! Output can be found at: C:\Users\Cassie Cat\Downloads

@Dylancyclone
Copy link
Owner

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?

@Dylancyclone Dylancyclone added the info needed Not enough information to identify problem label Jan 13, 2024
@MaxineMaxie
Copy link
Author

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.

@Dylancyclone
Copy link
Owner

Make sure you're only adding the _dir.vpk files. That file points to all the other ones ("000", "001")

@MaxineMaxie
Copy link
Author

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.

@Dylancyclone
Copy link
Owner

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/

@MaxineMaxie
Copy link
Author

MaxineMaxie commented Jan 23, 2024

I tried that and it threw this error
image
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

@MaxineMaxie
Copy link
Author

Hello? I still haven't gotten it to work :/

@MaxineMaxie
Copy link
Author

...Hello?

@Dylancyclone
Copy link
Owner

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

@MaxineMaxie
Copy link
Author

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
image

@Dylancyclone
Copy link
Owner

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?

@MaxineMaxie
Copy link
Author

@Dylancyclone
Copy link
Owner

Thanks, I am extremely busy the next few days but I will take a look once I get a chance

@MaxineMaxie
Copy link
Author

MaxineMaxie commented Mar 17, 2024

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?

@Dylancyclone
Copy link
Owner

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

@Dylancyclone
Copy link
Owner

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

@MaxineMaxie
Copy link
Author

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.

@Dylancyclone
Copy link
Owner

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

@MaxineMaxie
Copy link
Author

It's all good
I wish you the best on your computer repair
May the deals be ever in your favor

@Dylancyclone
Copy link
Owner

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

image
image

Lemme know if you have any issues

@Dylancyclone Dylancyclone removed the info needed Not enough information to identify problem label May 9, 2024
@MaxineMaxie
Copy link
Author

I think at one point long ago I may have imported some assets from Portal 2, I guess that could be it?

@Dylancyclone
Copy link
Owner

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

@MaxineMaxie
Copy link
Author

So I guess I should just see what I can replace those textures with?

@Dylancyclone
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants