VICE
Jump to navigation
Jump to search
Default Key
If you do not know the encryption key of your mod, it's probably x9Ke0BY7 (the default for HL2DM). You should encrypt your script files so they can not easily be changed by users.
Changing Encrypted Weapon Scripts
To have the ability to change the weapon scripts, a mod user would have to delete the .ctx files and create the .txt files from scratch. This makes your mod more resistant to change, which means hosted servers won't as likely have changed the weapon scripts.
Availability
The source code of a Steam dependent version of VICE is available in the Source SDK.

See Using Vice without Steam for more information.
Thanks to Scott Loyd and Red Comet, a compiled version of the Steam independent version of VICE can be downloaded here in a zip file.
Execution
Execute this in the command prompt to make the .ctx files:
"[Source SDK Bin]\vice.exe" -encrypt [Key: x9Ke0BY7 by default] -newext .ctx [.txt filenames (Use * for wildcard)]
Changing the Key for Your Mod
- You must change the returned string in the function "GetEncryptionKey" in the gamerules. The new encryption key must be eight characters long. This encryption key should be used when running VICE.
Decrypting Script Files
- If you happen to lose your .txt files and you only have their .ctx files and your mod's encryption key, you can run VICE to decrypt also:
"[Source SDK Bin]\vice.exe" -decrypt [Key: x9Ke0BY7 by default] -newext .txt [.ctx filenames (Use * for wildcard)]