{"id":306,"date":"2011-03-11T01:24:39","date_gmt":"2011-03-11T00:24:39","guid":{"rendered":"http:\/\/editing.worldofpadman.net\/editing_de\/?p=306"},"modified":"2021-05-21T20:05:59","modified_gmt":"2021-05-21T18:05:59","slug":"adding-a-map-to-the-create-menu","status":"publish","type":"post","link":"https:\/\/worldofpadman.net\/en\/tutorials\/adding-a-map-to-the-create-menu\/","title":{"rendered":"Adding a map to the create menu"},"content":{"rendered":"<p>This tutorial will show you how to add your own map called MyMap to the map selection in the create menu in World of Padman. Please note that this tutorial only works with World of Padman version 1.6 or higher. For further editing you will need a text editor and possibly an image editing program.<\/p>\n<h2>Creating an arena file<\/h2>\n<p>In order for the game to know which maps exist and which game modes they support, as well as providing further information, each map must be listed in a so-called <em>arena<\/em> file. In earlier versions before WoP 1.5 these files had the extension <em>woparena<\/em>. However, nothing has changed in terms of content. The name of this file can be chosen freely, because the game automatically loads all existing <em>arena<\/em> files and searches for information about the corresponding map. You should just make sure that you do not use any existing file names. A good name for the <em>arena<\/em> file would therefore be the name of your own map, in this case <em>mymap.arena<\/em>. If you want to combine several map files into one PK3 file, for example different variations of your map for different game types, you can also list them by multiple entries in a single shared <em>arena<\/em> file. The file is saved under <em>scripts\/mymap.arena<\/em>. The structure of the file content could be as follows:<\/p>\n<pre>{\r\n map&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;mymap&quot;\r\n longname&nbsp;  &nbsp;&quot;^6My^1Map&quot;\r\n type&nbsp; &nbsp;&nbsp; &nbsp;  &quot;ffa team lps syc_ffa syc_tp&quot;\r\n}\r\n{\r\n map&nbsp;   &nbsp;&nbsp; &nbsp;&nbsp;&quot;mymapBB&quot;\r\n longname  &nbsp; &quot;^6My^1Map&quot;\r\n type&nbsp; &nbsp;&nbsp; &nbsp;  &quot;bb&quot;\r\n}\r\n{\r\n map         &quot;mymapCTL&quot;\r\n longname    &quot;^6My^1Map&quot;\r\n type        &quot;ctl&quot;\r\n}<\/pre>\n<p>The file name of the map must be assigned to the parameter <em>map<\/em>, in this case <em>mymap<\/em>, because the map itself is located under <em>maps\/mymap.bsp<\/em>. This name is also displayed in the menu below the map when the mouse is hovered. The parameter <em>longname<\/em> is the actual, detailed name of the map and can be freely selected and contain color tags. It is also displayed below the map. The parameter <em>type<\/em> determines which game types the map supports. The map is only displayed in the menu if one of the game types defined here is selected in the create menu! The possible values here are:<\/p>\n<ul>\n<li>ffa &#8211; Free For All<\/li>\n<li>tourney &#8211; Tournament<\/li>\n<li>single &#8211; Singleplayer<\/li>\n<li>syc_ffa &#8211; Spray Your Color<\/li>\n<li>lps &#8211; Last Pad Standing<\/li>\n<li>team &#8211; Free For All Team<\/li>\n<li>ctl &#8211; Capture The Lolly<\/li>\n<li>syc_tp &#8211; Spray Your Color Team<\/li>\n<li>bb &#8211; Big Balloon<\/li>\n<\/ul>\n<p>These are to be entered separated by a space. Please note that the BB redirect known from earlier versions was abolished with WoP 1.6, so now each BSP file needs a separate entry in the <em>arena<\/em> file. Furthermore there is no single player game type in World of Padman. For Tournament there is no entry to select from the create menu, but the game type itself is available. All other information that might be known from Quake 3 Arena like <em>bots<\/em>, <em>timelimit<\/em> etc. have no further meaning in WoP because of the missing Singleplayer game type. They can therefore simply be omitted.<\/p>\n<h2>Embedding level shots<\/h2>\n<p>Level shots are representative images of the map, which are displayed at different places in the game. But first of all a hint about the size of the level shots. For the sake of simplicity, these should correspond to the specifications in this tutorial, as this will give them the necessary minimum size, image format and the appropriate aspect ratio. Of course you can also use higher resolution images, but this may lead to longer loading times in the create menu. If the JPG format is used, the image should not be saved progressively and we recommend a compression between 94 and 98 percent. Image formats like TGA and PNG are also supported, but will increase the size of your PK3 file. If you reduce the size of the image material while creating the level shots, it can be useful to sharpen the result afterwards. For your map you need a total of three image files; a loading image, a selection image and a preview image.<\/p>\n<div id=\"attachment_11447\" style=\"width: 686px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots01.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11447\" class=\"wp-image-11447 size-large\" src=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots01-676x380.png\" alt=\"Loading image (left), selection image (top right) and preview image (bottom right) as saved\" width=\"676\" height=\"380\" srcset=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots01-676x380.png 676w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots01-326x183.png 326w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots01-728x409.png 728w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots01-139x78.png 139w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots01.png 1280w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/a><p id=\"caption-attachment-11447\" class=\"wp-caption-text\">Loading image (left), selection image (top right) and preview image (bottom right) as saved<\/p><\/div>\n<h3>Loading image<\/h3>\n<p>The loading image is always displayed when the map is loaded. Please note at this point that since version 1.5 WoP uses the left part of the image to display the hints for the respective game type. This area should therefore be kept free. For further editing there is a useful image template <em>levelshot_border.psd<\/em>, which can be found under <em>XTRAS\/editing files<\/em> in <em>custom levelshot files.zip<\/em>. Take a nice screenshot or otherwise become artistically active and insert the result as background into the template so that it appears on the title page of the WoP comic shown. Save the level shot in the JPG format 1024&#215;1024 pxl (72dpi) under the name <em>mymap.jpg<\/em>. in the folder <em>levelshots\/<\/em> in the wop subdirectory. If the directory does not exist, you have to create it new. The aspect ratio of formerly 4:3 is then changed to 1:1, but is automatically corrected again in the game. If you do not create the loading image, a default image will be used in the menu for your map instead.<\/p>\n<div id=\"attachment_11458\" style=\"width: 686px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots04.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11458\" class=\"wp-image-11458 size-large\" src=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots04-676x507.jpg\" alt=\"Loading image in-game\" width=\"676\" height=\"507\" srcset=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots04-676x507.jpg 676w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots04-326x245.jpg 326w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots04.jpg 1280w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/a><p id=\"caption-attachment-11458\" class=\"wp-caption-text\">Loading image in-game<\/p><\/div>\n<h3>Selection image<\/h3>\n<p>Then there is the selection image that is displayed in the create menu for map selection. There is also a template <em>add_to_card_border.jpg<\/em> under <em>XTRAS\/editing files\/<\/em> in custom <em>levelshot files.zip<\/em>. So again create an image of your choice and paste it into the white rectangle on the left side of the image. It is best to use the title page section from your loading image. Save the selection image under the name <em>meinemapA.jpg<\/em> in the folder <em>levelshots\/<\/em> in the wop subdirectory in JPG format 256&#215;256 pxl (72dpi). The &#8220;A&#8221; at the end of the file name is important. The aspect ratio of formerly 4:3 is then changed to 1:1, but is automatically corrected again in the game. You can also omit the selection image, in which case the default loading image is used instead.<\/p>\n<div id=\"attachment_11454\" style=\"width: 686px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots02.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11454\" class=\"wp-image-11454 size-large\" src=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots02-676x507.jpg\" alt=\"Selection image in the create menu in-game\" width=\"676\" height=\"507\" srcset=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots02-676x507.jpg 676w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots02-326x245.jpg 326w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots02.jpg 1280w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/a><p id=\"caption-attachment-11454\" class=\"wp-caption-text\">Selection image in the create menu in-game<\/p><\/div>\n<h3>Preview image<\/h3>\n<p>The last image in the bunch is the preview image and is displayed in the create menu when you move the mouse over the selection image of your map. There is no template for this, as it is usually a representative in-game screenshot of your map. You will find instructions below for creating screenshots. Save the screenshot under the name <em>mymapB.jpg<\/em> in JPG format in the size 256&#215;128 pxl (72dpi) under <em>levelshots\/<\/em>. The &#8220;B&#8221; at the end of the file name is important. The aspect ratio of formerly 4:3 is then changed to 2:1, but is automatically corrected again in the game. If the preview image is not available, the default loading image is also used.<\/p>\n<div id=\"attachment_11455\" style=\"width: 686px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots03.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11455\" class=\"wp-image-11455 size-large\" src=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots03-676x507.jpg\" alt=\"Preview image in the create menu in-game\" width=\"676\" height=\"507\" srcset=\"https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots03-676x507.jpg 676w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots03-326x245.jpg 326w, https:\/\/worldofpadman.net\/wp-content\/uploads\/woptut_createmenulevelshots03.jpg 1280w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/a><p id=\"caption-attachment-11455\" class=\"wp-caption-text\">Preview image in the create menu in-game<\/p><\/div>\n<h3>Use the same level shots multiple times<\/h3>\n<p>If your map named <em>mymap.bsp<\/em> doesn&#8217;t support all game types within one file and you have created separate BSP files, e.g. <em>mymapBB.bsp<\/em> or <em>mymapCTL.bsp<\/em>, you could create separate level shots for them using the principle described above. For the BB version of your map this would be <em>mymapBB.jpg<\/em>, <em>mymapBBA.jpg<\/em> and <em>mymapBBB.jpg<\/em> and for the CTL version <em>mymapCTL.jpg<\/em>, <em>mymapCTLA.jpg<\/em> and <em>mymapCTLB.jpg<\/em>.<\/p>\n<p>As an alternative you can also use the level shots of the normal map for these extra BSP files by referencing them via one or more shader entries. For Big Balloon, these can look as follows and are written in one line each for the sake of compactness:<\/p>\n<pre>levelshots\/mymapBB { nomipmaps { map levelshots\/mymap.tga } }\r\nlevelshots\/mymapBBA { nomipmaps { map levelshots\/mymapA.tga } }\r\nlevelshots\/mymapBBB { nomipmaps { map levelshots\/mymapB.tga } }<\/pre>\n<p>For Capture The Lolly the entries could look like the following and are here due to the more compact representation also written in one line each:<\/p>\n<pre>levelshots\/mymapCTL { nomipmaps { map levelshots\/mymap.tga } }\r\nlevelshots\/mymapCTLA { nomipmaps { map levelshots\/mymapA.tga } }\r\nlevelshots\/mymapCTLB { nomipmaps { map levelshots\/mymapB.tga } }<\/pre>\n<p>This alternative can significantly reduce your workload, eliminates the need to store redundant data and thus reduces the size of your PK3 file. But this only makes sense if your map variants do not differ too much in setting and level structure. Alternatively, you could use shaders to reference only a part of the level shots, e.g. loading image and selection image, while the preview image is actually a separate file and shows a different content. In any case, you must create a separate entry in the <em>arena<\/em> file for each of your BSP files, as described above.<\/p>\n<h2>Taking screen shots<\/h2>\n<p>The easiest way is to take self-created screen shots for the level shots. But even here there are some tricks to get a nice result. Of course it is up to you what you and how you capture something on the screen shot. But for a level shot it is best to present the map well. To do this, you should set the graphics options to the maximum that your computer can provide. Then load your map and look for a prominent place where you can easily recognize the map. Usually this is the starting point of the spectator, in whose role you can jump. Alternatively you can use the command <em>noclip<\/em> to float through walls etc. as a normal player (does not work as a spectator). In any case, you should use the WoP console to enter some commands. You open and close the console by typing the key combination Shift+Esc. Open the console and enter the following lines and confirm with the Enter key after each command.<\/p>\n<pre>\/devmap mymap\r\n\/set cg_draw2d 0\r\n\/set cg_drawgun 0\r\n\/noclip<\/pre>\n<p>The example above loads your map <em>mymap<\/em> in developer mode, so cheats like <em>noclip<\/em> are allowed and work. <em>cg_draw2d 0<\/em> disables all elements of the HUD while <em>cg_drawgun 0<\/em> disables the display of the weapon. The <em>noclip<\/em> command in turn allows you to float through everything, so you can visit places that are otherwise inaccessible. But be aware of the unpleasant HOM effect (hall of mirror) that can occur when you are inside a brush or outside the envoronment box. The first two lines are actually enough if you are a spectator. The last two lines are useful when you move through your map as a player.<\/p>\n<p>Now find the place for your screen shot and press F12. This is the default key assignment for a screenshot in JPG format. Remember to undo the settings by entering <em>\/set cg_draw2d 1<\/em> and <em>\/set cg_drawgun 1<\/em> from the console when you want to leave the map. You can find the screen shots you made under <em>screenshots\/<\/em> in the wop folder of your Padman user directory (Windows: C:\\Users\\YourUserName\\AppData\\Roaming\\Padman\\wop\\ | Linux: ~.\/padman\/wop\/).<\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to add your own map called MyMap to the map selection in the create menu in World of Padman. Please note that this tutorial only works with World of Padman version 1.6 or higher. For further editing you will need a text editor and possibly an image editing program. [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":11450,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119,19],"tags":[68,75,89,90,35],"class_list":["post-306","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mapping","category-tutorials","tag-arena","tag-levelshot","tag-menu","tag-screenshot","tag-shader"],"_links":{"self":[{"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/posts\/306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/comments?post=306"}],"version-history":[{"count":10,"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/posts\/306\/revisions"}],"predecessor-version":[{"id":12660,"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/posts\/306\/revisions\/12660"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/media\/11450"}],"wp:attachment":[{"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/media?parent=306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/categories?post=306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/worldofpadman.net\/en\/wp-json\/wp\/v2\/tags?post=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}