Repository navigation
Map Pictures
Pictures for the workshop and custom maps on your server, on MapChooser's and MixScrims' map pages. You build them into a Workshop addon of your own and serve it beside CustomHUD's, so a new picture takes an update of your addon alone.
- A map without a picture shows its prefix, such as
AWP, orWSfor a workshop map whose name has none. - A picture named after a stock map replaces its screenshot, and the map keeps its logo.
- Players need both addons. A player without yours sees the prefix, or a stock map's own screenshot.
Name each picture after the map's Id in MapChooser's or MixScrims' maps.jsonc, lower-case and without ws:. Save it as a PNG, 16:9, such as 640×360.
Id in maps.jsonc
|
Picture |
|---|---|
"3070923343" or "ws:3070923343", a workshop map |
3070923343.png |
"awp_lego_2", a map loaded by name |
awp_lego_2.png |
None, with "Name": "awp_lego_2"
|
awp_lego_2.png |
A map loaded by name gets a picture only when its name has a prefix and an underscore, such as awp_lego_2. Put every picture in one folder, panorama\images\custom_game\customhud\maps\ under your addon's sources, such as C:\myserver_maps\panorama\images\custom_game\customhud\maps\.
Clone CustomHUD, then run generate-locker-art.ps1 from its folder with PowerShell 7:
pwsh -File scripts/generate-locker-art.ps1 -Server -Pictures C:\myserver_maps\panorama\images\custom_game\customhud\maps -Output C:\myserver_maps\panorama\styles\custom_game\customhud\server_maps_custom.vcss
It writes server_maps_custom.vcss, which takes the place of the empty file of that name in CustomHUD's addon. A picture named any other way, any file that is not a PNG, and any subfolder stop it, naming the file or folder. Run it again whenever you add, rename or remove a picture.
An addon made for CustomHUD v1.1.0 ships server_maps.vcss instead. Rename it to server_maps_custom.vcss, otherwise it would overwrite CustomHUD's own sheet, and delete the old server_maps.vcss and server_maps.vcss_c from your addon's folders before you publish again.
CS2 loads only compiled _c files. Create an addon in CS2 Workshop Tools, such as myserver_maps, then compile your sources into it with watch-panorama.ps1:
pwsh -File scripts/watch-panorama.ps1 -Addon myserver_maps -Source C:\myserver_maps\panorama -Once -SkipClient
| What | Path |
|---|---|
| Sources | C:\myserver_maps\panorama\ |
| Compiled | <CS2>\game\csgo_addons\myserver_maps\panorama\ |
<CS2> is CS2's folder: C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive. The script lists any file in the addon from outside -Source as left over, so keep all of the addon's sources in that folder, a layout variation's included.
- Publish the addon from Workshop Tools and note its Workshop id.
- Add the id to
Main.Addonsin AddonsManager'sconfig.jsonc, beside CustomHUD's"3834965450". - Restart the server, so players download both.
An addon of yours already served, such as a layout variation's, can hold the pictures instead.
| Check | Expect |
|---|---|
!nominate in mouse mode |
Your pictures on their maps' cards, with no stripes round them |
!nominate in a keyboard mode |
The same pictures on the rows' tiles |
A map with no picture, in mouse mode |
Its prefix over stripes, such as AWP
|
A stock map you gave a picture, in mouse mode |
Your picture, with the map's logo on its corner |
A map that still shows its prefix: Troubleshooting.