Garry's Mod

Garry's Mod

AutoIcons - weapon select & kill icon generator
jini xoxo ♥ 2024 年 7 月 27 日 上午 12:29
TUTORIAL FOR CHANGING COLOR OF WEAPON SELECT ICONS
(DISCLAIMER: once you've done all of these steps, you need to unsub to autoicons on the workshop otherwise there will be conflicts.)

to change the colors of the weapon select icons, you have to extract the mod with GMAD.exe

gmad.exe is located in \GarrysMod\bin
the addon itself is located either in \GarrysMod\garrysmod\addons
OR
\steamapps\workshop\content\4000 (look for a folder called 2495300496 in this location)
(personally, i wasn't able to find it in either location, so i just downloaded it manually through a steam workshop downloader website.)

once you've located the .GMA file for autoicons, extract it with gmad.exe.
to do this, just drag the .GMA file onto gmad.exe.
if you did it correctly, the extracted folder should look like this: \ADDON_NAME_HERE\lua\autorun\client\. you should also see autoicons.lua inside of the client folder.
(the reason why i put ADDON_NAME_HERE is because when you extract the .GMA, the folder's name may be different for you. just rename that folder to autoicons to avoid confusion.)

once you've extracted it, open all the folders inside to find autoicons.lua, then open it with a text editor.
if you're using notepad++, go to line 815
if you're using normal notepad, CTRL+F and type local weaponselectcolor

now change the numbers in brackets to whatever you like!
keep in mind though, instead of the values being 0 to 255, it is 0 to 1 (with 2 decimal places of precision).
for example, if you wanted pink icons, you would type (1, 0.75, 0.87)

to convert 255 RGB color values to decimal, divide whatever value you have by 255.
for example, if you want an orange color, like (255, 115, 0)
divide 255 by 255, = 1
divide 115 by 255, = 0.45
divide 0 by 255, = 0
giving you: (1, 0.45, 0)

once you've changed the color values to your liking, save it. then go back to the root folder (the addon name), then put it in \GarrysMod\garrysmod\addons. if you copied the folders correctly, the filepath should look like this:

\GarrysMod\garrysmod\addons\autoicons\lua\autorun\client\autoicons.lua

and now, it should be done! :happy_creep:

(REMINDER: you should unsub from the workshop version once you've done this, it will conflict otherwise).
最后由 jini xoxo ♥ 编辑于; 2024 年 7 月 27 日 上午 10:48
< >
正在显示第 1 - 9 条,共 9 条留言
Motloop 2 月 19 日 上午 10:02 
Good job. But it is too complex.
Mumbles 11 月 15 日 下午 12:21 
Could i get some help please? whenever i go to drag the .gma file into gmad.exe it just closes itself instantly without making a folder or extracting anything. Am i missing something?
jini xoxo ♥ 11 月 15 日 下午 8:24 
引用自 Mumbles
Could i get some help please? whenever i go to drag the .gma file into gmad.exe it just closes itself instantly without making a folder or extracting anything. Am i missing something?

i'm not sure, i just tried it myself and it worked.
i used steamworkshopdownloader.io, followed the instructions to download steamcmd & logged in anonymously, downloaded the autoicons addon which gave me "gmpublisher.gma", and dragged the .gma onto gmad.exe, giving me the folder with everything inside.

maybe you could temporarily copy gmad.exe into the folder where you downloaded the gma?
Mumbles 11 月 22 日 下午 1:44 
okay so ive gotten it into notepad and changed the values, saved it (is it supposed to be a a text document when you save it or do i need to covert it into a .gma file again?) however my addons are located in \steamapps\workshop\content\4000 so what would the correct file pathway look like for it to work?
最后由 Mumbles 编辑于; 11 月 22 日 下午 1:45
jini xoxo ♥ 11 月 22 日 下午 7:35 
引用自 Mumbles
okay so ive gotten it into notepad and changed the values, saved it (is it supposed to be a a text document when you save it or do i need to covert it into a .gma file again?) however my addons are located in \steamapps\workshop\content\4000 so what would the correct file pathway look like for it to work?

no, look at the bottom of the post. it's supposed to be a .lua file, and you just move the folder to \GarrysMod\garrysmod\addons\

the final path should look something like:

\GarrysMod\garrysmod\addons\ADDON NAME HERE\lua\autorun\client\autoicons.lua
最后由 jini xoxo ♥ 编辑于; 11 月 22 日 下午 7:36
Mumbles 11 月 22 日 下午 9:45 
whats the process of changing a file into a .lua file is it just renaming it with a .lua or is there a bigger process? sorry if its a hassle ive never done anything like this with addons before, i appreciate the help none the less. also going through the \Garrysmod\garrysmod\addons to an empty folder with no addons present. All my addons seem to be located in the \steamapps\workshop\content\4000 folder instead so im not sure what that means for this whole process.
最后由 Mumbles 编辑于; 11 月 22 日 下午 9:56
jini xoxo ♥ 11 月 22 日 下午 9:59 
引用自 Mumbles
whats the process of changing a file into a .lua file is it just renaming it with a .lua or is there a bigger process? sorry if its a hassle ive never done anything like this with addons before, i appreciate the help none the less. also going through the \Garrysmod\garrysmod\addons to an empty folder with no addons present. All my addons seem to be located in the \steamapps\workshop\content\4000 folder instead so im not sure what that means for this whole process.

there isn't a conversion process, just rename the file extension to .lua and ur done

and it shouldn't matter that the addons folder is empty, move it there regardless
yes, steam workshop addons that u've downloaded go to \steamapps\workshop\content\4000, but for custom addons/addons you've made, you put it in \GarrysMod\garrysmod\addons\
最后由 jini xoxo ♥ 编辑于; 11 月 22 日 下午 9:59
Mumbles 11 月 23 日 下午 8:41 
thank you so much i apricate the help again. so renamed the file, put it back into the original folder, put it into \Garrysmod\garrysmod\addons. currently file pathing is \Garrysmod\garrysmod\addons\2495300496. that should be fine right or am i missing some steps? (sorry im not too tech savvy when it comes to stuff like this)
jini xoxo ♥ 11 月 24 日 上午 2:49 
引用自 Mumbles
thank you so much i apricate the help again. so renamed the file, put it back into the original folder, put it into \Garrysmod\garrysmod\addons. currently file pathing is \Garrysmod\garrysmod\addons\2495300496. that should be fine right or am i missing some steps? (sorry im not too tech savvy when it comes to stuff like this)

as long as the folder path looks something like this then it should work

\GarrysMod\garrysmod\addons\2495300496\lua\autorun\client\autoicons.lua
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50