How to create a DDS layout map image of your map
Creating the DDS Layout Map Image
Thanks to Shoot for the work put into this tutorial
The layout image is the image that is displayed when you select the View Map tab in the ingame menu.
This image can start from any image file type just as long as it ends up being a DDS image with the following properties:
Actually the image doesnt have to be 1024x1024 - it could be 1024x2048 but there would be a bit of distortion, not to mention being a larger file size. The CoD Stock maps have a layout image of 1024x1024 so that is what I recommend.
hud@layout_
and the mapnamehud@layout_mybspmapname
It is important that both parts are there.Now you have your Layout image in the correct format, but where does it go?
hud@layout_mybspname.dds
file inside the layouts folder.Your path should be: levelshots/layouts It is important to keep this path when creating pk3 files for distribution.
Now you need to add it to the mybspname.gsc file.
Make sure the line of code: game["layoutimage"] = "mybspname"; is in the gsc file or your layout image will not be loaded.
main()
{
mapsmp_load::main();
game["allies"] = "american";
game["axis"] = "german";
game["american_soldiertype"] = "airborne";
game["american_soldiervariation"] = "normal";
game["german_soldiertype"] = "fallschirmjagergrey";
game["german_soldiervariation"] = "normal";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["layoutimage"] = "mybspname";
}
The GSC file goes in the maps/mp folder along with your bsp map.