Garry's Mod

Garry's Mod

Not enough ratings
PAM Automatic Map Icon Downloader
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
3.104 KB
26 May, 2022 @ 8:16am
1 Change Note ( view )

Subscribe to download
PAM Automatic Map Icon Downloader

In 2 collections by Blechi
[TTT2] Blech Dank TTT Collection
32 items
Blechkanne Addons
8 items
Description
An Extension to the PAM Map Vote Addon

It downloads missing Map Icons via the maps workshop

it works by comparing the workshop item name and the map name to find the workshop thumbnails and use them as map icons. This is also why it does not work 100% of the time


Checkout my Github[github.com]
6 Comments
mexikoedi 4 Feb @ 10:38am 
I received a new error:
[PAM Automatic Map Icon Downloader] lua/pam/client/extensions/cl_map_icons.lua:47: bad argument #1 to 'Download' (string expected, got nil)
1. Download - [C]:-1
2. unknown - lua/pam/client/extensions/cl_map_icons.lua:47

Only one player received this error and this player is playing GMod 64-Bit version.
This happened when the map vote started and also after the map changed after the person joined the round.
I hope that this error and the previous error with the additional information is helpful to solve these issues in the future.
mexikoedi 2 Jan @ 2:01pm 
The addon worked fine after the error.
It could be a non important error but I still wanted to report it.
Thanks for looking into it.
Blechi  [author] 2 Jan @ 1:47pm 
Thanks for the extensive bug report! did the addon stop working afterwards? this bug can be due to a lot of different reasons including problems with gmod caching (e.g. due to tabbing out of the game). I will try to recreate it when i find the time for it!:steamhappy:
mexikoedi 2 Jan @ 12:41pm 
Received an error in the console while playing TTT2 on a dedicated server.
The situation was the following:
The round was finished, the map vote popup appeared, then I tabbed out of the game but didn't close the map menu and I also didn't vote for anything. Then the map started to change and the error appeared.
Here the error:
[PAM Automatic Map Icon Downloader] lua/includes/extensions/file.lua:9: bad argument #1 to 'Open' (string expected, got nil)
1. Open - [C]:-1
2. Read - lua/includes/extensions/file.lua:9
3. unknown - lua/pam/client/extensions/cl_map_icons.lua:51
Blechi  [author] 2 Dec, 2023 @ 6:23am 
you sure? do you have the maps subscribed you're trying to see? it worked fine like 3 weeks ago
SaintlyDemonic 30 Nov, 2023 @ 6:21am 
Doesn't work