-
Notifications
You must be signed in to change notification settings - Fork 105
feat: Load & Enable LabAPI plugins in Plugins folder #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
idk how, but the plugin tried to load a plugin twice for me, this at least eliminates the weirdness of seeing the load message twice
|
fyi, https://github.com/northwood-studios/LabAPI/blob/a50115ad5e316f914f96ff8b4f8d831abc8b44b6/LabApi/Loader/PluginLoader.cs#L171 exists. Probably should be used. |
That only loads those methods into LabAPI's lists and hashsets etc... which is useless after LabAPI has loaded every plugin, the EnablePlugins / EnablePlugin methods also call Plugin::LoadConfigs which call a LabAPI extension method which checks for the configs in LabAPI's configs, which kinda defeats the purpose of this PR. Now it's not like I didn't see those methods, I just basically copy pasted what I needed from them and filled in the gaps. Also the PluginLoader class doesn't even have a method to disable plugins |
| /// Attempts to load a config for a LabAPI plugin. | ||
| /// </summary> | ||
| /// <param name="plugin">The LabAPI plugin.</param> | ||
| /// <remarks>I love it when the modding framework people call the best has all plugin loading methods private and the config loading methods don't take custom directory paths.</remarks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💀🤯
commit dd22906 Author: @Someone <45270312+Someone-193@users.noreply.github.com> Date: Mon Dec 15 13:47:26 2025 -0500 version bump commit 7df90e8 Author: @Someone <45270312+Someone-193@users.noreply.github.com> Date: Mon Dec 15 13:44:33 2025 -0500 feat: PR for 14.2.3 (#689) * thing * Fix Error * more thing * Fix Jailbird HitReg being removed * 14.2.3 - Documentation & Version update * Player::Cassie(global::Cassie.CassieAnnouncement) * Lift::ElevatorAutoReturn and doc * HELPPP HELP MEEEEEE HELPPPPPPPPPP AAAAAAAAAAAAAAAAAAAAA (this stuff is untested btw) * Fixes * consolidate stuff in some event args --------- Co-authored-by: Yamato <66829532+louis1706@users.noreply.github.com> commit 3a36e47 Merge: 1521dec 3a44a45 Author: @Someone <45270312+Someone-193@users.noreply.github.com> Date: Fri Nov 14 11:06:37 2025 -0500 feat: Version Bump for 14.2.2 (#683) I bump version commit 3a44a45 Author: @Someone <45270312+Someone-193@users.noreply.github.com> Date: Fri Nov 14 10:19:29 2025 -0500 version bump commit 1521dec Author: Yamato <66829532+louis1706@users.noreply.github.com> Date: Wed Nov 5 14:11:01 2025 +0100 fix: Updater ExiledDirectoryPath not being respected This was found by the Github GPT and i am surprised of it commit 22fcfef Author: @Someone <45270312+Someone-193@users.noreply.github.com> Date: Tue Nov 4 23:22:05 2025 -0500 fix: Loader accidentally loading duplicate LabAPI plugins already loaded by LabAPI Loader commit 9144e08 Author: Yamato <66829532+louis1706@users.noreply.github.com> Date: Tue Nov 4 21:41:08 2025 +0100 fix: OnItemAdded being called after OnItemRemoved (#675) * Fix OnItemAdded being called after OnItemRemoved * Update T4 file * FixOnAddedBeingCallAfterOnRemoved commit a6d1194 Merge: b5b7455 e4a57e0 Author: Yamato <66829532+louis1706@users.noreply.github.com> Date: Sun Nov 2 18:30:42 2025 +0100 Merge branch 'dev' of https://github.com/ExMod-Team/EXILED into dev commit b5b7455 Author: Yamato <66829532+louis1706@users.noreply.github.com> Date: Sun Nov 2 18:30:26 2025 +0100 Update T4 file commit e4a57e0 Author: @Someone <45270312+Someone-193@users.noreply.github.com> Date: Sun Nov 2 12:11:51 2025 -0500 feat: Load & Enable LabAPI plugins in Plugins folder (#662) * Pain and suffering * Add plugin priority * Allow deep plugin inheritance I think idk tbh this is all really confusing * Fix accidental double enumeration idk how, but the plugin tried to load a plugin twice for me, this at least eliminates the weirdness of seeing the load message twice * Fix Reload / Disable, add GetLabAPIPlugin --------- Co-authored-by: Yamato <66829532+louis1706@users.noreply.github.com>
Description
Describe the changes
See title. You put LabAPI plugin in plugins folder, and it enables like exiled plugin
What is the current behavior? (You can also link to an open issue here)
Exiled would ignore the dll after seeing no types can be plugin
What is the new behavior? (if this is a feature change)
Exiled will check non-exiled plugins to see if they are LabAPI plugins then create them if so
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No?
Other information:
Very headachy, plz test this PR yourself with all the LabAPI plugins you can think of, also idk base Exiled loader behavior (which I wanted to mimic) so double check yaml errors get handled the same (like if yaml fails to parse config, we just reset the config to defaults right?)
Types of changes
Submission checklist
Patches (if there are any changes related to Harmony patches)
Other