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.)
 
(27 intermediate revisions by 20 users not shown)
Line 1: Line 1:
[http://trickropingbylassue.com/media/video/gpg/fvwuut.html canadian web hosting] [http://encksgunbarn.com/templates_c/tmp/epcrpo.html little girl showing underwear] [http://drjekyllrocks.com/photogallery/photo/1/ljmdnu.html robert smith] [http://playstation3facts.com/datas/img/icon/laiktx.html vintage porn gallery] [http://gethairless.com/media/mp3/melodiy/nmtawd.html rectal exam] [http://atlanticwindow.net/images/Doors/door/picture/jbxhos.html adobe download acrobat reader] [http://playstation3facts.com/datas/img/icon/bcjsvf.html ugly kids] [http://www.globaltable.com/imageuploads/small/dulwrk.html girls wet their pants] [http://harmonysandgravel.com/pre-art/art/cache/bdpgak.html antartica] [http://robmorgan.net/images-lancaster/lan/tmp/axikem.html cross fade] [http://robmorgan.net/images-lancaster/lan/tmp/eurqst.html arizona big camping lake] [http://secondstreetspeed.com/faq/faq/img/rxkgou.html indian fighter aircrafts] [http://consumerfireproducts.com/ccount/cache/nimtob.html 80s tv show t shirts] [http://www.globaltable.com/imageuploads/small/mmudtd.html wet spot] [http://peterlenkefi.com/photos/albums/userpics/1001/rfjoio.html john menard] [http://encksgunbarn.com/templates_c/tmp/dhqspw.html a day at the races] [http://u4it.com/images/videos/mpg/fqjcuq.html hot black] [http://robmorgan.net/images-lancaster/lan/tmp/ihspwa.html amateur gangbang] [http://playstation3facts.com/datas/img/icon/tmfckq.html sharapova nude] [http://mepacon.com/data/larp/lart/awbuce.html above ground pool covers] [http://atlanticwindow.net/images/Doors/door/picture/fcjuew.html wallace and gromit] [http://abceastpa.org/myuploads/File/tmp/knphjm.html amazing racist] [http://billdailey.net/maptest/images/rumjoc.html peterpan] [http://drjekyllrocks.com/photogallery/photo/1/ifjsew.html oakland limo] [http://mepacon.com/data/larp/lart/uiujbd.html rebecca lord] [http://metalsculptures.com/images/img/tmp/mgplix.html sex vid] [http://stargalaxypub.com/images/pics/img/sfsebm.html office porn] [http://guthsville.com/Download/Bullseye/tmp/1/riuxgj.html map of england] [http://playstation3facts.com/datas/img/icon/pidnsw.html investment advisor] [http://encksgunbarn.com/templates_c/tmp/grlecq.html namie amuro mp3] [http://waterbedheaven.com/images/premier/cache/tmp/nxrlsd.html celebrity belly button] [http://quakermaid.com/upload/tmp/euwaqg.html novartis] [http://mepacon.com/data/larp/lart/lqnned.html air tool] [http://playstation3facts.com/datas/img/icon/xmqill.html symbols of satanism] [http://drjekyllrocks.com/photogallery/photo/1/pgotqs.html saran wrap] [http://quakermaid.com/upload/tmp/bdwxth.html country lyrics websites] [http://u4it.com/images/videos/mpg/hfllcd.html cookie dough fundraiser] [http://secondstreetspeed.com/faq/faq/img/gvbxrf.html summerfest] [http://consumerfireproducts.com/ccount/cache/mtgddj.html dick flash] [http://peterlenkefi.com/photos/albums/userpics/1001/kgewuh.html guys in the locker room] [http://atlanticwindow.net/images/Doors/door/picture/aodnnx.html atk girls] [http://gethairless.com/media/mp3/melodiy/ishxjr.html eminem the way i am] [http://afpli.org/documents/cache/iwslru.html hot punk girls] [http://abceastpa.org/myuploads/File/tmp/axcgff.html arrow] [http://quakermaid.com/upload/tmp/odlssi.html drafting paper] [http://nkibuilders.com/jpg/icons/1/igaopa.html consumer reviews] [http://stargalaxypub.com/images/pics/img/tsxdsq.html cancun all inclusive trips] [http://afpli.org/documents/cache/smqlgk.html aaron carter boxers] [http://mepacon.com/data/larp/lart/hcrnma.html 50s pin up girls] [http://amfm2go.com/images/Image/img/nnwnpu.html surf naked] [http://drjekyllrocks.com/photogallery/photo/1/qbtsga.html british girls] [http://peterlenkefi.com/photos/albums/userpics/1001/ulevpf.html sarah lane playboy] [http://abceastpa.org/myuploads/File/tmp/drgeol.html nissan auto parts] [http://stargalaxypub.com/images/pics/img/jatbql.html flat panel monitors] [http://billdailey.net/maptest/images/fdqvdh.html hypnotize minds] [http://mepacon.com/data/larp/lart/whecbv.html pool porn] [http://nkibuilders.com/jpg/icons/1/wxfmcx.html mozilla] [http://stargalaxypub.com/images/pics/img/kmphhs.html daughters masterbating forum] [http://afpli.org/documents/cache/nitfkf.html for you i will] [http://www.globaltable.com/imageuploads/small/nlnouo.html i just wanna live] [http://waterbedheaven.com/images/premier/cache/tmp/jepsqp.html table tennis video clip] [http://encksgunbarn.com/templates_c/tmp/dtlrow.html biggest dick in the world] [http://drjekyllrocks.com/photogallery/photo/1/trkhvc.html people search in england] [http://quakermaid.com/upload/tmp/dgmqfa.html carnival freaks] [http://www.globaltable.com/imageuploads/small/foucco.html commercial architect] [http://www.globaltable.com/imageuploads/small/wakmjm.html 5th wheel] [http://atlanticwindow.net/images/Doors/door/picture/miqrkx.html electronic retailer magazine] [http://billdailey.net/maptest/images/aodtim.html teeny bikini contest] [http://secondstreetspeed.com/faq/faq/img/bpovlj.html san antonio corporation] [http://afpli.org/documents/cache/bvoxlb.html britney spears wet pussy for free] [http://harmonysandgravel.com/pre-art/art/cache/ilfgei.html leed application guide for schools] [http://amfm2go.com/images/Image/img/fwbxbb.html sweetheart] [http://gethairless.com/media/mp3/melodiy/cvqkfu.html mats] [http://nkibuilders.com/jpg/icons/1/pmferh.html pussy banging] [http://quakermaid.com/upload/tmp/lowtdf.html bbs boys] [http://stargalaxypub.com/images/pics/img/hgpvgb.html western belts] [http://stargalaxypub.com/images/pics/img/wotvqm.html making calendar software] [http://metalsculptures.com/images/img/tmp/isvjtm.html john allans nyc] [http://drjekyllrocks.com/photogallery/photo/1/frqpmv.html street fighter art] [http://afpli.org/documents/cache/faaldp.html hayden christenson] [http://wcmfl.org/Forms/doc/docs/komotv.html simpson teaser] [http://harmonysandgravel.com/pre-art/art/cache/blielx.html jesus christ] [http://metalsculptures.com/images/img/tmp/bggwms.html laura ingalls wilder] [http://robmorgan.net/images-lancaster/lan/tmp/rapsne.html free gay muscle movies] [http://robmorgan.net/images-lancaster/lan/tmp/pfevum.html odysseus] [http://drjekyllrocks.com/photogallery/photo/1/wcjiut.html scarlet johansson nude] [http://mepacon.com/data/larp/lart/cbihwh.html virtually there travel] [http://atlanticwindow.net/images/Doors/door/picture/wchaup.html kid wrestling] [http://drjekyllrocks.com/photogallery/photo/1/ndmkdv.html collar] [http://atlanticwindow.net/images/Doors/door/picture/dxharw.html toby] [http://waterbedheaven.com/images/premier/cache/tmp/urkwwp.html family reunions] [http://trickropingbylassue.com/media/video/gpg/thqfkc.html las vegas vacation] [http://encksgunbarn.com/templates_c/tmp/kvfnin.html redhead babes] [http://www.globaltable.com/imageuploads/small/ntvlde.html bookbags] [http://nkibuilders.com/jpg/icons/1/oobxil.html movie shark] [http://secondstreetspeed.com/faq/faq/img/lshaql.html double dick] [http://abceastpa.org/myuploads/File/tmp/tcoree.html different ways to masterbate] [http://nkibuilders.com/jpg/icons/1/emujct.html used car search] [http://wcmfl.org/Forms/doc/docs/euxpec.html uzbekistan revolt] [http://quakermaid.com/upload/tmp/hrosuk.html korean girl model]
{{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]]
* [[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