Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>totk-decompressionNew to Visual Studio Code? Get it now.
totk-decompression

totk-decompression

remghoost

|
165 installs
| (0) | Free
Just a simple wrapper for ZSTD
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

totk-decompression (and recompression) extension for VSCode

This tool uses https://github.com/TotkMods/Totk.ZStdTool to compress/decompress .zs files.

This extension is literally just a wrapper for it.

The .exe is not included in this extension and must be downloaded from that repo. If you follow the notification boxes on the bottom left, it will help you install it.

How to use

Run any totk. command.

Follow the prompts on the bottom right of your screen.

You must have the file you want to compress/decompress open in the text editor.

Yes I know, this part is jank. But it's the only way I could figure out how to grab which file you are looking at.

If you have a better way to do this please let me know.

A bit more detailed

After running either totk.decompress or totk.compress, choose one of the options on the bottom right.

On the first run, it will open the Totk Zstd Tool.

You need to click settings on the bottom and navigate to your romfs folder for totk.

There are three commands:

  • totk.decompress
  • totk.compress
  • totk.re-init

The first two are straight forward.

The third one is just to re-init the extension. It might bug out on you, so I'm leaving this in for the first version.

You can run these by pressing ctrl + shift + P and typing the requisite command. Type totk to see the commands.

The file will be saved in the same directory as the input file.

THIS WILL AUTOMATICALLY OVERWRITE PREXISTING FILES WITH THE SAME NAME. THIS IS YOUR WARNING.

Other

If the setup message box on the bottom right goes away, you probably have to reinstall the extension. Idk man. Coding is hard. Lol.

If you get an exec error: Error: Command failed, it's because you accidentally typed something into the text editor. We can blame me for that. I have to figure out a better way to get which file the user is looking for.

Lots of this code is jank. If anyone wants to spruce it up, please do so. The github for it is https://github.com/remghoost/totk-decompression.

Technically these should be merged into one command that automatically picks what to do depending on if the file ends in .zs. It'd be an easy fix, but I can't be bothered right now.

It's currently Windows only. It could be converted to be able to run on Linux fairly easily.

Also, I have no clue if people will even use this. I spent hours on it. Lmao. Well, it was a good learning experience regardless.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft