home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate House of Games 2000 / UHOG2000.iso / Games / Cas_Crd / sbslot / SLOT.DOC < prev    next >
Text File  |  1997-06-10  |  13KB  |  299 lines

  1. SBSlot 
  2.  
  3. (c) Scott M. Baker, smbaker@primenet.com 
  4.  
  5. -------------------------------------------------------------------------------
  6.  
  7. Purpose: 
  8.  
  9. SBSlot is a slot machine simulator. There are presently two separate programs 
  10. included in this package: 
  11.  
  12.     * SlotStat.Exe: Statistical slot simulator. Used for obtaining an accurate 
  13.       simulation of the odds/payoffs of a slot machine. Text-based output 
  14.       format. Capable of automatically simulating the slot machine for millions 
  15.       (billions?) of pulls. 
  16.     * Slot3D.Exe: Graphical 3D slot game. This requires Microsoft's DirectX 3.0 
  17.       package for Windows-95. This program is intended to function as a 
  18.       realistic slot machine game. If you need DirectX3, try searching my 
  19.       directX links page at http://smbaker.simplenet.com/directx.html. 
  20.  
  21. Installation: 
  22.  
  23. You can run the automated install program (Setup.Exe) or you can copy the files 
  24. manually into the directory of your choice. SlotStat.Exe is the statistical 
  25. program and Slot3d.Exe is the graphical game. 
  26.  
  27. SlotStat Operation: 
  28.  
  29. The initial screen will ask you to load a file; A few are supplied for you to 
  30. use. Once the slot machine file has been loaded, the screen should display the 
  31. initial state of the machine (i.e. no credits, reels at initial positions, 
  32. etc). 
  33.  
  34. Press 'Pull' to pull the handle one time. 
  35.  
  36. Press 'Run' to initiate automatic mode; The machine will be pulled several 
  37. times per second, simulating game play. 
  38.  
  39. Press 'Stop' to stop automatic mode. 
  40.  
  41. Press 'Reset' to reset the statistical data at any time. 
  42.  
  43. There is also a checkbox marked '100x Speed Mult'. This will make the machine 
  44. operate 100 times faster than the normal speed. 
  45.  
  46. Slot3D Operation: 
  47.  
  48. The initial screen will ask you to load a file.Once loaded, you should get a 3D 
  49. window displaying the slot machine. You can operate the machine by pressing the 
  50. yellow buttons or by using the pull-down menu options. 
  51.  
  52. You can pan the screen up/down/left/right by using the scrollbar controls on 
  53. the window borders. You can zoom in and out using the +/- keys or the Display 
  54. menu option. 
  55.  
  56. Several yellow buttons are present on the slot machine: 
  57.  
  58.     * [Change]: Cashes in some boney for credits. It'll automatically repeat 
  59.       the last cashing that you did. Defaults to $20. You may select other 
  60.       denominations using the pull-down menu. 
  61.     * [Cash/Credit]: In a real machine, this button cashes out your money. 
  62.       Since your PC doesn't have a Coin Hopper attached to it, this button 
  63.       doesn't do anything. 
  64.     * [Bet 1]: If you want to bet less than the 3-credit maximum, then you can 
  65.       bet one credit at a time. 
  66.     * [Spin]: Assuming you have used [Bet 1] to bet one or more credits, you 
  67.       can spin the reels. 
  68.     * [Play 3]: This plays three credits and spins the reels automatically. 
  69.  
  70. There are several display options located under the Renderand Display menus. 
  71. These modify the 3D rendering options and control a few other visual aspects. 
  72.  
  73. Note: If you are getting a very low FPS (Frames Per Second) rate, you might 
  74. want to disable (uncheck) the "Display Payoff Chart" option. 
  75.  
  76. -------------------------------------------------------------------------------
  77.  
  78. Slot Machine Basics: 
  79.  
  80. Historically, there have been several different types of slot machines: 
  81.  
  82.     * Early Mechanical. The really old 'antique' slots. 
  83.     * Electro-Mechanical. Solenoids and relays added to give more complex game 
  84.       capabilities and improve reliability. Reels are still mechanical, but the 
  85.       electronic parts perform functions like multiplication, detecting payline 
  86.       symbols, accepting multiple coins, running lights & sounds, etc. 
  87.     * Video. Rather than using mechanical reels, reels are displayed as 
  88.       'graphics' on a video screen. Probabilities/Odds entirely determined by 
  89.       computer. 
  90.     * Modern Electronic. Computerized, but with stepper motor reels. Made to 
  91.       look and feel like a mechanical machine, but it's really all computer 
  92.       based. 
  93.  
  94. With the earlier machines (Mechanical and Electro-Mechanical), the 
  95. probabilities are entirely determined by the symbols on the reels. You can 
  96. simply read the symbols off the reels and input the data into SBSlot for a 
  97. simulation. 
  98.  
  99. The newer machines (Video and Modern Electronic) are a bit more difficult. 
  100. These machines typically have some sort of virtual reels encoded into the 
  101. computer. These encodings may or may not be representative of what you see in 
  102. their displays. 
  103.  
  104. Most video machines can activate a 'reel test' diagnostic which will display 
  105. the contents of the 'virtual reels' to the video screen. These virtual reels 
  106. can be quite large, up to even 256 symbols per reel. Although it takes a long 
  107. time to get all these symbols copied down, the layout is relatively 
  108. straightforward. 
  109.  
  110. Modern Electronic machines (such as IGT's s+ series) also have a reel test 
  111. mode. However, since these machines do not have a video display, it can't 
  112. simply dump the information out to you. Instead, the machines must display the 
  113. contents of their 'virtual reels' on the 'physical reels'. This amounts to 
  114. having to spin their 'physical reels' to display each symbol on the 'virtual 
  115. reel'. 
  116.  
  117. An important note here is that the physical reel is NOT the same as the virtual 
  118. reel in the slot machine's computer. You cannot take the symbol information off 
  119. the physical reels! What the slot manufacturers have done amounts to fiddling 
  120. around with the probabilities a bit. 
  121.  
  122. Note that one machine isn't the same as another. The chips on the motherboard 
  123. determine the contents of the 'virtual reel'. Thus, one double diamond machine 
  124. may have a very different payoff from another. 
  125.  
  126. -------------------------------------------------------------------------------
  127.  
  128. Slot Machines Included 
  129.  
  130. bertha.slt: Bally 'big bertha' $1 video slot. This is a mammoth machine, 
  131. standing about six feet tall. It's got a big 27" video screen. The internal 
  132. configuration of the machine is such that there are 3 reels each with 255 
  133. symbols per reel. 
  134.  
  135. golden.slt: This is another Bally video slot. This one has four reels, each 
  136. with 64 symbols per reel. This is a $5 token machine, and has a payoff of 
  137. $5,000,000 if you hit four golden nuggets straight across. Of course, there's 
  138. only 1 golden nugget on each reel, leading to a probability of 1/64^4. 
  139.  
  140. doubled.slt: This is an IGT double diamond deluxe, one of the state-of-the-art 
  141. machines you can currently find in casinos. It's a modern electronic machine. 
  142. The physical reels have 11 symbols and 11 blank spots each, but the 'virtual' 
  143. reels have 72 symbols each,. 
  144.  
  145. The game has a few special features, including symbols that "clunk down" if 
  146. they appear above the payline. Thus, while there are a large number of blank 
  147. spaces on the reels, many of them are adjacent to a bar which will clunk down 
  148. and award you a jackpot. Note: SlotStat doesn't currently display the 'clunk' 
  149. itself, but it does account for it and display the final results correctly.
  150.  
  151. Note: The machines and trademarks mentioned above are copyrighted by their 
  152. respective manufacteres, Bally, and International Gaming Technology (IGT). 
  153.  
  154. -------------------------------------------------------------------------------
  155.  
  156. .slt files 
  157.  
  158. Slot machine data is stored in .slt files. The format is as follows: 
  159.  
  160. There are three sections, for symbols, reels, and payoffs respectively. Each 
  161. section is seperated by a "%%". The final section should have a "%%" after it. 
  162.  
  163. You'll also find several special tags that are specified by a percent sign and 
  164. a name, for example "%sndmusic". These are used to specify various attributes. 
  165. Most should be fairly self-evident if you want to tinker around with them. 
  166.  
  167. symbols: 
  168.  
  169. The format is: 
  170.  
  171.     [character] [filename] [description] 
  172.  
  173. Fields are specified as follows: 
  174.  
  175.     * [character]: One-letter identifier that you'll use to refer to the symbol 
  176.       in the reel and payoff sections. 
  177.     * [Filename]: Identifies the image that will be displayed in the Graphical 
  178.       3D version. All files are assumed to be BMP files and no extention is 
  179.       specified. Direct3D handles textures better if multiple textures are 
  180.       grouped into the same file (i.e. four textures stored in a 256x256 file 
  181.       is better than four 64x64 files). There are several ways to specify the 
  182.       texture filename/format: 
  183.           * Simple filename (no extention). The entire file will be treated as 
  184.             the texture for the symbol. 
  185.           * Filename (no extention) with a slash and a number [1-4]. The file 
  186.             will be treated as a 2x2 grid of textures. The numbering works as 
  187.             follows: 
  188.             ┌────────────┬────────────┐
  189.             │filename/1  │filename/2  │
  190.             ├────────────┼────────────┤
  191.             │filename/3  │filename/4  │
  192.             └────────────┴────────────┘
  193.           * Filename (no extention) with a slash and a letter [a-p]. The file 
  194.             will be treated as a 4x4 grid of textures. (sym256.bmp and 
  195.             sym512.bmp are set up this way) The numbering works as follows: 
  196.             ┌────────────┬────────────┬────────────┬────────────┐
  197.             │filename/a  │filename/b  │filename/c  │filename/d  │
  198.             ├────────────┼────────────┼────────────┼────────────┤
  199.             │filename/e  │filename/f  │filename/g  │filename/h  │
  200.             ├────────────┼────────────┼────────────┼────────────┤
  201.             │filename/i  │filename/j  │filename/k  │filename/l  │
  202.             ├────────────┼────────────┼────────────┼────────────┤
  203.             │filename/m  │filename/n  │filename/o  │filename/p  │
  204.             └────────────┴────────────┴────────────┴────────────┘
  205.           * The single string "blank". This will be treated as a pure white 
  206.             (RGB=1,1,1) ;space, and not read from an actual bmp file. 
  207.  
  208.     * [description]: Textual description/name of the symbol. 
  209.  
  210. You can also prefix a symbol by (wild) if it is wild, (double) if it should 
  211. double the jackpot, (up) if it should 'clunk' up, and (down) if it should clunk 
  212. down. 
  213.  
  214. '*' is a special symbol meaning 'any' and should not be used here. 
  215.  
  216. Example, "a 1bar single bar" 
  217.  
  218. reels: 
  219.  
  220. All reels are speficied on one line, with one reel symbol per line. (That 
  221. probably didn't make any sense. here's an example) 
  222.  
  223. [reel 1 sym 1] [reel 2 sym 1] [reel 3 sym 1] 
  224.  
  225. [reel 1 sym 2] [reel 2 sym 2] [reel 3 sym 2] 
  226.  
  227. ... 
  228.  
  229. [reel 1 sym n] [reel 2 sym n] [reel 3 sym n] 
  230.  
  231. I hope that made more sense. Here's a concrete example: 
  232.  
  233. c 1 2 
  234.  
  235. 7 3 3 
  236.  
  237. g 0 g 
  238.  
  239. Reel #1 would have the symbols "c", "7", and "g" (top to bottom). Reel #2 would 
  240. have "1", "3", and "0". Reel #3 would have "2", "3", and "g". 
  241.  
  242. Payoffs: 
  243.  
  244. This is the most complicated section. Each payoff begins with a character for 
  245. each reel symbol. Then theres a carat (^) followed by one or more payoff amount 
  246. (in coins), followed by another carat (^) followed by a textual description. 
  247.  
  248. For example, 
  249.  
  250. "c c c ^ 2 ^ Cherry-Cherry-Cherry", This could mean 2 credit payoff for three 
  251. cherries 
  252.  
  253. You can use a + to specify the symbol can be above or below the payline as 
  254. well. For example, 
  255.  
  256. "+g +g +g +g ^ 1000 ^ gold-gold-gold-gold", This could mean four golden nuggest 
  257. left to right, on above or below the payline. 
  258.  
  259. Enclosing multiple symbols in braces means any symbol could match. For example, 
  260.  
  261. "[123] [123] [123] ^ 100 any bar-any bar-any bar", could be used to match any 
  262. series of bars. (assuming 1 = single bar, 2 = double bar, 3 = triple bar) 
  263.  
  264. You can use an asterisk (*) to denote anything (including a blank) may match. 
  265. For example, 
  266.  
  267. "c * * ^ 1 ^ cherry-any-any", could be used to match a single cherry. 
  268.  
  269. -------------------------------------------------------------------------------
  270.  
  271. Revision History 
  272.  
  273.     * Version 1.0 
  274.           * Initial Public Release 
  275.     * Version 1.1 
  276.           * Fixed problem with each 'pull' being counted twice 
  277.           * Fixed payoff problems in golden nugget 
  278.     * Version 1.2 
  279.           * Finsihed 3D version. 
  280.     * Version 1.3 
  281.           * Fixed numerical inconsistency on pay chart for LOD slot machine 
  282.           * 3D Version: Improved error handling if another DirectX app loaded 
  283.             while slot is running 
  284.  
  285. -------------------------------------------------------------------------------
  286.  
  287. Contacting me: 
  288.  
  289. You can reach me by email at smbaker@primenet.com. 
  290.  
  291. You can find sbslot at 
  292.  
  293. http://smbaker.simplenet.com/sbslot/sbslot.html. 
  294.  
  295. --- or --- 
  296.  
  297. http://www.primenet.com/~smbaker/sbslot/sbslot.html. 
  298.  
  299.