Garry's Mod

Garry's Mod

Map Icon Downloader
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.