Garry's Mod

Garry's Mod

评价数不足
Simple Addon Manager Plus
由 Joe <3 coffee 制作
Are you tired of the built-in Addon Manager of Garry's Mod? Here is a better solution. Based on LibertyForce's Simple Addon Manager, here is an upgrade with lots of new features.

In this guide, you can read about the where to get it, how to install it and how to use it. The program is still under development, can have issues. Please, if you find any glitches, report them!

Simple Addon Manager Plus (SAM+) is being made with the permission of LibertyForce based on his original code.
   
奖励
收藏
已收藏
取消收藏
About Simple Addon Manager Plus
Hello and welcome to Simple Addon Manager Plus!

A little, useful utility to manage your addons installed for Garry's Mod. The original version was created by LibertyForce, with his permission, I am allowed to improve the already pretty useful tool. I added the Plus to the name, and started the version numbering from 1.0.0. It is based on the latest published release (1.1.1) of Simple Addon Manager.

If you didn't use the original, let's see, what is it all about.
So Simple Addon Manager was supposed to be a replacement of Garry's Mod's built-in tool. Featuring full addon listing, simple, grouped enabling / disabling, add / remove custom tags, etc...
The user interface was really simple, easy to use. In overall, an awesome replacement!

I personally missed a few features, so I started to experiment with lua and tried to add new features.
So in Simple Addon Manager Plus (SAM+) 1.0.0 there are new features and bug fixes:

  • Added: Filter field. Basically a search bar to hide addons that are not containing the entered text.
  • Added: Export full list as HTML. Exports the addons list with name and link as html format. Due to limitations of GM, you'll get a .txt file and you need to rename it to .html
  • Added: Confimation for Enable and Disable ALL Addons. No more accidents! Yaaay!
  • Fixed: Now, it correctly sorts the addons based by ID. Previously, it handled them as texts instead of numbers.
  • Fixed: The manager window is smaller, and should work fine if your resolution is 720p.
  • Modified: Button removed for Add new tag to addons field, instead, after you selected your addons, just press Enter to add.
  • Modified: The whole interface is a bit more dense, smaller buttons, less unused spaces. I think it's still easy to handle. The structure of the main window is unchanged. List is on the left, buttons are on the right.
Screenshots
Installation
First, download the latest version[github.com]!

If you used LibertyForce's version, you can skip this, you already know this part.
Installation is 100% the same!

In the downloaded zip file, there are 2 files:
  • menu.lua
  • lf_simple_addon_manager.lua

Put them into ...\GarrysMod\garrysmod\lua\menu folder.

The menu.lua file is optional to copy and overwrite! However, modifications needed!
You can open your original menu.lua with any simple text editor like Notepad or Notepad++.
Don't use Word, LibreOffice Writer or Wordpad for this!
So if you opened it, insert the following to the end of the file:
include( "lf_simple_addon_manager.lua" )
I recommend to do this, when you already have modifications in your menu.lua file. Otherwise, you can just simply overwrite the original with the one from the zip file.

If you have the original LibertyForce version, you may want to make a backup of it. Also important, the file format didn't change! So your old tags should work with it. But it doesn't mean, it'll be the same format forever. Make sure you make backups of lf_addon_manager.txt. It can be found in GarrysMod\garrysmod\data folder.

If you can't locate your Garry's Mod folder, here is how to find it easily:
  • In Steam client, go to Library and find Garry's Mod.
  • Right click on it and open Properties!
  • Then go to Local Files and press Browse Local Files...

There you are! It'll be easy to navigate from here.
Usage
To use Simple Addon Manager Plus (SAM+) you'll need to open the console.
If you don't have console enabled:
  • Open Garry's Mod
  • Go to Options/Keyboard
  • On the bottom: click Advanced
  • Check Enable developer console
  • Then in the Keyboard settings, assign a key to open the console (bottom of the list)

When you have the console, opened, enter addons or addon_manager command and SAM+ will be opened.

Here, you'll see the list of your addons, you can add tags, you can search with the new filter by name field, export the full list in an ugly html format that you can send to your friends.
Addition notes
While SAM+ is pretty much usable, there can be glitches and unexpected behaviours. If you find an issue, report it to me please. Feel free to add me on steam, send a PM or comment here. Probably I'll see the PM first.

I know about the addon name issue, sometimes the programs just doesn't get the name of the addon right. I'll try to fix it!

The HTML output part is not possible to do. It's Garry's Mod reasonable limitation. It can only save into specific formats and txt was the best choice. It can't save file as html. Sadly, I can't fix that.
Future updates
You'll be easily access the new updates through SAM+ itself.
I have a few plans already, but if you have an idea, and I find it good or people really want it, I may try to implement it.

Currently planned additions:
  • Alias function for addon names. Basically you can rename them on your side. Some addon names are weird and doesn't really tell you what are they supposed to be.
  • Get tags from the addon workshop page itself. Not sure if it'll be done or necessary, I'll see. And it would be optional anyway and you would still be able to add your own tags.
  • Preset manager: basically a way to save and open your own presets. You have some addons you like to use together but you feel tags are kinda limited? Save it into a file and if you want to enable those addons, open your saved preset! Well this sounds good, but will take a while to implement. I really want this though.
  • General interface improvements. Whatever it means. Maybe I should make the interface even more useable.
  • Obviously, bug fixes.
  • Cleaner code. It's just a mess right now. Not LibertyForce's, mine.
  • Who knows, what else. Please share your ideas!
11 条留言
Katsuie~ 2020 年 2 月 19 日 上午 8:28 
i wish a new update could come ;-;
LORD_DEATHv11 2018 年 4 月 12 日 上午 10:04 
Alright, thanks for the info.
Joe <3 coffee  [作者] 2018 年 4 月 12 日 上午 4:40 
@LordDeath17

This only works with workshop addons. Not sure if it's possible to manage them as well as the workshop addons. Garry's Mod reads legacy on startup, not sure if there is a way to unmount them other than moving them to another folder.

You can move the temporarily unnecessary legacy addons to another folder. Maybe a little program would help that automatically moves the folders back and forth from the addons folder to another one that GMod ignores. Then maybe reload_legacy_addons command can reload them and ignore the ones that are really not in addons folder anymore.

So I don't know about a great solution.
LORD_DEATHv11 2018 年 4 月 10 日 上午 11:56 
@[GJ Gaming] Joe, Do either of these addons work with Legacy addons and which one would be better at managing Legacy addons.
Night 2018 年 3 月 15 日 上午 11:38 
I tried it for a bit and it does work. At first I tried to turn it into an addon, but that didn't work. But if you place it in the garrysmod folder as instructed, it works fine. The game does freeze for quite some time whenever I enable or disable addons (even if it's just a single addon). But then again I have just over 1000 addons, so that might be the reason. Also the reason why I need an addon manager so badly, specially the Presets feature.
Night 2018 年 3 月 15 日 上午 4:57 
This looks really nice and handy. I might test it later. Really looking forward to the Preset manager feature though.
Joe <3 coffee  [作者] 2018 年 3 月 4 日 上午 11:51 
Sounds like it doesn't load the lua scripts at all. That's why the command doesn't work. Does the menu.lua has the include( "lf_simple_addon_manager.lua" ) line? This is what makes the addon manager lua script load when the game's menu loads in.

You can open the menu.lua with Notepad or my recommendation is Notepad++ for things like that.
Feel free to PM me, hopefully I can help.
Joe <3 coffee  [作者] 2018 年 3 月 4 日 上午 11:04 
So it looks like I uploaded the right version. Well it kinda looks like Liberty's version since that's the base of it. So what version number did you see? You didn't have the search bar and the modified tag text input?

You got it from here, right?
https://github.com/Xcalibur10/Simple-Addon-Manager-Plus/releases/download/v1.0.0/Simple.Addon.Manager.Plus.v100.zip

I'm a bit clueless without seeing the problem, but looks like what I uploaded is the right version, may modification, and didn't upload Liberty's by accident.
Joe <3 coffee  [作者] 2018 年 3 月 4 日 上午 11:00 
Alright, let me see...
Joe <3 coffee  [作者] 2018 年 3 月 4 日 上午 4:03 
Good Boy Tiernλn Can you describe the problem? What can you see, how did you install it? Did you overwrite or deleted the old Addon Manager made by LibertyForce?