Hello. I just committed a program to generate map information suitable for website display.
The program is utils/mapper.c, since it isn't (yet) included in the build process you should compile it with: gcc mapper.c -I../include ../common/libcross.a ../socket/libsocket.a -o mapper -lm -lgd You need GD (graphics library) installed to correctly build, and obviously Crossfire sources, built and installed, including installed maps. You can then simply run it (from the utils directory), and it will generate the following files: * one HTML file per map, with Crossfire's directory structure * for each map, one real-size picture and one small size * one file for each region * one global map index * one region index * the world map, 3 formats: raw world map, world map with region information, and raw region information Note that it can take 30 minutes or more to generate all pictures - subsequent runs should be faster, as pictures are only regenerated if the map is older than the picture. Since this program browses maps from the first map, only maps linked from there will be processed (for instance, the.HallOfDMs is not processed). Maps are generated as the server sees them, that is with weather effects if enabled, treasures and so on instead of markers, The program uses templates, stored in the utils/templates subdirectory. Information is available in mapper.c's header, feel free to ask if not clear enough :) If someone could tweak the build process to build (and install?) that program, that would be great! Note that I called the file 'mapper.c', but I have no objection to having it renamed to something else more linked to Crossfire :) Bugs and such can be reported to the tracker or on the list, or directly to my mail. Nicolas _______________________________________________ crossfire mailing list [email protected] http://mailman.metalforge.org/mailman/listinfo/crossfire

