source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

Cannot scan map files inside vpks for embedded files.

Open BernardoGomesNegri opened this issue 4 years ago • 4 comments

Map files inside vpks cannot be scanned for embedded file check. How to reproduce:

  1. Make a map
  2. Include embedded files in it
  3. Package it in a vpk
  4. Load the map

Note that on the console it says: "Couldn't open vpk.vpk/maps/map.bdp for embedded file check"

BernardoGomesNegri avatar Jan 11 '21 17:01 BernardoGomesNegri

You need to put vpk into a mod folder, not map

apchistuo avatar Feb 04 '21 23:02 apchistuo

You need to put vpk into a mod folder, not map

This is something else.

What the original issue is is that if Bernardo embeds files into a .BSP pakfile and adds the .BSP to a .VPK directory, then proceeds to load the map, the engine will seemingly fail to parse the .BSP to view its embedded contents.

It seems that most developers will tend to not do this and instead store .BSPs in an unpacked Maps folder, since .BSPs must be kept out of the .VPK directory or else they will become unreadable.

SC1040-TS2 avatar Apr 18 '21 07:04 SC1040-TS2

Afaik in Alien Swarm it works fine.

вс, 18 апр. 2021 г., 10:29 SC1040-TS2 @.***>:

You need to put vpk into a mod folder, not map

This is something else.

What the original issue is is that if Bernardo embeds files into a .BSP pakfile and adds the .BSP to a .VPK, then proceeds to load the map, the engine will seemingly fail to parse the .BSP to view its embedded contents.

It seems that most developers will tend to not do this and instead store .BSPs in an unpacked Maps folder, since .BSPs must be kept out of the .VPK directory or else they will become unreadable.

geotavros avatar Apr 18 '21 08:04 geotavros

Afaik in Alien Swarm it works fine. вс, 18 апр. 2021 г., 10:29 SC1040-TS2 @.***>: You need to put vpk into a mod folder, not map This is something else. What the original issue is is that if Bernardo embeds files into a .BSP pakfile and adds the .BSP to a .VPK, then proceeds to load the map, the engine will seemingly fail to parse the .BSP to view its embedded contents. It seems that most developers will tend to not do this and instead store .BSPs in an unpacked Maps folder, since .BSPs must be kept out of the .VPK directory or else they will become unreadable.

Based on a small amount of VDC skimming, that may be due to some sort of file formatting issue I do not fully know about.

SC1040-TS2 avatar Apr 18 '21 20:04 SC1040-TS2