about map.php

map.php is a script for generating maps of chip's challenge levels on my site. please avoid hard-linking to this script as it uses a significant amount of my server's resources (which is why sometimes it takes 15 seconds to load). if you insist on hard-linking, please do not have images load automatically, but rather only when the user specifically requests an image be shown (like on my pages for individual levels).


invoking map.php:

map.php has 2 required arguments: the name of the levelset, and level number. these may be passed in one of the following ways:

map.php/name_number.gif
map.php?set=name&level=number

the former is the default because it seems to be the only way to force certain browsers (i.e. i.e.) to make the default filename name_number.gif when saving.


optional arguments:

solution
creates a blank solution box
solution=number
creates a solution box that reads number seconds
solution=bold
creates a solution box that reads the current bold score. if the level is untimed or no scores have been reported, a blank solution box is created.
options=[acdtv]+
additional options:
a
show author name
c
show cloner connections
d
show creature directions
t
show trap connections
v
hide version number
for example, "options=ct" would show both cloner and trap connections.
extra[key]=value
displays a pair of strings in the upper right corner.

the presence of optional arguments should be indicated by a ? (if one is not already present) and separated by &. for example, the following are equivalent:

map.php/pi_12.gif?solution=bold&options=va&extra[solutions]=1920
map.php?set=pi&level=12&solution=bold&options=va&extra[solutions]=1920

back