Garry's Mod
Недостаточно оценок
Super Map Icon Maker + Automatic Server/Client Synchronization
   
Наградить
В избранное
В избранном
Удалить
Тип контента: Дополнение
Тип дополнения: Контент сервера
Метки дополнений: Развлечение, Реализм
Размер файла
Добавлен
Изменён
17.589 KB
18 июн. 2023 г. в 13:11
24 июн в 10:18
Обновлений: 90 (просмотреть)

Подпишитесь, чтобы загрузить
Super Map Icon Maker + Automatic Server/Client Synchronization

Описание
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
MoldyChip 3 окт в 15:57 
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  [создатель] 1 окт в 21:40 
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 окт в 16:07 
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  [создатель] 24 июн в 10:19 
I've updated the addon. Please check if it's working now
alex 23 июн в 10:01 
mapicon_syncPlayerMapIconsWithServer 0
doesn't work, it still sends files to clients
Psychotrickser  [создатель] 14 мар в 9:29 
+fixed
Issue was a recent update to Gmod that blocked render capture functions while main menu was open
Teekrieger 14 мар в 8:41 
Same issue Laci Angel described is happening to me too now. The pictures are 0 Bytes.
Psychotrickser  [создатель] 12 мар в 0:22 
+done
cd0m 11 мар в 9:59 
to be clear i referring to map icons that aren't generated by this addon
Psychotrickser  [создатель] 11 мар в 9:34 
That should be possible. I'll take a look