ConstSwaps archives into the running game and waits until the swap is done. One swap runs at a time; calls made meanwhile wait their turn.
Name each file by a path: absolute, or in your package's folder. A name alone,
such as "MyMod.archive", is an archive already in archive/pc/mod, reloaded as
it is. .archive files and ArchiveXL's .xl and .yaml files are accepted.
An archive that changes the game's sound paks (.opuspak, .opusinfo, such as
EDGEwave's sound overrides) is swapped with the game paused and its audio held, and
then the game's sound index is loaded again, so the new sounds play; sound in the
answer says how it went. A sound that played just before the swap may keep its old
version until the game loads it again (for a weapon, equip it again).
Then the clothing V wears applies its appearance again, so it shows the new version
while staying worn (refreshed in the answer lists it; { refresh: false } skips it).
The inventory's preview of V is refreshed in the same slots (preview in the answer).
Other things already in the world keep the old version until they load it again.
Throws when the package lacks the archives permission, at the main menu, when
neither REDswap nor RED Hot Tools is loaded, or when a file is missing; also for a sound archive on a
game version whose sound tables REDnode does not know (install it and restart
instead). A file that could not be swapped is in failed, not thrown.
Reads the game's sound pak index and the paks it has open, without changing them. Experimental: a diagnostic for the research into swapping sound paks (H1c); see SoundState. Give sound ids (the 32-bit ids an opusinfo lists) to see where the index puts them. Needs no permission. Throws when REDnode does not know this game version's sound tables.
Hot-loading archives into the running game.