Garry's Mod

Garry's Mod

Not enough ratings
Super Map Icon Maker + Automatic Server/Client Synchronization
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Realism
File Size
Posted
Updated
17.589 KB
18 Jun, 2023 @ 1:11pm
24 Jun @ 10:18am
90 Change Notes ( view )

Subscribe to download
Super Map Icon Maker + Automatic Server/Client Synchronization

Description
Tired of making addon packs for map icons? This will help you out!
This addon allows you to semi-automate making map icons and send Map Icons to Clients. This means you won't have to make additional addons containing all the missing map icons.
It automatically detects all maps that don't have an icon yet either through themselves or additional addons. By executing a console command it takes a .PNG screenshot at your current position, names it after the map and saves it under /data/mapicon/../maps/thumb. After one second it switches to the next map that doesn't have an icon yet.
When you're done you can copy the /data/mapicon/../maps/thumb folder and paste it into your map icons addon to upload it to the workshop or you upload it to your server's /data/mapicon folder and have it be sent to all connecting clients.
Also, the addon cleans after itself. As soon as your icons addon is updated and contains the new map icons this addon will delete all the .PNGs that are now included in it.

This is a very easy way of making map icons to avoid having blank images during mapvotes.

Features
+ make screenshots through console commands
+ adjust screenshot size
+ automatically switch through maps that miss icons
+ push screenshots (max 64kb per image) onto server's data/mapicon folder through console command
+ make server send Map icons to all connecting clients
+ highlight screenshot area for better aim

Console Commands and ConVars:
+ mapicon_getMapList to retrieve list of maps that don't have an icon
+ mapicon_screenshotSize (default 312) to set widthXheight of screenshots
+ mapicon_screenshot to take screenshot and switch map automatically
+ mapicon_syncPlayerMapIconsWithServer (default 0) whether or not to send Map Icons from inside server's /data/mapicon/ folder to all connecting clients
+ mapicon_showScreenshotArea (default 0) whether or not to display a small screen showing what the screenshot will look like in the top left corner
+ mapicon_pushMapIconsToServer sends your /data/mapicon/ icons to the server's /data/mapicon/ folder
+ mapicon_switchMapAfterScreenshot whether or not to automatically switch to the next map that doesn't have an icon after taking a screenshot
+ mapicon_filebrowser open up a file browser to see your taken screenshots

How do I upload the screenshots that I've made to the server?
Your screenshots are saved in your /data/mapicon/../maps/thumb/ folder on default. In order to send them to your server you can open up the GUI, search for your previews and click on the upload button.
Alternative: just copy them to /data/mapicon/ and use the console command mapicon_pushMapIconsToServer.

How do I add these map thumbnails to the main menu so there's a preview for all maps?
Copy your made screenshots into garrysmod/maps folder and restart your game. Your main menu should have a map.thumbnail for all maps now.

Upcoming features:
- Fully automatic map icon creation
This addon will be reworked soon and receive a fancy new GUI.
This work is licensed under CC BY-NC-ND 4.0 [creativecommons.org]
27 Comments
MoldyChip 3 Oct @ 3:57pm 
sorry typo, i've also put the screenshots into my /data/mapicon/ folder and did mapicon_pushMapIconsToServer. when i type in mapicon_filebrowser it says unknown command.
Psychotrickser  [author] 1 Oct @ 9:40pm 
Please refer to the 'How do I upload the screenshots that I've made to the server?' section. The console command is mapicon_filebrowser
MoldyChip 1 Oct @ 4:07pm 
takes the screenshots but not sure how i can get them into the server and connecting to all clients, trying to do this for map icons to show up on a map vote i'm using, i've tried mapicon_syncPlayerMapIconsWithServer and mapicon_pushMapIconsToServer but they both don't seem to work, i try to type in map_filebrowser but that doesn't seem do anything.
Psychotrickser  [author] 24 Jun @ 10:19am 
I've updated the addon. Please check if it's working now
alex 23 Jun @ 10:01am 
mapicon_syncPlayerMapIconsWithServer 0
doesn't work, it still sends files to clients
Psychotrickser  [author] 14 Mar @ 9:29am 
+fixed
Issue was a recent update to Gmod that blocked render capture functions while main menu was open
Teekrieger 14 Mar @ 8:41am 
Same issue Laci Angel described is happening to me too now. The pictures are 0 Bytes.
Psychotrickser  [author] 12 Mar @ 12:22am 
+done
cd0m 11 Mar @ 9:59am 
to be clear i referring to map icons that aren't generated by this addon
Psychotrickser  [author] 11 Mar @ 9:34am 
That should be possible. I'll take a look