summary |
shortlog |
changelog |
graph |
tags |
branches |
files |
changeset |
file |
revisions |
annotate |
diff |
raw
readme.txt
| author | Rink Springer <rink@rink.nu> |
| Sun Jan 31 19:43:02 2010 +0100 (2010-01-31 ago) | |
| changeset 29 | 9d6a4a40a3dc |
| permissions | -rw-r--r-- |
Add a readme file describing how to use this stuff.
| rink@29 | 1 |
1. Introduction |
| rink@29 | 2 |
|
| rink@29 | 3 |
Back in the day, I used to play a lot of Diablo2. In order to keep track of the |
| rink@29 | 4 |
items I had collected, I made a PHP/MySQL website so that both myself as my |
| rink@29 | 5 |
friends could see what I still missed (and thus, whether it was worth to pick |
| rink@29 | 6 |
up an item or just dispose of it :-) |
| rink@29 | 7 |
|
| rink@29 | 8 |
2. Rewriting the site |
| rink@29 | 9 |
|
| rink@29 | 10 |
However, as this website worked fine, 1.10 came out, which introduced a lot of |
| rink@29 | 11 |
classy new items. As the game got a lot harder, I wanted to be able to search |
| rink@29 | 12 |
for items with properties (for example, an overview of all items which give |
| rink@29 | 13 |
+ to all resistances) - this was not feasible with the old approach (which just |
| rink@29 | 14 |
stored item properties in a MySQL TEXT field), so I decided a rewrite was in |
| rink@29 | 15 |
order. |
| rink@29 | 16 |
|
| rink@29 | 17 |
3. Implementation |
| rink@29 | 18 |
|
| rink@29 | 19 |
I chose the PostgreSQL database as it's much more feature-complete - and things |
| rink@29 | 20 |
like referential integrity and column checks are very useful. |
| rink@29 | 21 |
|
| rink@29 | 22 |
In order to easily import data, I chose to write everything down as XML which |
| rink@29 | 23 |
I could then later import into the database using Perl scripts. The XML files |
| rink@29 | 24 |
are provided in the xml/ folder, whereas the scripts are in the scripts/ |
| rink@29 | 25 |
folder. |
| rink@29 | 26 |
|
| rink@29 | 27 |
For ease of use, a complete database dump with all items imported is provided |
| rink@29 | 28 |
in sql/diablo2-filled.sql. |
| rink@29 | 29 |
|
| rink@29 | 30 |
4. License |
| rink@29 | 31 |
|
| rink@29 | 32 |
This work is licensed under the GPL license version 2 or up. All item-images |
| rink@29 | 33 |
as provided in www/images/items/ are copyright Blizzard Entertainment. |