Source 2 Viewer v0.2.1
Recovery of deleted files from VPK archives, ARM builds, a new decompiler for compiled shaders, and a separate tab for map entities.
CLI
- Added arm/arm64 builds
- Added
--recursive_vpkoption
GUI
- Added support for recovering deleted files in vpk archives
- It tries to automatically detect resource types
- See @PistonMiner's post here for more details on this
- Added support for embedded animations in vagrp
- Added support for automatically finding bare files on disk when opening a model
- Render entity lumps into a separate tab
- Normalize line endings in text viewer
- Do not crash when settings.txt fails to load
Library
- New vcs (compiled shader) decompiler
- Added entity I/O output in entity lump dump
- Added
Resource.FullFileSizeto attempt to calculate full buffer size of a resource file- Metadata does have a file size, but it excludes sound and texture data
- Added
Texture.CalculateTextureDataSizemethod to return full texture buffer size- For block compressed textures this is as simple as summing up all mipmap level sizes
- For PNG textures, it will check for a valid header and scan all the PNG chunks until the end
- This does not work for JPEG files at the moment
- Added
verifyFileSize(default true) toResource.Readto verify that the provided stream was fully consumed by VRF - Added vanmgrph, vcdlist, and vdata resource type auto detection
- Added detection of resource type from singular input dependency in REDI
- Skip weights that are not vec4 during glTF export
- Fixed crash when determining file type from extensionless file name
- Fixed crash with duplicate key names in
SoundStackScriptValue - Fixed mipmap level calculation for small textures