Diablo II Gamble Filter 1.1

This short program for D2 can limit the items shown in the gamble screen,
by generating a new gamble table (gamble.txt/gamble.bin).
Can be used with LoD, text type MODs and MPQ type MODs, in SP and TCP/IP mode.
It doesn't bother running D2 in other modes, but simply takes no effect.

Usage

(1) You can edit the filter while running D2. If you do so, I recommend to exit
the current game. At the character select screen, press Alt+Tab and edit.
(2) There are 13 weapon types, 7 armor types (including Misc) and 7 class
specific items on the screen. Use the check boxes and [Check All] [Uncheck All]
buttons to select the items you like to gamble.
(3) Push [Set Filter] button to generate a new gamble table with the selected
items. Your selection is also saved and automatically reloaded next time.
(4) Start a new game to make it take effect.

Installation for Game Users

(1) Copy gamblefilter.exe and gamblefilter.lst to your Diablo II folder.
(2) Add " -direct" option to your Diablo II shortcut (You can edit the shortcut
by rihgt click and select Property).
(3) Make a shortcut for gamblefilter.exe.
(4) This program can be used with LoD. It may work with the MODs which has no
new item types, but if you aren't sure, don't try it.

Installation and Configuration for Modders

(1) If your MOD has new item types, edit the gamblefilter.lst first.
The lines start with ' are comment lines. Blank lines are also ignored.
The lines start with # are item type entries. You can't alter these lines.
Other lines under the entries are the items which belong to that type.
You can add your new items here. The format is "Item Type(TAB)Code".
The items belong to #ALWAYS always appear in the gamble screen.
#MISC is currently blank. You can use it for Jewels, Charms, etc.
The limit of gamble.txt is, I hear, 400 lines. (ie. max item = 399.)

(2a) If your MOD runs in -direct -txt mode,
Delete gamblefilter.exe and rename gamblefilter_txt.exe to gamblefilter.exe.
Copy gamblefilter.exe and  gamblefilter.lst to the folder where the "Data"
folder of your MOD exists.

(2b) If your MOD is packed in an MPQ,
Copy gamblefilter.exe and  gamblefilter.lst to the folder where your MOD runs.
("Diablo II" folder or some subfolder you assigned.)
Add "-direct" option to the shortcut for your MOD. If your MOD has no
installer, include an instrunction to edit the shortcut in the doc.
(With this setup, D2 reads the gamble.bin from the "Data" folder, and reads all
other data from your MPQ as before.)

(3) Run gamblefilter.exe and check if the generated gamble table is ok.
After test, select all items and push [Set Filter] buton to gererate the
default gamble table.
If your MOD has an installer let it make the shortcut of gamblefilter.exe.
Otherwise, include an instruction to make the shortcut in the doc.

Files

gamblefilter.exe - program for MPQ type MODs (generates gamble.bin)
gamblefilter_txt.exe - program for Text type MODs (generates gamble.txt)
gamblefilter.lst - item list
gamblefilter.txt - this file

Jul 14, 2005 written for reiyo_oki and tsuru's ES 3.00 patch
Jul 22, 2005 1.0 added a doc and zipped for public release
Jul 23, 2005 1.1 altered to generate gamble.bin for MPQ type MODs.

Please use and distribute this program freely.
Any feedback is welcome.

tsuru (tsurumurasaki)

hgb03542(atmark)nifty.ne.jp
http://homepage3.nifty.com/miyoshino/es/es3top.htm
