[Crossfire-wiki] [Crossfire DokuWiki] page added: crossfire-mapper

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Tue May 6 15:38:18 CDT 2008


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2008/05/06 15:38
User        : ryo
Edit Summary: created

**Crossfire mapper** is a tool, in ''trunk'' SVN (server/utils), that generates a catalog of maps.

The following information is generated:
  * a page per map
  * a page per region
  * a global map index
  * the world map, including regions information
  * the world map, with exits and blocking zones
  * the world map, with elevation information.

This program browses maps from the first map (HallOfSelection), only maps linked from there will be processed.

Maps are generated as the server sees them, that is with weather effects, treasures instead of markers, and things like that, unless the ''-rawmaps'' parameter is used.

For maps, 2 pictures are generated, one real size and one small-size.

Three maps are generated for the world: raw world map, world map with region information, region information only.

Maps are always sorted, by the map name (part after the last /).

Files are generated based on templates, where tags are replaced by their runtime value.

Launching the program without any argument will make it generate the files in ''working-directory/html''.

This program is not part of the build process. To build it, you need the //GD// library. Command line from the ''utils'' directory is:
<code>gcc mapper.c -I../include ../common/libcross.a -o crossfire-mapper -lm -lgd</code>

The following command line parameters are availble:

| -nopics | don't generate pictures. |
| -noindex | don't generate global map index. |
| -root=<path> | destination path. Default 'html'. |
| -limit=<number> | stop processing after this number of maps, -1 to do all maps (default). |
| -showmaps | outputs the name of maps as they are processed. |
| -jpg[=quality] | generate jpg pictures, instead of default png. Quality should be 0-95, -1 for automatic. |
| -forcepics | force to regenerate pics, even if pics's date is after map's. |
| -addmap=<map> | adds a map to process. Path is relative to map's directory root. |
| -rawmaps | generates maps pics without items on random (shop, treasure) tiles. |
| -warnnopath | inform when an exit has no path set. |
| -listunusedmaps | finds all unused maps in the maps directory. |
| -noworldmap | don't write the world map in world.png. |
| -noregionslink | don't generate regions relation file. |
| -regionslink | generate regions relation file. |
| -noexitmap | don't generate map of exits. |
| -exitmap | generate map of exits. |
| -tileset=<number> | use specified tileset to generate the pictures. Default 0 (standard). |


IP-Address  : 82.236.87.204
Old Revision: none
New Revision: http://wiki.metalforge.net/doku.php/crossfire-mapper

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list