Garry's Mod

Garry's Mod

Map Icon Downloader
5 kommentarer
Gentle Goober :3™ 2. aug. kl. 18:43 
This is nice, big +Rep
Blechkanne  [ophavsmand] 17. sep. 2023 kl. 23:59 
Will try it out ! Ty for the idea:steamthis:
EntranceJew 17. sep. 2023 kl. 18: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
Blechkanne  [ophavsmand] 26. juni 2022 kl. 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 26. juni 2022 kl. 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.