summaryrefslogtreecommitdiffstats
path: root/crawl-ref/docs/develop
diff options
context:
space:
mode:
authorDavid Ploog <dploog@users.sourceforge.net>2009-10-25 08:19:18 +0100
committerDavid Ploog <dploog@users.sourceforge.net>2009-10-25 08:27:58 +0100
commit64a101af57e4f316eb57be4ed17789efcb87bd0d (patch)
tree150d8ab507c9a3781c8ab9bbd2662a493a9bf7a0 /crawl-ref/docs/develop
parent5923cd05e6f95e91e58001102b67a4d942ae2461 (diff)
downloadcrawl-ref-64a101af57e4f316eb57be4ed17789efcb87bd0d.tar.gz
crawl-ref-64a101af57e4f316eb57be4ed17789efcb87bd0d.zip
Document new vault testing function (Jude Brown).
Diffstat (limited to 'crawl-ref/docs/develop')
-rw-r--r--crawl-ref/docs/develop/level_design.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/crawl-ref/docs/develop/level_design.txt b/crawl-ref/docs/develop/level_design.txt
index be92973ab8..783871e7df 100644
--- a/crawl-ref/docs/develop/level_design.txt
+++ b/crawl-ref/docs/develop/level_design.txt
@@ -13,6 +13,7 @@ Contents: A. Introduction
I. Lua reference
J. Feature names
K. Map statistics
+ L. Map generation
A. Introduction
@@ -2008,3 +2009,32 @@ Will generate 10 dungeons. If you merely want statistics on the
probabilities of the random map on each level, use:
crawl -mapstat 1
+
+L. Map Generation
+===================
+
+Full-debug Crawl builds (see above for more information) include a test for
+generating specific vaults and outputting a copy of the map to a text file for
+inspection. This is most useful for portal and other encompass vaults which
+use randomisation heavily.
+
+To use the test, you must edit source/test/vault_generation.lua. Fill in the
+following variables:
+
+ * map_to_test: The exact name of the vault you want to generate.
+ * checks: How many times to generate the vault. Default value is 10.
+ * output_to: The basic filename to output the results of generation to. This
+ will have ".<iteration>" appended. For example, "volcano.map" will
+ result in files named "volcano.map.1", "volcano.map.2", etc.
+ * need_to_load_des: If the file is not included in one of the .des files that
+ are listed in source/dat/clua/loadmaps.lua, this should be set to true,
+ and the following variable should be set.
+ * des_file: The name of the file to load. The file should be located in the
+ source/dat folder.
+
+Once you have saved your changes, run crawl:
+
+ crawl -test
+
+Once all of the tests have been finished successfully (this may take some time)
+you should find the relevant files in your working directory.