Garry's Mod
Map Icon Downloader
5 comentarios
Gentle Goober :3™ 2 AGO a las 18:43 
This is nice, big +Rep
Blechi  [autor] 17 SEP 2023 a las 23:59 
Will try it out ! Ty for the idea:steamthis:
EntranceJew 17 SEP 2023 a las 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
Blechi  [autor] 26 JUN 2022 a las 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 JUN 2022 a las 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.