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

How do I check which pak files are used and other configuration issues. #19

Closed HourGlss closed 2 years ago

HourGlss commented 3 years ago

Is there a way to have your tool get the values from the configuration files of hammer? I really want to convert a "model" I made with hammer but cannot seem to get this to work. I don't know which pak files I used and while I made sure to update the paths for the hl2 pak files, that did not work. There's a LOT of .pak files in the Counter-Strike directory.

Any and all help would be greatly appreciated. Fyx#5710 on discord

Dylancyclone commented 3 years ago

Hello! You should be able to just load the _dir.vpk pak file(s) and that will load all of them. For example, common/Counter-Strike Global Offensive/csgo/pak01_dir.vpk will load all the resources for csgo. Some games have multiple pak_dirs, such as HL2 that has hl2/hl2_textures_dir.vpk and hl2/hl2_misc_dir.vpk which would both need to be loaded.

I know of the gameinfo.txt file that Hammer uses to load external content (#8), but I'm not sure if there's a list of vpks that hammer uses. If such a list exists, that would be a lot easier than manually listing each of them

GrayCatTheMemeMachine commented 2 years ago

Is there a way to have your tool get the values from the configuration files of hammer? I really want to convert a "model" I made with hammer but cannot seem to get this to work. I don't know which pak files I used and while I made sure to update the paths for the hl2 pak files, that did not work. There's a LOT of .pak files in the Counter-Strike directory.

Any and all help would be greatly appreciated. Fyx#5710 on discord

I'll go add ya on Discord.

I think I know what you're confused about. If you don't know, You don't need the ones with 0's, Or sound cache ones. You just need the dir.vpks. Example 1:

portal_pak_000.vpk
portal_pak_001.vpk
portal_pak_002.vpk
portal_pak_003.vpk
portal_pak_004.vpk
portal_pak_005.vpk
portal_pak_dir.vpk (This one!)

Example 2:

hl2_misc_000.vpk
hl2_misc_001.vpk
hl2_misc_002.vpk
hl2_misc_003.vpk
hl2_misc_dir.vpk (This one!)
hl2_pak_000.vpk
hl2_pak_dir.vpk (This one!)
hl2_sound_misc_000.vpk
hl2_sound_misc_001.vpk
hl2_sound_misc_002.vpk
hl2_sound_misc_dir.vpk (This one!)
hl2_sound_vo_english_000.vpk
hl2_sound_vo_english_001.vpk
hl2_sound_vo_english_002.vpk
hl2_sound_vo_english_003.vpk
hl2_sound_vo_english_004.vpk
hl2_sound_vo_english_dir.vpk (This one!)
hl2_textures_000.vpk
hl2_textures_001.vpk
hl2_textures_002.vpk
hl2_textures_003.vpk
hl2_textures_004.vpk
hl2_textures_005.vpk
hl2_textures_006.vpk
hl2_textures_007.vpk
hl2_textures_008.vpk
hl2_textures_009.vpk
hl2_textures_010.vpk
hl2_textures_dir.vpk (This one!)

The vpks- portal_pak_dir.vpk, hl2_misc_dir.vpk, hl2_pak_dir.vpk, hl2_sound_misc_dir.vpk, hl2_sound_vo_english_dir.vpk, hl2_textures_dir.vpk, Basically combines the "0" vpks (Like hl2_sound_misc_001 - 002 - And 003) You don't need to add each "0" vpk, Ya don't need em. You still might need external content and other pak dir stuff but yea.

Message me on Discord or here if ya need more help

Dylancyclone commented 2 years ago

Since it looks like this issue was resolved and there hasn't been any more no activity here, I'm going to close this issue. If you are still having problems please feel free to reopen or create a new issue!