]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blob - mapping-MapPicture.md
Explain how to hide the powerups, weapons, health and armor items (thanks MusicGoat).
[xonotic/xonotic.wiki.git] / mapping-MapPicture.md
1 Mapping - Map Picture
2 =====================
3
4 Make your map sexy !  
5 Your map should include a preview picture. This picture will be visible from the game menu and from the servers vote screen.
6
7 In order to do so:
8 *  Load your map in the game and stay observer
9 *  Use the command `r_letterbox -1` in the console to turn off the HUD (not `r_letterbox 1` as it'd add top and bottom borders)
10 *  If your map has "waypoint" entities (like CTF or CTS maps), you can hide them with `cl_hidewaypoints 1`
11 * You may also want to hide powerups with `g_powerups 0`, as well as weapons, health and armor items with `g_pickup_items 0`. You'll need to reload the map with `restart` for these settings to take effect.
12 *  Turn off jpeg compression with `scr_screenshot_jpeg 0` to avoid a double lossy compression (you'll have to compress it to jpg later)
13 *  Take a nice screenshot with F12
14 *  Go to your Xonotic user directory, on the `data/screenshot` subdirectory. Your user directory location depends on your operating system, more information [here](https://xonotic.org/faq/#config).
15 *  Open the generated .tga screenshot with an image editor, e.g. GIMP
16 *  Crop it so that it has a 4:3 ratio, e.g. if resolution is 1366x768 then crop it to 1024x768
17 *  Scale it to 512x512 px (the resulting image should appear vertically stretched)
18 *  Save it (export in Gimp) as a JPG file (~90% quality); other formats like tga and png aren't acceptable because they generally produce much bigger files
19 *  Put it in the same location as the bsp file, with the same name (see next chapter for packaging rules).
20
21 Original source of information: https://forums.xonotic.org/showthread.php?tid=6067&pid=75757#pid75757
22
23 \<\< [First map](mapping-FirstMap) | [Packaging and releasing](mapping-packaging) \>\>
24
25 … [Creating_Maps](Creating-Maps) …