RoyAwesome / WorldSmith

Open source Dota 2 Mod Editor
MIT License
59 stars 28 forks source link

Multiple VPK Support #56

Open RoyAwesome opened 9 years ago

RoyAwesome commented 9 years ago

Worldsmith can only open one VPK at a time. Dota has multiple VPKs that it draws from and worldsmith should be able to open and index all of them

SinZ163 commented 9 years ago

This will allow for more fancy editors, as it will be able to load the flash textures

AntonAderum commented 9 years ago

Maybe we ought to open a "master-vpk" (that we make up) - and have the others be a child to that, for easy navigation in the project view.

SinZ163 commented 9 years ago

The two main vpk's inside s2dota really should appear as one in the project view, as they shouldn't really be split up in the first place, (game/dota/pak01 and game/dota_imported/pak01)

AntonAderum commented 9 years ago

Yeah. Can we find dota_english.txt in any of them? so we can replace the default heores "key" to their proper name? In the object browser that is.

SinZ163 commented 9 years ago

dota_english isn't in a vpk, its located at game/dota_imported/resource/dota_english.txt

RoyAwesome commented 9 years ago

Does that mean we need to index the dota filesystem too?

It might be worth writing a 'Dota Filesystem' that can load multiple VPKs and read from the disk, placing everything in the Dota 2 folder in the Project view.

RoyAwesome commented 9 years ago

It might be worth moving the VPK reading stuff out of DotaData and creating a VPK Service to handle the VPK operations

SinZ163 commented 9 years ago

Abstracting out the file system might be a good option, so we can simulate how the source(2) engine accesses files might be a good idea. Maybe with an option to force exclude addon though.