ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.69k stars 1.99k forks source link

Cannot scan map files inside vpks for embedded files. #508

Open BernardoGomesNegri opened 3 years ago

BernardoGomesNegri commented 3 years ago

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"

apchistuo commented 3 years ago

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

SC1040-TS2 commented 3 years ago

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.

geotavros commented 3 years ago

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.

SC1040-TS2 commented 3 years ago

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.