Difference between revisions of "VICE"

From Valve Developer Community
Jump to: navigation, search
m (See also: Added navbox)
Line 32: Line 32:
 
* [[User:RavuAlHemio|RavuAlHemio]]'s [[User:RavuAlHemio/Vice_with_better_wildcard_handling|Standalone Vice with improved wildcard support]] (Vice3)
 
* [[User:RavuAlHemio|RavuAlHemio]]'s [[User:RavuAlHemio/Vice_with_better_wildcard_handling|Standalone Vice with improved wildcard support]] (Vice3)
  
==See Also==
+
==See also==
  
 
* [[CTX]]
 
* [[CTX]]
Line 40: Line 40:
 
* [[Weapon script]]
 
* [[Weapon script]]
  
[[Category:Glossary]] [[Category:Tools]] [[Category:Tutorials]]
+
{{SDKTools}}
 +
 
 +
[[Category:Glossary]]
 +
[[Category:Tutorials]]

Revision as of 05:32, 4 September 2011

Vice is Valve's tool for ICE encryption, a trick used mainly to protect weapon script files from modification by server admins. Only its source code is included in the SDK, but you can download a precompiled build here. It must be placed in the SDK's bin\<engine>\bin\ folder to run.

Tip:You can find and set the encryption key for your mod in your GameRules' GetEncryptionKey() function. All keys must be eight characters long! Valve keys can be found on ICE page.

Usage

vice [-quiet] [-nopause] [-encrypt key] [-decrypt key] [-newext name] file ...

-quiet
Don't print anything out, don't pause for input.
-nopause
Don't pause for input.
-encrypt
Encrypt files with given key.
-decrypt
Decypt files with given key.
-newext
New output file extension.

Troubleshooting

To do: Is this still a problem today?

Most users who try Steam will get a problematic SteamAppId error. This is due to Steam filesystem update inconsistency. It stripped one word from the gameinfo.txt and didn't notify anyone. In order to use these Steam applications you must go to the root folder of your mod or the game you want to modify, and change ToolsAppID to AppID. This will allow you to use both versions of vice and a few more programs like mdldecompiler. You must also make sure that your mod or game is selected in vconfig. If you edit your mod's gameinfo file and have Half-Life 2 selected in vconfig you will not be doing much.

If you are decrypting Valve games and not your own mods, then you will have to make this change each time you want to use vice or any other applications that give the same message. For each time you run say, Day of Defeat: Source, it creates a new GameInfo.txt file that still include Tools.

Alternatives

See also