VICE: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Rewrite Template:Lang to Template:LanguageBar. This action was performed by a bot.)
 
(36 intermediate revisions by 23 users not shown)
Line 1: Line 1:
[http://nnnslogan.freehostia.com/weird-tales.htm weird tales] [http://orel-na-vole.freehostia.com/blog/nissan-terrano17/ nissan terrano usati] [http://naughtygirl92.ifrance.com/data/milano-la.html milano la paz bolivia biglietti aerei] [http://nnnslogan.freehostia.com/anna-e8.htm anna e il freddo che ha] [http://orel-na-vole.freehostia.com/blog/diver/ diver] [http://orel-na-vole.freehostia.com/blog/musica-celtica/ musica celtica] [http://rasa18.ifrance.com/masterizzatore-esterno28/ masterizzatore esterno] [http://nnnslogan.freehostia.com/infogest.htm infogest] [http://nnnslogan.freehostia.com/frigoriferi-bar.htm frigoriferi bar] [http://naughtygirl92.ifrance.com/data/mario-winans19.html mario winans testi] [http://orel-na-vole.freehostia.com/blog/dracula-cover/ dracula cover dvd] [http://rasa18.ifrance.com/sigla-heidi/ sigla heidi] [http://rasa18.ifrance.com/www-valtellina/ www valtellina] [http://nnnslogan.freehostia.com/opel-astra75.htm opel astra sw] [http://nnnslogan.freehostia.com/jong.htm jong] [http://rasa18.ifrance.com/cavaleria-rusticana1/ cavaleria rusticana] [http://naughtygirl92.ifrance.com/data/profumo-cavalli1.html profumo cavalli man] [http://rasa18.ifrance.com/encore-eminem1/ encore eminem cd musicali] [http://nnnslogan.freehostia.com/belstaff-giubbotti1.htm belstaff giubbotti] [http://rasa18.ifrance.com/nissan-patrol6/ nissan patrol] [http://naughtygirl92.ifrance.com/data/vietcong.html vietcong 2] [http://nnnslogan.freehostia.com/telson.htm telson] [http://nnnslogan.freehostia.com/maxell-cd.htm maxell cd e dvd vergini] [http://naughtygirl92.ifrance.com/data/madre-teresa2.html madre teresa] [http://nnnslogan.freehostia.com/que-es53.htm que es alca] [http://nnnslogan.freehostia.com/belida-once.htm belida once in your life time] [http://rasa18.ifrance.com/agriturismo-italia/ agriturismo italia] [http://rasa18.ifrance.com/offerte-lavoro22/ offerte lavoro lecce] [http://nnnslogan.freehostia.com/quannhala-us.htm quannhala us] [http://orel-na-vole.freehostia.com/blog/hotel-a95/ hotel a formentera] [http://orel-na-vole.freehostia.com/blog/joca-jeux/ joca jeux] [http://nnnslogan.freehostia.com/gianni-bracci.htm gianni bracci] [http://nnnslogan.freehostia.com/calzature-donna11.htm calzature donna merrell] [http://rasa18.ifrance.com/k-maro22/ k maro midi] [http://orel-na-vole.freehostia.com/blog/offerte-viaggi9/ offerte viaggi last minute sull egitto] [http://naughtygirl92.ifrance.com/data/cd-parade.html cd parade] [http://nnnslogan.freehostia.com/autoadesivo.htm autoadesivo] [http://orel-na-vole.freehostia.com/blog/laplink-gold/ laplink gold 12] [http://nnnslogan.freehostia.com/maxtor-sata11.htm maxtor sata diamondmax 10] [http://orel-na-vole.freehostia.com/blog/vacanza-marche/ vacanza marche] [http://orel-na-vole.freehostia.com/blog/video-go/ video go kart] [http://orel-na-vole.freehostia.com/blog/imatra-dainese/ imatra dainese] [http://rasa18.ifrance.com/frigorifero-rex20/ frigorifero rex rd] [http://rasa18.ifrance.com/fornelli-gas2/ fornelli gas miele] [http://orel-na-vole.freehostia.com/blog/asl-napoli/ asl napoli] [http://orel-na-vole.freehostia.com/blog/il-gioco59/ il gioco della befana] [http://rasa18.ifrance.com/rem-this/ rem this film is on] [http://orel-na-vole.freehostia.com/blog/simple1/ simple 2] [http://nnnslogan.freehostia.com/super-catalina.htm super catalina] [http://rasa18.ifrance.com/moi-tai/ moi tai] [http://rasa18.ifrance.com/hi-end6/ hi end london 2004] [http://nnnslogan.freehostia.com/if-i26.htm if i thought you d ever change your mind] [http://rasa18.ifrance.com/angoscia/ angoscia] [http://rasa18.ifrance.com/club-hifi/ club hifi milano] [http://orel-na-vole.freehostia.com/blog/luigi-v/ luigi v] [http://orel-na-vole.freehostia.com/blog/israel-kamakawiwo6/ israel kamakawiwo] [http://orel-na-vole.freehostia.com/blog/panasonic-loghi/ panasonic loghi cellulare] [http://nnnslogan.freehostia.com/amd-sempron44.htm amd sempron 3000 boxed] [http://nnnslogan.freehostia.com/air5.htm air 97] [http://naughtygirl92.ifrance.com/data/plasma-alta2.html plasma alta definizione 42] [http://orel-na-vole.freehostia.com/blog/processori-pentium4/ processori pentium 4 3 4] [http://nnnslogan.freehostia.com/amplificatori-stereo2.htm amplificatori stereo per audiofili] [http://nnnslogan.freehostia.com/cartuccia-per.htm cartuccia per fax samsung sf 330] [http://naughtygirl92.ifrance.com/data/servizi-trading.html servizi trading] [http://rasa18.ifrance.com/filmato-uccisione1/ filmato uccisione soldato americano] [http://rasa18.ifrance.com/foto-messina/ foto messina lecce] [http://nnnslogan.freehostia.com/siam-tre2.htm siam tre piccoli porcellin] [http://naughtygirl92.ifrance.com/data/ya-no12.html ya no jalaba] [http://nnnslogan.freehostia.com/allolobophora.htm allolobophora] [http://naughtygirl92.ifrance.com/data/principe-in.html principe in bicicletta] [http://orel-na-vole.freehostia.com/blog/donazione-divisione/ donazione divisione] [http://naughtygirl92.ifrance.com/data/tetta-dure.html tetta dure it] [http://naughtygirl92.ifrance.com/data/busted-live.html busted live a ticket for everyone] [http://orel-na-vole.freehostia.com/blog/kosheen-catch1/ kosheen catch] [http://nnnslogan.freehostia.com/suprman.htm suprman] [http://naughtygirl92.ifrance.com/data/comune-di178.html comune di lugagnano] [http://rasa18.ifrance.com/donne-con19/ donne con taglia 44] [http://nnnslogan.freehostia.com/the-river2.htm the river] [http://nnnslogan.freehostia.com/case1.htm case 19] [http://naughtygirl92.ifrance.com/data/Oroscopo-gratis1.html oroscopo gratis] [http://naughtygirl92.ifrance.com/data/carbone-fossile.html carbone fossile] [http://orel-na-vole.freehostia.com/blog/www-friuliveneziagiulia/ www friuliveneziagiulia it] [http://rasa18.ifrance.com/prof-vinciguerra/ prof vinciguerra paolo millano] [http://nnnslogan.freehostia.com/normandia-anno.htm normandia anno 43] [http://nnnslogan.freehostia.com/ricevitore-gps69.htm ricevitore gps haicom] [http://naughtygirl92.ifrance.com/data/video-bionde.html video bionde xxx] [http://nnnslogan.freehostia.com/voli-per77.htm voli per istanbul] [http://naughtygirl92.ifrance.com/data/giancola-concetta.html giancola concetta] [http://nnnslogan.freehostia.com/alfieri-elio.htm alfieri elio] [http://rasa18.ifrance.com/peugeot-cc/ peugeot cc 206] [http://nnnslogan.freehostia.com/asus-pwd6.htm asus p5wd2 premium wifitv] [http://rasa18.ifrance.com/telecamera-impermeabile/ telecamera impermeabile per esterni] [http://rasa18.ifrance.com/festival-bar6/ festival bar rosso 2004] [http://orel-na-vole.freehostia.com/blog/agriturismo-aosta/ agriturismo aosta] [http://rasa18.ifrance.com/la-casa77/ la casa delle anime erranti] [http://naughtygirl92.ifrance.com/data/roma-ramazzotti.html roma ramazzotti] [http://nnnslogan.freehostia.com/nudi-femminili.htm nudi femminili] [http://rasa18.ifrance.com/maria-defilippi1/ maria defilippi foto sexsy] [http://orel-na-vole.freehostia.com/blog/abiti-sposa/ abiti sposa roma] [http://nnnslogan.freehostia.com/europa-universalis2.htm europa universalis]
{{LanguageBar|VICE}}
==Default Key==
{{toc-right}}
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.


There is a version of vice that runs independant from steam available here: [[Using Vice without Steam]]
'''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. The compiled executable must be placed in the SDK's <code>bin\<engine>\bin\</code> folder to run.


You can download the vice standalone application with wildcard support from [http://kramer.customrealms.com/ts2do/vice.zip here].
{{tip|You can find and set the encryption key for your mod in your [[GameRules]]' <code>GetEncryptionKey()</code> 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
:Decrypt files with given key.
;-newext
:New output file extension.


==Troubleshooting==
==Troubleshooting==
Most users who try Steam will get a ''problematic SteamAppId'' error.  This is due to Steam filesystem update inconsistancy. 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.
 
{{todo|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''.
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''.


==Execution==
== Alternatives ==
Execute this in the command prompt to make the .ctx files:
 
"[Source SDK Bin]\vice.exe" -x .ctx -k [Key: x9Ke0BY7 by default for HL2DM mods] [.txt filename (Use * for wildcard)]
* [[Using Vice without Steam|Standalone Vice]] (doesn't require Steam)
* [[User:Red comet|Red comet]]'s [[Vice Standalone With Wildcards|Standalone Vice with wildcard support]] (Vice2)
* [[User:RavuAlHemio|RavuAlHemio]]'s [[User:RavuAlHemio/Vice_with_better_wildcard_handling|Standalone Vice with improved wildcard support]] (Vice3)


==Changing the Key for Your Mod==
==See also==
: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" -d -x .txt -k [Key: x9Ke0BY7 by default for HL2DM mods] [.ctx filename (Use * for wildcard)]


==See Also==
* [[CTX]]
* [[CTX]]
* [[CtxConverter]]
* [[ICE]]
* [[ICE]]
* [[Using Vice without Steam]]
* [[Using Vice without Steam]]
* [[Weapon script]]
== External links ==
* [http://www.mediafire.com/?q4dqbs554p494vk (mediafire)L4D2 VScript Editor Beta 0.5 by Cynick:support nut (de)compile for l4d2]


[[Category:Glossary]] [[Category:Tools]] [[Category:Tutorials]]
{{SDKTools}}

Latest revision as of 17:42, 18 July 2025

English (en)日本語 (ja)Translate (Translate)

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. The compiled executable must be placed in the SDK's bin\<engine>\bin\ folder to run.

Tip.pngTip: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
Decrypt files with given key.
-newext
New output file extension.

Troubleshooting

Todo: 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

External links