VICE: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Rewrite Template:Lang to Template:LanguageBar. This action was performed by a bot.)
 
(16 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[http://sostanj.net/orientacija/pot/tekma/pics/article2908.html downloads free phone ringtone] [http://luxuryguideps.com/news/uploads/media/text-581.html us robotics v.92 drivers] [http://kmsaws.com/simage/lms/r/xlaace-2552.html pink floyd the wall movie clips] [http://sabers.com.au/gallery/albums/albums/0001/comment-804.html free downloading ringtones kyocera phones] [http://associacaosalvador.com/v1/isabel457/files/news108.html national drug code ndc] [http://iskrirams.com/brateclis/conceptronic/logs/temp/sitemap.html www] [http://travelguide-bg.com/bookstore/pictures/icons/resource2085.htm sex video stream] [http://verticalworld.net/phpBB2/images/thumbs/news1723.html kings of the sun movie] [http://vitifrades.net/builder/logo/icons/page1135.html farrah fawcett gallery] [http://rivermurray.com/beta1/html/postcards/images/pics/index.htm link] [http://teambuilding-extreme.com/guide/forum/store/files/resource1888.htm car stereo installations schools] [http://aquagri.com/formularios/use/sdgf/img/sitemap.html http] [http://sangaida.lt/Files/Style/css/article-1654.htm thompson boats] [http://doxapetrousas.gr/system/data/backup/dump/page2748.html mp3 splitter joiner v2.88 crack] [http://jewemb.com/sitesjew/cache/comment405.htm wouldyouhitthis] [http://sangaida.lt/Files/Style/css/sitemap.htm domain] [http://figresearch.com/nmpdr_news/2006/09/page-1266.html der nebel] [http://doxapetrousas.gr/system/data/backup/dump/page2109.html 4entertainmentjobs] [http://www.witraktor.lt/gallery/246/ts/news-276.html money back guarantee] [http://luxuryguideps.com/news/uploads/media/text-1488.html dragon toys] [http://softwebstudios.com/aci/docs/files/text-138.htm street fighter third strike video] [http://davidkees.net/ip/files/news223.html one night in paris sample movie] [http://prazeresdovinho.com/images/galerias/14/resource1620.htm philadelphia phillies tickets] [http://kofec.or.jp/japan/data/news1/cache/page749.html big dog choppers] [http://artofenergy.com/sle/files/u3/index.html top] [http://sabers.com.au/gallery/albums/albums/0001/comment-1922.html kranti movie songs] [http://tonkinspatial.com.au/siteFiles/icons/topic-2326.html monster hunter] [http://kmsaws.com/simage/lms/r/sedneala-2028.html almost skate video soundtrack] [http://smrekovec.net/javno/turizem/icons/text-2417.html leslies pools arizona] [http://www.witraktor.lt/gallery/246/ts/news-583.html electricity line static time] [http://sangaida.lt/Files/Style/css/article-307.htm superman the movie] [http://jewemb.com/sitesjew/cache/comment1162.htm pencil fight video] [http://sabers.com.au/gallery/albums/albums/0001/comment-748.html ringtones for verizon lg phone] [http://doxapetrousas.gr/system/data/backup/dump/page1857.html delaware water gap] [http://hot-hungary.info/hungasites/files/topic-1915.htm free tracfone downloadable ringtone] [http://oneway.si/store/PDF/docs/sitemap.html www] [http://mtfestival.com/dboard/data/tmp/cache/comment-2015.htm music video codes david banner play] [http://abgoondan.com/gnuboard/data/log/cache/news2543.html alexis love] [http://yesu.net/EBpro_log/data/2003/letohen.html ohio real estate agents] [http://yangshim.com/util/wizmail/config/conf/ligetra.htm water massage] [http://smpolicy.net/_sitedata/pics/thumbs/new1116.htm oak express furniture store] [http://bskorea.com/sunny/bbs/gg_late/img/article2126.html young drag queens] [http://yesu.net/EBpro_log/data/2003/tanracel.html pink tits] [http://iskrirams.com/brateclis/conceptronic/logs/temp/topic1204.htm vicodin pill identification] [http://bengalstudlist.co.uk/petnews/wp-content/uploads/2006/fanozarqu.html skinny little girl] [http://prazeresdovinho.com/images/galerias/14/resource475.htm metaframe servers] [http://softwebstudios.com/aci/docs/files/text-832.htm brazilian bang] [http://associacaosalvador.com/v1/isabel457/files/news1000.html hawaii vacation deals] [http://www.witraktor.lt/gallery/246/ts/news-1327.html news clips video] [http://abgoondan.com/gnuboard/data/log/cache/news2375.html fetishlover] [http://prosoma.gr/el/page_backup/dump/news-1895-20080621.html rosario dawson vidcaps] [http://travelguide.bg/bookstore/pictures/thumbs/news-1453-20080626.html jenna lewis sex video clip] [http://crazyjudith.com/xaidat/wpThumbnails/pics/text-2479.htm facials sperm] [http://yesu.net/EBpro_log/data/2003/xoumonre.html snoop dog adult video] [http://artofenergy.com/sle/files/u3/nodellivi.html estate pipes] [http://afewshinypebbles.com/2007/03/images/resource2160.htm mrs.starr video] [http://sisvend.com/shopping/images/pixel/resawenba.html temperate ocean] [http://bengalstudlist.co.uk/petnews/wp-content/uploads/2006/henhenzd.html chili dog] [http://hot-hungary.info/hungasites/files/topic-2570.htm regal cinemas in bellingham movie times] [http://doxapetrousas.gr/system/data/backup/dump/page814.html volcom logo] [http://luxuryguideps.com/news/uploads/media/text-942.html movies on dvd and vhs] [http://verticalworld.net/phpBB2/images/thumbs/news2126.html movie scripts sling blade] [http://eco-move.com.pt/v_antigo/novo/templates/styles/sitemap.html main] [http://doxapetrousas.gr/system/data/backup/dump/page2487.html virgin schoolgirl] [http://yangshim.com/util/wizmail/config/conf/cazelzar.htm saleen s7 supercar] [http://jewemb.com/sitesjew/cache/comment1362.htm inflamatory bowel diseases] [http://bengalstudlist.co.uk/petnews/wp-content/uploads/2006/tasedr.html physer drugs] [http://abgoondan.com/gnuboard/data/log/cache/news183.html erectile dysfunction new drug] [http://tavernadelrei.com/vbpro/cgi/images/resource-729.html recipes with liquer] [http://sabers.com.au/gallery/albums/albums/0001/comment-305.html adrenaline crew videos] [http://davidkees.net/ip/files/sitemap.html http] [http://hozyaushka.com/forum/images/avatars/pics/comment-1469.htm gang bang swinger] [http://petercafesport.com/noticias01/authorpics/images/news1674.html outlook password recovery master serial number] [http://finalcontinue.com/Images/thumbs/resource84.htm north carolina driver license written test] [http://www.wocls.org/xlite/var/run/skins2/page-360.html education game provide used video] [http://smpolicy.net/_sitedata/pics/thumbs/new1768.htm mediterranean island] [http://smrekovec.net/javno/turizem/icons/text-1969.html ruby bridges video clips] [http://kofec.or.jp/japan/data/news1/cache/page2319.html pablo francisco videos] [http://travelguide-bg.com/bookstore/pictures/icons/resource913.htm job in sports] [http://vitifrades.net/builder/logo/icons/page10.html isa pci slot picture] [http://luxuryguideps.com/news/uploads/media/text-1056.html polyphonic downloadable ringtones] [http://plazagalleries.com/thumbs/pics/news1458.html spider man 2 movie game] [http://sisvend.com/shopping/images/pixel/elvarh.html most popular drug] [http://yangshim.com/util/wizmail/config/conf/indequas.htm jessica alba naked video] [http://davidkees.net/ip/files/news90.html sex in shower] [http://www.witraktor.lt/gallery/246/ts/news-648.html living dead girl video] [http://afewshinypebbles.com/2007/03/images/resource77.htm movie awards 2003] [http://afewshinypebbles.com/2007/03/images/resource781.htm wholesale lcd tvs] [http://teambuilding-extreme.com/guide/forum/store/files/sitemap.htm http] [http://smrekovec.net/javno/turizem/icons/text-388.html roger rabbit movie] [http://sostanj.net/orientacija/pot/tekma/pics/article4.html final fantasy 13] [http://tonkinspatial.com.au/siteFiles/icons/topic-114.html anti racism videos] [http://www.kms.si/fotobin/thumbnails/pics/new1319.htm massacre videos in iraq] [http://iskrirams.com/brateclis/conceptronic/logs/temp/topic1325.htm army builder 3.0 cracks] [http://biz-at-seoul.com/easyshop/img/item/thumbs/index.html www] [http://finalcontinue.com/Images/thumbs/resource1575.htm cryptoquip] [http://afewshinypebbles.com/2007/03/images/resource1870.htm naked women photos] [http://wineindustryjobs.com.au/images/empprof/pics/new1166.htm supreme court case juvenile death penalty] [http://iskrirams.com/brateclis/conceptronic/logs/temp/topic2242.htm puppy biting problem] [http://easytech.gr/demo/achievo/files/page513.html lampwork beads]
{{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 are multiple [[#Modified versions|modified versions]] available, each often improving on the previous. You may wish to take a look at them, as they may save you some hassle.
'''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.


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''.
{{todo|Is this still a problem today?}}


==Execution==
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.
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 all files in the current directory)]


==Changing the Key for Your Mod==
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''.
You must change the returned string in the function "GetEncryptionKey" in the gamerules. The new encryption key ''must'' be eight characters long. Use the same encryption key when running VICE.


==Decrypting Script Files==
== Alternatives ==
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)]


==Modified versions==
* [[Using Vice without Steam|Standalone Vice]] (doesn't require Steam)
* [[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: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)
* [[User:RavuAlHemio|RavuAlHemio]]'s [[User:RavuAlHemio/Vice_with_better_wildcard_handling|Standalone Vice with improved wildcard support]] (Vice3)


==See Also==
==See also==
 
* [[CTX]]
* [[CTX]]
* [[CtxConverter]]
* [[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