Garry's Mod

Garry's Mod

91 个评价
Map Icon Downloader
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 地图
插件标签: 快乐, 风景
文件大小
发表于
更新日期
4.853 KB
2021 年 9 月 13 日 上午 10:30
2021 年 9 月 25 日 下午 12:48
2 项改动说明 ( 查看 )

订阅以下载
Map Icon Downloader

在 Blechi 的 2 个合集中
Blechkanne Addons
8 件物品
Prophunt LAN
16 件物品
描述
Automatic Map Thumbnail / Icon Downloader

Tutorial
  1. Subscribe to the addon
  2. Get on any Map for example gm_construct
  3. Now the Addon created a thumbnail folder under garrysmod/data/map_thumbnails/maps/thumb
  4. Copy the Folder into your garrysmod/maps Folder
  5. Restart your Game
  6. Now subscribed maps should have thumbnails

Description
The Addon automatically creates a folder with missing .png map thumbnails by searching through your subscribed maps.

Works 100% clientside, no need to add it to your server


This is also works as an extension for the Partly Adequate Mapvote (PAM) LEGACY


map_icons_help
Shows a tutorial ingame how to use the Addon



Checkout my Github[github.com]
5 条留言
Gentle Goober :3™ 8 月 2 日 下午 6:43 
This is nice, big +Rep
Blechi  [作者] 2023 年 9 月 17 日 下午 11:59 
Will try it out ! Ty for the idea:steamthis:
EntranceJew 2023 年 9 月 17 日 下午 6:42 
In the code you write that you don't know how to work around addons that don't match the mapname:
- build a filetable of all the addons by doing file.Find with the addon.title from engine.GetAddons() as the scope
- look through each file table and find the one with the highest wsid
- now that you know the wsid, you already know how to get the image

here's some code I happened to be working on coincidentally github gist [gist.github.com] that you might find useful
Blechi  [作者] 2022 年 6 月 26 日 上午 11:32 
Thanks and good idea! Sadly there is no way to automate that process since gmod only allows to write into the data folder
lucasm 2022 年 6 月 26 日 上午 11:22 
This works pretty well, I found it more useful to symlink the garrysmod/data/map_thumbnails/maps/thumb folder to garrysmod/maps, that way I only need to restart and not manually move/copy the thumbnails.