/MHP3DB

An info site for Monster Hunter Portable 3rd

Primary LanguageLuaDo What The F*ck You Want To Public LicenseWTFPL

!!!!There's not a lot here right now, but since most of the pages will be
identical to those on TriDB, those should be done fairly quickly. Adding
actual data will take some time.


Some of the gen files in data/temp depend on LuaFileSystem/lua-imlib2.


Typos:
Pouage Pectus S -> Rouage Pectus S
Urukuru Leggings S -> Urukusu Leggings S
Rangura Greaves/Leggings S -> Ranguro Greaves/Leggings S
Ghillie bow -> Ghillie Bow
Dober Legings -> Dober Leggings
Tigrex  Tasset S -> Tigrex Tasset S
Doburu Coat S -> Doboru Coat S
Jinouga  Greaves S -> Jinouga Greaves S
Doburu Leggings S -> Doboru Leggings S
There are two pieces called Ranger/Scout Belt (plate and waist)
There are two pieces called Jolly Roger Skirt

Possible typos:
Hunter Helm/Cap S -> Hunter's Helm/Cap S
Hunters Power Bow I -> Hunter's Power Bow I
Crystals Anklets -> Crystal Anklets
Grt Frggi Arm -> Grt Froggi Arm
Grt Frggi Arm+ -> Grt Froggi Arm+
GrtBaggiScraps -> GrtBaggi Scraps
Why are the Jhen waist parts called waistcoats?
Aptanoth -> Aptonoth


Red Qurpeco is used commonly, but the HR scraps are Qurupco. Perhaps one
should be changed for consistency.



Lighttpd config:
(don't copy this straight into your lighttpd.conf, read it and change it
as needed)


index-file.names += (
        "index.lua",
)

server.modules += (
        "mod_fastcgi",
        "mod_rewrite",


        # these aren't mandatory but I recommend you enable them
        # mod_expire for obvious reasons
        # mod_compress because it compresses the files in data/js to
        # like 10% of their original size (which is HUGE given how big
        # they are)

        "mod_expire",
        "mod_compress", 
)

# wrap a $HTTP[ "url" ] check around this if needed
fastcgi.server += (
        ".lua" => (
                (
                        "bin-path" => "/path/to/fcgi",
                        "socket" => "/tmp/mhp3dbFCGI.socket",
                        # each proc maxes at about 25MB of memory
                        # edit this to suit your setup
                        "max-procs" => 2, 
                )
        )
)

url.rewrite-once += (
        "monsters/?$" => "monsters.lua",
        "monsters/([A-Za-z_]+)/?$" => "monsters.lua?monster=$1",

        "weapons/?$" => "weapons.lua",
        "weapons/([a-z]+)/?$" => "weapons.lua?class=$1",
        "weapons/([a-z]+)/([A-Za-z0-9_+-]+)/?$" => "weapons.lua?class=$1&name=$2",

        "armory/?$" => "armory.lua",
        "armory/([a-z]+)/?$" => "armory.lua?class=$1",
        "armory/([a-z]+)/([A-Za-z0-9_+-]+)/?$" => "armory.lua?class=$1&name=$2",

        "items/?$" => "items.lua",
        "items/([A-Za-z0-9_+-]+)/?$" => "items.lua?item=$1",

        "builder/?$" => "builder.lua",
        "builder/([A-Za-z0-9_\-\.=]+)/?$" => "builder.lua?set=$1",

        "generator/?$" => "generator.lua",
)

# possibly change this to a $HTTP[ "url" ] regex?
# these will need changing if not installed to web root
expire.url += (
        "/css/"      => "access plus 1 months",
        "/js/"       => "access plus 1 months",
        "/data/js/"  => "access plus 1 months",
        "/data/img/" => "access plus 1 months",
)

compress.cache-dir = "/path/to/cache/"
compress.filetype = (
        "text/html",
        "text/javascript",
        "text/css",
)