VICE: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 8: Line 8:
{{note|This steam dependent version of VICE is deprecated and will not work with the latest Steam updates.<br/>See [[Using Vice without Steam]] for more information.}}
{{note|This steam dependent version of VICE is deprecated and will not work with the latest Steam updates.<br/>See [[Using Vice without Steam]] for more information.}}


Thanks to [[User:Scottloyd|Scott Loyd]], a compiled version of the Steam independent version of VICE can be downloaded [http://www.plastic-warfare.com/files/vice.zip here in a zip file].
Thanks to [[User:Scottloyd|Scott Loyd]] and [[User:Red comet|Red Comet]], a compiled version of the Steam independent version of VICE can be downloaded [http://www.plastic-warfare.com/files/vice.zip here in a zip file].


==Execution==
==Execution==

Revision as of 00:31, 4 February 2006

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.

Note.pngNote:This steam dependent version of VICE is deprecated and will not work with the latest Steam updates.
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)]

See Also