Garry's Mod

Garry's Mod

Map Icon Downloader
4 Comments
Blechkanne  [author] 17 Sep, 2023 @ 11:59pm 
Will try it out ! Ty for the idea:steamthis:
EntranceJew 17 Sep, 2023 @ 6:42pm 
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  [author] 26 Jun, 2022 @ 11:32am 
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 Jun, 2022 @ 11:22am 
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.