diff -r fdc71ac8db83 -r 21830c0b19f3 PresetMaps.wiki --- a/PresetMaps.wiki Tue Jun 11 21:05:44 2013 +0000 +++ b/PresetMaps.wiki Wed Jun 19 00:44:18 2013 +0000 @@ -25,6 +25,20 @@ * _Data/Maps/Sheep_ * etc. +== Mission Maps == + +Missions may use preset maps that aren't located in the *Data/Maps* directory. + +A mission may contain in the same directory with mission's lua script a .hwp file. + +This file is a zip file with an altered extension from *.zip* to *.hwp* and it contains the directory *Maps/some_name*. + +In the *some_name* directory the files map.cfg, map.png and mask.png are located. See the Basic Files section for more on these files. + +The name of the *.hwp* file should be the same with the mission script. + +In the mission script's onGameInit(), map should be set to *some_name*. See [LuaAPI] for more about onGameInit(). + ---- = Files =