lockexit mod ver 1.1 for Vampire:the Masquerade:Redemption By Yith 22/07/00 ---------------------------------------------- Table of Content ---------------------------------------------- Introduction Installation Usage Finding out location and exit numbers Printme file Version information Credits Intro ---------------------------------------------- This will allow the storyteller in a multiplayer game to lock and unlock level exits during a game. Also the exit state will be saved when the game is saved. Exits can be locked one way or both ways. Thankfully only the Storyteller needs this mod installed. The source code is included in the zip. Please feel free to add to/modify this code and put into your mods, but please ask me first and include me in the credits. We would like to urge everyone who makes additional mods for the Codex to please include this with their mods. (Especially considering "Redemption" only allows for _2_ codex.nob files: 1 in the main folder, and 1 in a -user defined folder. So please include it in your codex modifications to ensure future compatability.) Installation ---------------------------------------------- 1) Create a directory under the existing vampire directory 2) Unzip the codex.nob file into the directory 3) Modify the game shortcut (or create a new one) so the game runs with the "-console -user " command. 4) Run new shortcut Note: you will _need_ to use the -user command. The NOB must be named "codex.nob". As an example, create a directory named "mods". Put the "codex.nob" file in it. Your short cut will then include "-console -user mods". It should look like: "C:\Program Files\Vamipre the Masquerade Redemption" -console -user mods Or if you chose another install path - Freaky put the game in "C:\Games\Vampire". So his shortcut is "C:\Games\Vampire" -console -user mods Usage ---------------------------------------------- 1) In the game, the ST should bring up the console normally. 2) The command to enter uses the syntax: stcmd (un)lock Examples: stcmd lock 0 2 stcmd unlock 2 5 Finding out the exit numbers and level numbers ---------------------------------------------- 1) Go to your Chronicles directory, find the NSC file (eg. MP_London_Null.nsc) for the level you want. 2) Open it with Notepad. 3) To determine the number of the location - You will see lines such as ... location WestLondon l1_west.nil null mapLondonWest.nui mapLondonWestMain 0x0040 location EastLondon l1_east.nil null mapLondonEast.nui mapLondonEastMain 0x0040 location SocietyOfLeopold3 L1_SOC3.nil null mapLondonWest.nui mapSocietyOfLeopold 0x0 location SocietyOfLeopold2 L1_SOC2.nil null mapLondonWest.nui mapSocietyOfLeopold 0x0 location SocietyOfLeopold1 L1_SOC1.nil null mapLondonWest.nui mapSocietyOfLeopold 0x0 ... The locations are numbered from 0 starting at the top. So in this case WestLondon = 0 EastLondon = 1 SocietyOfLeopold3 = 2 4) To determine the number of the exit - You will see lines such as ... # WestLondon exits exit WestLondon,0 SocietyOfLeopold1,0 exit WestLondon,1 CurioShop,0 exit WestLondon,2 EastLondon,0 exit WestLondon,3 ClubTenebrae,0 ... These describe the links between levels. The numbers after the commas are the exit numbers which need to be put in the stdcmd command. 5) Note if you are locking an exit on your current level, simply use "99" for the location. 6) This will lock the door only 1 way. You will need to lock the "other side" of the door as well. To lock the door leading from West London to the Society of Leopold (while anywhere) stcmd lock 0 0 To lock the door leading from West London to the Society of Leopold (while in West London) stcmd lock 0 0 _or_ stcmd lock 99 0 As you can see, 99 is substitued for the location because you are simply locking an exit at your _current_ location. To lock the door leading from West London to the CurioShop stcmd lock 0 1 To lock the door leading from the West London to the CurioShop and vice versa stcmd lock 0 1 _and_ stcmd lock 15 0 (curio shop is location 15, and the exit is 0) To reverse all the above locks, simply replace the work "lock" with "unlock" stcmd unlock 0 0 , stcmd unlock 0 1 , stcmd unlock 15 0 Printme.txt File ---------------------------------------------- We have included a file called "lockexit_printme.txt". It contains the location and exit numbers for the multiplayer Prague, Vienna, New York, and London chronicles included with the game. With all the above information, you should be able to figure out the numbers for other chronicles (whether included with game or customer created). If you wish, you may simply print the file as is. However I would recommend cut and pasting it into another notepad window for your individual printing. (Such as cut pasting only the New York locations and exits.) This printme file was put together quickly. While Freaky did his best to make sure everything is accurate, there may be a mistake or two. If you find one, email him at freakyferretboy@hotmail.com. Version Info ---------------------------------------------- Version 1.1 - Now works with Region Exits as well as Click Exits. Version 1.0 - First Version Credits ---------------------------------------------- Yith - codex coder, author of the readme, and getting it just to work! yith@globalnet.co.uk Freaky Ferret - beta testing, the printme freakyferretboy@hotmail.com NSI_Veldrin - for supplying the original code and troubleshooting and debugging NSI_MagicMan - troubleshooting and debugging Contact me for any help/comments you might have at yith@globalnet.co.uk . Please feel free to add to/modify this code and put into your mods, but please ask me first and include me in the credits. Thanks, Yith